fix(接口测试): 修复用例执行结果和表格状态不一致的问题
--bug=1012833 --user=宋天阳 【接口测试】执行case,结果应该是误报,显示成了通过,需要刷新才会变成误报 https://www.tapd.cn/55049933/s/1152659
This commit is contained in:
parent
d3ec35d26e
commit
30f73dae98
|
@ -358,8 +358,8 @@ export default {
|
||||||
this.singleRunId = "";
|
this.singleRunId = "";
|
||||||
this.apiCaseList[0].active = true;
|
this.apiCaseList[0].active = true;
|
||||||
if (data) {
|
if (data) {
|
||||||
let status = data.error > 0 ? "error" : "success";
|
let status = data.status === 'errorReportResult' ? data.status : data.error > 0 ? "error" : "success";
|
||||||
this.apiCaseList[0].execResult = status
|
this.apiCaseList[0].execResult = status;
|
||||||
this.apiCaseList[0].responseData = data;
|
this.apiCaseList[0].responseData = data;
|
||||||
this.$refs.apiCaseItem.runLoading = false;
|
this.$refs.apiCaseItem.runLoading = false;
|
||||||
this.$store.state.currentApiCase = {refresh: true, id: data.id, status: status};
|
this.$store.state.currentApiCase = {refresh: true, id: data.id, status: status};
|
||||||
|
|
Loading…
Reference in New Issue