mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 02:58:31 +08:00
fix(测试跟踪): 测试计划个别接口用例执行一直转圈
--bug=1020841 --user=陈建星 【测试跟踪】github#20605,测试计划中执行某个case,一直在转圈 https://www.tapd.cn/55049933/s/1316462
This commit is contained in:
parent
c6c0ebdac5
commit
fa37019f77
@ -65,6 +65,9 @@ export default {
|
||||
} else {
|
||||
this.$EventBus.$emit('API_TEST_ERROR', this.reportId);
|
||||
}
|
||||
} else {
|
||||
this.loading = true;
|
||||
this.socketSync();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -511,13 +511,11 @@ export default {
|
||||
singleRun(row) {
|
||||
let reportId = getUUID().substring(0, 8);
|
||||
this.rowLoading = row.id;
|
||||
run(row.id, reportId)
|
||||
.then(() => {
|
||||
this.runningReport.add(reportId);
|
||||
this.$refs.apiCaseResult.open(reportId);
|
||||
},error =>{
|
||||
this.rowLoading = "";
|
||||
});
|
||||
this.runningReport.add(reportId);
|
||||
// 这里先打开报告,建立 websock
|
||||
// 否则可能执行完了才建立 websock,拿不到结果
|
||||
this.$refs.apiCaseResult.open(reportId);
|
||||
run(row.id, reportId);
|
||||
},
|
||||
handleTestEnd(reportId) {
|
||||
if (this.runningReport.has(reportId)) {
|
||||
|
Loading…
Reference in New Issue
Block a user