fix(接口自动化): 修复循环控制器里-提取参数引用的变量没有更新 #1004716

This commit is contained in:
fit2-zhao 2021-07-01 17:52:40 +08:00 committed by fit2-zhao
parent 2592df0ac8
commit 311d9b575f
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public class MsExtract extends MsTestElement {
shell.setName(StringUtils.isEmpty(this.getName()) ? "JSR223PostProcessor" : this.getName());
shell.setProperty(TestElement.TEST_CLASS, JSR223PostProcessor.class.getName());
shell.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("TestBeanGUI"));
shell.setProperty("cacheKey", false);
shell.setProperty("script", "io.metersphere.api.jmeter.JMeterVars.addVars(prev.hashCode(),vars," + "\"" + extract.toString() + "\"" + ");");
samplerHashTree.add(shell);
}