fix(测试计划): 编辑用例步骤有失败结果时,用例可以标记为通过
--bug=1010512 --user=李玉号 【测试跟踪】-测试计划-编辑用例时步骤有”失败“时,用例可以标记为 ”通过“ https://www.tapd.cn/55049933/s/1110339
This commit is contained in:
parent
3eac29a729
commit
fb09ac51dd
|
@ -216,7 +216,8 @@ export default {
|
|||
isCustomFiledActive: false,
|
||||
otherInfoActive: true,
|
||||
isReadOnly: false,
|
||||
testCases: []
|
||||
testCases: [],
|
||||
originalStatus: ""
|
||||
};
|
||||
},
|
||||
props: {
|
||||
|
@ -271,6 +272,7 @@ export default {
|
|||
this.$emit('refreshTable');
|
||||
},
|
||||
statusChange(status) {
|
||||
this.originalStatus = this.testCase.status;
|
||||
this.testCase.status = status;
|
||||
this.saveCase(true);
|
||||
},
|
||||
|
@ -327,6 +329,11 @@ export default {
|
|||
+ this.$t('test_track.length_less_than') + '300');
|
||||
return;
|
||||
}
|
||||
if (result.executeResult === 'Failure' && this.testCase.status === 'Pass') {
|
||||
this.$warning(this.$t('test_track.plan_view.execute_tip'));
|
||||
this.testCase.status = this.originalStatus;
|
||||
return;
|
||||
}
|
||||
param.results.push(result);
|
||||
}
|
||||
param.results = JSON.stringify(param.results);
|
||||
|
|
|
@ -2306,6 +2306,7 @@ export default {
|
|||
performance_case_count: "Performance Case Count",
|
||||
running: "Running",
|
||||
please_choose_test_case: "please select a test case!",
|
||||
execute_tip: "The step execution result contains a Failed result, and the use case cannot be marked as Passed!"
|
||||
},
|
||||
issue: {
|
||||
issue: "Issue",
|
||||
|
|
|
@ -2311,6 +2311,7 @@ export default {
|
|||
performance_case_count: "性能测试用例数",
|
||||
running: "运行中",
|
||||
please_choose_test_case: "请选择测试用例!",
|
||||
execute_tip: "步骤执行结果中含有 失败 结果,无法标记该用例为 通过 状态!"
|
||||
},
|
||||
issue: {
|
||||
issue: "缺陷",
|
||||
|
|
|
@ -2310,6 +2310,7 @@ export default {
|
|||
performance_case_count: "性能測試用例數",
|
||||
running: "運行中",
|
||||
please_choose_test_case: "请选择测试用例!",
|
||||
execute_tip: "步驟執行結果中含有 失敗 結果,無法標記該用例為 通過 狀態!"
|
||||
},
|
||||
issue: {
|
||||
issue: "缺陷",
|
||||
|
|
Loading…
Reference in New Issue