refactor(测试计划): 重试信息国际化
This commit is contained in:
parent
07c8511482
commit
5da1e64301
|
@ -86,10 +86,15 @@
|
|||
</el-checkbox>
|
||||
<span v-if="runConfig.retryEnable">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">重试接口/UI用例,重试n次后,仍然失败,则用失败用例</div>
|
||||
<div slot="content">{{ $t('run_mode.retry_message') }}</div>
|
||||
<i class="el-icon-question" style="cursor: pointer"/>
|
||||
</el-tooltip>
|
||||
<span>重试 <el-input-number v-model="runConfig.retryNum" :min="1" size="mini"/> 次</span>
|
||||
<span>
|
||||
{{ $t('run_mode.retry') }}
|
||||
<el-input-number v-model="runConfig.retryNum" :min="1" :max="10000000" size="mini"/>
|
||||
|
||||
{{ $t('run_mode.retry_frequency') }}
|
||||
</span>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -136,7 +141,9 @@
|
|||
resourcePoolId: null,
|
||||
envMap: new Map(),
|
||||
environmentGroupId: "",
|
||||
environmentType: ENV_TYPE.JSON
|
||||
environmentType: ENV_TYPE.JSON,
|
||||
retryEnable: false,
|
||||
retryNum: 1,
|
||||
},
|
||||
isHasLicense: hasLicense(),
|
||||
projectEnvListMap: {},
|
||||
|
|
|
@ -115,12 +115,17 @@
|
|||
{{ $t('run_mode.retry_on_failure') }}
|
||||
</el-checkbox>
|
||||
<span v-if="runConfig.retryEnable">
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">重试接口/UI用例,重试n次后,仍然失败,则用失败用例</div>
|
||||
<i class="el-icon-question" style="cursor: pointer"/>
|
||||
</el-tooltip>
|
||||
<span>重试 <el-input-number v-model="runConfig.retryNum" :min="1" size="mini"/> 次</span>
|
||||
</span>
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">{{ $t('run_mode.retry_message') }}</div>
|
||||
<i class="el-icon-question" style="cursor: pointer"/>
|
||||
</el-tooltip>
|
||||
<span>
|
||||
{{ $t('run_mode.retry') }}
|
||||
<el-input-number v-model="runConfig.retryNum" :min="1" :max="10000000" size="mini"/>
|
||||
|
||||
{{ $t('run_mode.retry_frequency') }}
|
||||
</span>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
@ -246,7 +251,9 @@ export default {
|
|||
reportType: "iddReport",
|
||||
onSampleError: false,
|
||||
runWithinResourcePool: false,
|
||||
resourcePoolId: null
|
||||
resourcePoolId: null,
|
||||
retryEnable: false,
|
||||
retryNum: 1,
|
||||
},
|
||||
projectList: [],
|
||||
testType: 'API',
|
||||
|
@ -337,7 +344,7 @@ export default {
|
|||
this.getResourcePools();
|
||||
this.runConfig.environmentType = ENV_TYPE.JSON;
|
||||
this.runConfig.retryEnable = false;
|
||||
this.runConfig.retryNum = 0;
|
||||
this.runConfig.retryNum = 1;
|
||||
},
|
||||
findSchedule() {
|
||||
let scheduleResourceID = this.testId;
|
||||
|
|
|
@ -2695,6 +2695,9 @@ export default {
|
|||
report_name: "Report name",
|
||||
run_with_resource_pool: "Run Within Resource pool",
|
||||
retry_on_failure: "retry on failure",
|
||||
retry_message: "Retry the interface/UI use case, if it still fails after retries n times, use the failed use case",
|
||||
retry: "Retry",
|
||||
retry_frequency: "Frequency"
|
||||
},
|
||||
operating_log: {
|
||||
title: "Operating Log",
|
||||
|
|
|
@ -2699,6 +2699,9 @@ export default {
|
|||
report_name: "报告名称",
|
||||
run_with_resource_pool: "资源池运行",
|
||||
retry_on_failure: "失败重试",
|
||||
retry_message: "重试接口/UI用例,重试n次后,仍然失败,则用失败用例",
|
||||
retry: "重试",
|
||||
retry_frequency: "次"
|
||||
},
|
||||
operating_log: {
|
||||
title: "操作日志",
|
||||
|
|
|
@ -2698,6 +2698,9 @@ export default {
|
|||
report_name: "報告名稱",
|
||||
run_with_resource_pool: "資源池運行",
|
||||
retry_on_failure: "失敗重試",
|
||||
retry_message: "重試接口/UI用例,重試n次後,仍然失敗,則用失敗用例",
|
||||
retry: "重試",
|
||||
retry_frequency: "次"
|
||||
},
|
||||
operating_log: {
|
||||
title: "操作日誌",
|
||||
|
|
Loading…
Reference in New Issue