fix: 修改关联其他测试提示
This commit is contained in:
parent
83f90d7d12
commit
ff955209b2
|
@ -9,10 +9,10 @@
|
|||
<span>{{ report.projectName }} / </span>
|
||||
<router-link :to="path">{{ report.testName }}</router-link>
|
||||
<span class="time">{{ report.createTime | timestampFormatDate }}</span>
|
||||
<el-button plain type="primary" size="mini" @click="handleExport(report.name)"
|
||||
<!--<el-button plain type="primary" size="mini" @click="handleExport(report.name)"
|
||||
style="margin-left: 1200px">
|
||||
{{$t('test_track.plan_view.export_report')}}
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
</el-col>
|
||||
</el-row>
|
||||
</header>
|
||||
|
@ -114,9 +114,7 @@
|
|||
this.fails = [];
|
||||
this.totalTime = 0
|
||||
this.content.scenarios.forEach((scenario) => {
|
||||
console.log(scenario.responseTime)
|
||||
this.totalTime = this.totalTime + Number(scenario.responseTime)
|
||||
console.log(this.totalTime)
|
||||
let failScenario = Object.assign({}, scenario);
|
||||
if (scenario.error > 0) {
|
||||
this.fails.push(failScenario);
|
||||
|
|
|
@ -63,11 +63,13 @@
|
|||
this.oneClickOperationVisible = true;
|
||||
},
|
||||
checkedSaveAndRunTest() {
|
||||
if (this.selectNames.has(this.testName)) {
|
||||
if (this.selectNames.has(this.ruleForm.testName)) {
|
||||
this.$warning(this.$t('load_test.already_exists'));
|
||||
this.oneClickOperationVisible = false;
|
||||
} else {
|
||||
if (this.selectProjectNames.size > 1) {
|
||||
this.$warning(this.$t('load_test.same_project_test'));
|
||||
this.oneClickOperationVisible = false;
|
||||
} else {
|
||||
for (let x of this.selectIds) {
|
||||
this.getTest(x)
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
@click="rerun(testId)">
|
||||
{{ $t('report.test_execute_again') }}
|
||||
</el-button>
|
||||
<el-button :disabled="isReadOnly" type="info" plain size="mini" @click="exports(reportName)">
|
||||
<!-- <el-button :disabled="isReadOnly" type="info" plain size="mini" @click="exports(reportName)">
|
||||
{{$t('report.export')}}
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
<!--
|
||||
<el-button :disabled="isReadOnly" type="warning" plain size="mini">
|
||||
{{$t('report.compare')}}
|
||||
|
|
|
@ -445,7 +445,7 @@
|
|||
});
|
||||
},
|
||||
getRelatedTest() {
|
||||
if (this.testCase.method == 'auto' && this.testCase.testId) {
|
||||
if (this.testCase.method == 'auto' && this.testCase.testId && this.testCase.testId != 'other') {
|
||||
this.$get('/' + this.testCase.type + '/get/' + this.testCase.testId, response => {
|
||||
let data = response.data;
|
||||
if (data) {
|
||||
|
@ -455,6 +455,8 @@
|
|||
this.$warning(this.$t("test_track.case.relate_test_not_find"));
|
||||
}
|
||||
});
|
||||
} else if (this.testCase.testId === 'other') {
|
||||
this.$warning(this.$t("test_track.case.other_relate_test_not_find"));
|
||||
}
|
||||
},
|
||||
issuesChange() {
|
||||
|
|
|
@ -593,6 +593,7 @@ export default {
|
|||
create_module_first: "Please create module first",
|
||||
relate_test: "Relate test",
|
||||
relate_test_not_find: 'The associated test does not exist, please check the test case',
|
||||
other_relate_test_not_find: 'Associated test name, please go to the third party platform to execute',
|
||||
batch_handle: 'Batch processing (select {0} item)',
|
||||
batch_update: 'Update the attributes of {0} cases',
|
||||
select_catalog: 'Please select use case catalog',
|
||||
|
|
|
@ -596,6 +596,7 @@ export default {
|
|||
create_module_first: "请先新建模块",
|
||||
relate_test: "关联测试",
|
||||
relate_test_not_find: '关联的测试不存在,请检查用例',
|
||||
other_relate_test_not_find: '关联的测试名,请前往第三方平台执行',
|
||||
batch_handle: '批量处理 (选中{0}项)',
|
||||
batch_update: '更新{0}个用例的属性',
|
||||
select_catalog: '请选择用例目录',
|
||||
|
|
|
@ -593,6 +593,7 @@ export default {
|
|||
create_module_first: "請先新建模塊",
|
||||
relate_test: "關聯測試",
|
||||
relate_test_not_find: '關聯的測試不存在,請檢查用例',
|
||||
other_relate_test_not_find: '關聯的測試名,請前往協力廠商平臺執行',
|
||||
batch_handle: '批量處理 (選中{0}項)',
|
||||
batch_update: '更新{0}個用例的屬性',
|
||||
select_catalog: '請選擇用例目錄',
|
||||
|
|
Loading…
Reference in New Issue