feat(接口测试): 调整前后置脚本的默认脚本语言
--bug=1037398 --user=宋天阳 【接口测试】定义-调试-后置-脚本操作默认语言不正确 https://www.tapd.cn/55049933/s/1479340
This commit is contained in:
parent
67f438ddb3
commit
c88cfa3ad1
|
@ -343,13 +343,13 @@
|
||||||
enableCommonScript: false,
|
enableCommonScript: false,
|
||||||
script: '',
|
script: '',
|
||||||
scriptId: '',
|
scriptId: '',
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
commonScriptInfo: {
|
commonScriptInfo: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
script: '',
|
script: '',
|
||||||
params: [{}],
|
params: [{}],
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
v-model:model-value="scriptEx"
|
v-model:model-value="scriptEx"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
theme="vs"
|
theme="vs"
|
||||||
:language="LanguageEnum.BEANSHELL"
|
:language="LanguageEnum.BEANSHELL_JSR233"
|
||||||
width="500px"
|
width="500px"
|
||||||
height="388px"
|
height="388px"
|
||||||
:show-full-screen="false"
|
:show-full-screen="false"
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
v-model:model-value="condition.commonScriptInfo.script"
|
v-model:model-value="condition.commonScriptInfo.script"
|
||||||
theme="vs"
|
theme="vs"
|
||||||
height="100%"
|
height="100%"
|
||||||
:language="condition.commonScriptInfo.scriptLanguage || LanguageEnum.BEANSHELL"
|
:language="condition.commonScriptInfo.scriptLanguage || LanguageEnum.BEANSHELL_JSR233"
|
||||||
:show-full-screen="false"
|
:show-full-screen="false"
|
||||||
:show-theme-change="false"
|
:show-theme-change="false"
|
||||||
read-only
|
read-only
|
||||||
|
|
|
@ -145,13 +145,13 @@
|
||||||
enable: true,
|
enable: true,
|
||||||
script: '',
|
script: '',
|
||||||
scriptId: '',
|
scriptId: '',
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
commonScriptInfo: {
|
commonScriptInfo: {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
script: '',
|
script: '',
|
||||||
params: [],
|
params: [],
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
processorType: RequestConditionProcessor.SCRIPT,
|
processorType: RequestConditionProcessor.SCRIPT,
|
||||||
enableCommonScript: false,
|
enableCommonScript: false,
|
||||||
script: '',
|
script: '',
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
commonScriptInfo: {},
|
commonScriptInfo: {},
|
||||||
} as ExecuteConditionProcessor;
|
} as ExecuteConditionProcessor;
|
||||||
const scriptName = ref(props.name || '');
|
const scriptName = ref(props.name || '');
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
processorType: RequestConditionProcessor.SCRIPT,
|
processorType: RequestConditionProcessor.SCRIPT,
|
||||||
enableCommonScript: false,
|
enableCommonScript: false,
|
||||||
script: '',
|
script: '',
|
||||||
scriptLanguage: LanguageEnum.BEANSHELL,
|
scriptLanguage: LanguageEnum.BEANSHELL_JSR233,
|
||||||
commonScriptInfo: {},
|
commonScriptInfo: {},
|
||||||
} as ExecuteConditionProcessor;
|
} as ExecuteConditionProcessor;
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
projectId: '',
|
projectId: '',
|
||||||
params: '',
|
params: '',
|
||||||
script: '',
|
script: '',
|
||||||
type: LanguageEnum.BEANSHELL,
|
type: LanguageEnum.BEANSHELL_JSR233,
|
||||||
result: '',
|
result: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue