refactor(接口测试): 测试脚本默认关闭缓存KEY功能

This commit is contained in:
fit2-zhao 2023-02-06 14:37:06 +08:00 committed by fit2-zhao
parent 41dc80ee21
commit e0783b3ec3
1 changed files with 1 additions and 0 deletions

View File

@ -827,6 +827,7 @@ public class ElementUtil {
if (StringUtils.isNotEmpty(vo.getScript())) { if (StringUtils.isNotEmpty(vo.getScript())) {
vo.setScript(StringUtils.replace(vo.getScript(), RunningParamKeys.API_ENVIRONMENT_ID, "\"" + RunningParamKeys.RUNNING_PARAMS_PREFIX + vo.getEnvironmentId() + ".\"")); vo.setScript(StringUtils.replace(vo.getScript(), RunningParamKeys.API_ENVIRONMENT_ID, "\"" + RunningParamKeys.RUNNING_PARAMS_PREFIX + vo.getEnvironmentId() + ".\""));
} }
testElement.setProperty("cacheKey", false);
testElement.setProperty(TestElement.TEST_CLASS, testElement.getClass().getSimpleName()); testElement.setProperty(TestElement.TEST_CLASS, testElement.getClass().getSimpleName());
testElement.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass(TEST_BEAN_GUI)); testElement.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass(TEST_BEAN_GUI));
String scriptLanguage = vo.getScriptLanguage(); String scriptLanguage = vo.getScriptLanguage();