feat(测试计划): 测试计划结果为通过时自动跳转到下一用例
This commit is contained in:
parent
1c79468b00
commit
797c9f0776
|
@ -1 +1 @@
|
||||||
Subproject commit cf6b06526324326a563d933e07118fac014a63b4
|
Subproject commit ee74568be0beba46da19616f5832e83f9164c688
|
|
@ -374,6 +374,7 @@ export default {
|
||||||
},
|
},
|
||||||
statusChange(status) {
|
statusChange(status) {
|
||||||
this.testCase.status = status;
|
this.testCase.status = status;
|
||||||
|
this.saveCase();
|
||||||
},
|
},
|
||||||
saveCase() {
|
saveCase() {
|
||||||
let param = {};
|
let param = {};
|
||||||
|
@ -398,6 +399,10 @@ export default {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
this.updateTestCases(param);
|
this.updateTestCases(param);
|
||||||
this.setPlanStatus(this.testCase.planId);
|
this.setPlanStatus(this.testCase.planId);
|
||||||
|
// 结果为Pass时 自动跳转到下一用例
|
||||||
|
if (this.testCase.status === 'Pass' && this.index < this.testCases.length - 1) {
|
||||||
|
this.handleNext();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateTestCases(param) {
|
updateTestCases(param) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 06d935cd1d22ab36f09763745c2aff8ad3fb08c1
|
Subproject commit cc38137a69a0f20fadece9c0f9f50a9468c4ace9
|
Loading…
Reference in New Issue