refactor(测试计划): 重试信息国际化

This commit is contained in:
fit2-zhao 2022-05-24 10:19:52 +08:00 committed by f2c-ci-robot[bot]
parent 07c8511482
commit 5da1e64301
5 changed files with 34 additions and 11 deletions

View File

@ -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"/> &nbsp;</span>
<span>
{{ $t('run_mode.retry') }}
<el-input-number v-model="runConfig.retryNum" :min="1" :max="10000000" size="mini"/>
&nbsp;
{{ $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: {},

View File

@ -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"/> &nbsp;</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"/>
&nbsp;
{{ $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;

View File

@ -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",

View File

@ -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: "操作日志",

View File

@ -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: "操作日誌",