Closed asfimport closed 3 years ago
@FSchumacher (migrated from Bugzilla): Created attachment vars-foreach.jmx: Testplan showing that vars are working
true
@FSchumacher (migrated from Bugzilla): Translation;
""" In the for each loop controller, assume that the output variable is A after traversal. In the http request, you can use ${A} to get it, but in the JSR223 request, use vars.get("A") to get it. To """
This is described in the component reference as a note:
""" JMeter processes function and variable references before passing the script field to the interpreter, so the references will only be resolved once. Variable and function references in script files will be passed verbatim to the interpreter, which is likely to cause a syntax error. In order to use runtime variables, please use the appropriate props methods, e.g.
props.get("START.HMS"); props.put("PROP1","1234"); """
For further discussion on this topic, the mailing list is the right place.
Zames (Bug 65066): 在for each 循环控制器中,遍历后假设输出的变量为A,在http请求中,可以使用${A}的方式获取,但是在JSR223请求当中,使用vars.get(“A”)却获取不到
Severity: normal OS: All Resolution: WORKSFORME