refactor(测试计划): 去掉无用代码
This commit is contained in:
parent
1b5288756a
commit
b86a220007
|
@ -491,7 +491,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.testCase = item;
|
this.testCase = item;
|
||||||
this.getRelatedTest();
|
this.getRelatedTest();
|
||||||
this.initTest();
|
// this.initTest();
|
||||||
this.getIssues(item.caseId);
|
this.getIssues(item.caseId);
|
||||||
this.stepResultChange();
|
this.stepResultChange();
|
||||||
this.getFileMetaData(item);
|
this.getFileMetaData(item);
|
||||||
|
@ -519,19 +519,19 @@ export default {
|
||||||
listenGoBack(this.handleClose);
|
listenGoBack(this.handleClose);
|
||||||
this.initData(testCase);
|
this.initData(testCase);
|
||||||
},
|
},
|
||||||
initTest() {
|
// initTest() {
|
||||||
this.$nextTick(() => {
|
// this.$nextTick(() => {
|
||||||
if (this.testCase.testId && this.testCase.testId !== 'other') {
|
// if (this.testCase.testId && this.testCase.testId !== 'other') {
|
||||||
if (this.testCase.method === 'auto') {
|
// if (this.testCase.method === 'auto') {
|
||||||
if (this.$refs.apiTestDetail && this.testCase.type === 'api') {
|
// if (this.$refs.apiTestDetail && this.testCase.type === 'api') {
|
||||||
this.$refs.apiTestDetail.init();
|
// this.$refs.apiTestDetail.init();
|
||||||
} else if (this.testCase.type === 'performance') {
|
// } else if (this.testCase.type === 'performance') {
|
||||||
this.$refs.performanceTestDetail.init();
|
// this.$refs.performanceTestDetail.init();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
testRun(reportId) {
|
testRun(reportId) {
|
||||||
this.testCase.reportId = reportId;
|
this.testCase.reportId = reportId;
|
||||||
this.saveReport(reportId);
|
this.saveReport(reportId);
|
||||||
|
|
Loading…
Reference in New Issue