fix(接口测试): 修复接口case中选择批量串行并行生成集合报告时未填写报告名称生成报告为独立报告的缺陷
--bug=1010864 --user=王孝刚 【接口测试】接口case-批量串行/并行-集合报告-未填写报告名称-生成报告为独立报告 https://www.tapd.cn/55049933/s/1114429
This commit is contained in:
parent
332256fc63
commit
57d9536ab1
|
@ -154,7 +154,7 @@ export default {
|
|||
})
|
||||
},
|
||||
handleRunBatch() {
|
||||
if (this.runConfig.mode === 'serial' && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
|
||||
if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
|
||||
this.$warning(this.$t('commons.input_name'));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -92,6 +92,7 @@ export default {
|
|||
runModeVisible: false,
|
||||
resourcePools: [],
|
||||
runConfig: {
|
||||
reportName: "",
|
||||
mode: "serial",
|
||||
reportType: "iddReport",
|
||||
onSampleError: false,
|
||||
|
@ -117,12 +118,14 @@ export default {
|
|||
this.runConfig.onSampleError = false;
|
||||
this.runConfig.runWithinResourcePool = false;
|
||||
this.runConfig.resourcePoolId = null;
|
||||
this.runConfig.reportName = "";
|
||||
},
|
||||
close() {
|
||||
this.runConfig = {
|
||||
mode: "serial",
|
||||
reportType: "iddReport",
|
||||
onSampleError: false,
|
||||
reportName: "",
|
||||
runWithinResourcePool: false,
|
||||
resourcePoolId: null,
|
||||
envMap: new Map(),
|
||||
|
@ -133,6 +136,10 @@ export default {
|
|||
this.$emit('close');
|
||||
},
|
||||
handleRunBatch() {
|
||||
if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
|
||||
this.$warning(this.$t('commons.input_name'));
|
||||
return;
|
||||
}
|
||||
this.$emit("handleRunBatch", this.runConfig);
|
||||
this.close();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue