[Bug 65066] Jmter的for each控制前的输出变量,在JRS223中无法使用vars.get()方法获得变量

2021-01-08 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65066

Felix Schumacher  changed:

   What|Removed |Added

 OS||All
 Resolution|--- |WORKSFORME
 Status|NEW |RESOLVED

--- Comment #2 from Felix Schumacher  ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65066] Jmter的for each控制前的输出变量,在JRS223中无法使用vars.get()方法获得变量

2021-01-08 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65066

--- Comment #1 from Felix Schumacher  ---
Created attachment 37694
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37694=edit
Testplan showing that vars are working

-- 
You are receiving this mail because:
You are the assignee for the bug.