fix(接口测试): 修复循环控制器一直显示执行的缺陷

--bug=1033027 --user=王孝刚 【接口测试】接口自动化-执行报告错误
https://www.tapd.cn/55049933/s/1447219
This commit is contained in:
wxg0103 2023-12-21 19:18:17 +08:00 committed by Craftsman
parent 20076eb276
commit 7eb215321d
2 changed files with 4 additions and 4 deletions

View File

@ -258,7 +258,7 @@ export default {
return data;
} else {
if (status === 'FAKE_ERROR') {
if (data.errorCode && data.errorCode !== '' && data.value.status === 'FAKE_ERROR') {
if (data.errorCode && data.errorCode !== '' && data.value && data.value.status === 'FAKE_ERROR') {
return data;
}
} else if (status === 'UN_EXECUTE') {

View File

@ -1204,7 +1204,9 @@ export default {
}
},
evaluationParent(node, status) {
if (node.data.code === 'ERROR') {
node.data.testing = false;
node.data.debug = true;
if (node.data.code === 'ERROR') {
return;
}
if (node.data.code === 'FAKE_ERROR') {
@ -1217,8 +1219,6 @@ export default {
if (status && status === 'ERROR') {
node.data.code = 'ERROR';
}
node.data.testing = false;
node.data.debug = true;
if (node.parent && node.parent.data && node.parent.data.id) {
this.evaluationParent(node.parent, status);
}