diff --git a/api-test/frontend/src/business/automation/report/ApiReportDetail.vue b/api-test/frontend/src/business/automation/report/ApiReportDetail.vue index 453651e6f9..f22c728ddb 100644 --- a/api-test/frontend/src/business/automation/report/ApiReportDetail.vue +++ b/api-test/frontend/src/business/automation/report/ApiReportDetail.vue @@ -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') { diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 4b24bcfaad..f85f997c98 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -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); }