diff --git a/api-test/frontend/src/business/automation/api-automation.js b/api-test/frontend/src/business/automation/api-automation.js index 1f94dee1d1..8a0f483fa0 100644 --- a/api-test/frontend/src/business/automation/api-automation.js +++ b/api-test/frontend/src/business/automation/api-automation.js @@ -146,7 +146,7 @@ export async function saveScenario(url, scenario, scenarioDefinition, _this, suc }, (error) => { _this.isPreventReClick = false; - _this.errorRefresh(); + _this.errorRefresh(error); } ); } diff --git a/api-test/frontend/src/business/automation/scenario/DebugRun.vue b/api-test/frontend/src/business/automation/scenario/DebugRun.vue index 0f2116b460..5b41b1c5c0 100644 --- a/api-test/frontend/src/business/automation/scenario/DebugRun.vue +++ b/api-test/frontend/src/business/automation/scenario/DebugRun.vue @@ -66,8 +66,8 @@ export default { } } }, - errorRefresh() { - this.$emit('errorRefresh'); + errorRefresh(error) { + this.$emit('errorRefresh', error); }, run() { let testPlan = createComponent('TestPlan'); diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 4856f1cad0..7f7986f0ef 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -2203,6 +2203,9 @@ export default { } }, errorRefresh(error) { + if (error && error.response && error.response.status === 400) { + this.$error(this.$t('automation.scenario_plugin_run_warning')); + } this.debug = false; this.isTop = false; this.debugLoading = false;