fix(接口测试): 修复场景步骤执行结果获取不到问题
--bug=1009281 --user=赵勇 [github#8902]接口自动化中部分引用场景会存在执行后无执行记录 https://www.tapd.cn/55049933/s/1087601
This commit is contained in:
parent
f44e54e261
commit
47759b90e1
|
@ -627,6 +627,7 @@ export default {
|
|||
});
|
||||
},
|
||||
stop() {
|
||||
if (this.reportId) {
|
||||
let url = "/api/automation/stop/" + this.reportId;
|
||||
this.$get(url, response => {
|
||||
this.debugLoading = false;
|
||||
|
@ -646,6 +647,7 @@ export default {
|
|||
}
|
||||
});
|
||||
this.runScenario = undefined;
|
||||
}
|
||||
},
|
||||
clearDebug() {
|
||||
this.reqError = 0;
|
||||
|
|
|
@ -140,8 +140,7 @@ export default {
|
|||
this.$emit('refReload');
|
||||
}
|
||||
})
|
||||
}
|
||||
else if(this.scenario.id && (this.scenario.referenced === 'Copy'||this.scenario.referenced === 'Created') && !this.scenario.loaded){
|
||||
} else if (this.scenario.id && (this.scenario.referenced === 'Copy' || this.scenario.referenced === 'Created') && !this.scenario.loaded) {
|
||||
this.result = this.$get("/api/automation/getApiScenario/" + this.scenario.id, response => {
|
||||
if (response.data) {
|
||||
if (response.data.num) {
|
||||
|
@ -181,7 +180,9 @@ export default {
|
|||
methods: {
|
||||
run() {
|
||||
this.scenario.run = true;
|
||||
this.$emit('runScenario', this.scenario);
|
||||
let runScenario = JSON.parse(JSON.stringify(this.scenario));
|
||||
runScenario.hashTree = [this.scenario];
|
||||
this.$emit('runScenario', runScenario);
|
||||
},
|
||||
stop() {
|
||||
this.scenario.run = false;
|
||||
|
@ -363,6 +364,7 @@ export default {
|
|||
.ms-test-running {
|
||||
color: #6D317C;
|
||||
}
|
||||
|
||||
.ms-num {
|
||||
margin-left: 1rem;
|
||||
font-size: 15px;
|
||||
|
|
Loading…
Reference in New Issue