diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 78c24f661f..ffdc9e430b 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -619,7 +619,10 @@ } }, canExecWithOutEnv(type, path) { - return type !== ELEMENT_TYPE.HTTPSamplerProxy ? !this.checkCanExec(type) : this.isHTTPFullPath(path); + if (type === ELEMENT_TYPE.HTTPSamplerProxy) { + return this.isHTTPFullPath(path); + } + return type === ELEMENT_TYPE.JSR223Processor ? true : !this.checkCanExec(type); }, isHTTPFullPath(path) { return path ? path.startsWith("http://") || path.startsWith("https://") : false; diff --git a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue index 3cd0fa2ffd..77a8070542 100644 --- a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue @@ -531,7 +531,10 @@ } }, canExecWithOutEnv(type, path) { - return type !== ELEMENT_TYPE.HTTPSamplerProxy ? !this.checkCanExec(type) : this.isHTTPFullPath(path); + if (type === ELEMENT_TYPE.HTTPSamplerProxy) { + return this.isHTTPFullPath(path); + } + return type === ELEMENT_TYPE.JSR223Processor ? true : !this.checkCanExec(type); }, isHTTPFullPath(path) { return path ? path.startsWith("http://") || path.startsWith("https://") : false;