Re: How to use __evalVar

2022-09-05 Thread Tong Sun
Ban on!!! Thanks a lot Felix for your clear explanation! Solved all my confusions. Thanks! On Mon, Sep 5, 2022 at 6:27 AM Felix Schumacher < felix.schumac...@internetallee.de> wrote: > Another important difference here (assuming this is groovy code in a > jsr223 script), you are assigning

Re: How to use __evalVar

2022-09-05 Thread Felix Schumacher
Another important difference here (assuming this is groovy code in a jsr223 script), you are assigning Groovy variables, but __evalVar works on JMeter variables. To set a JMeter variable from within Groovy code, use vars.put("name", value). And to reiterate: Don't confuse ${...} from JMeter

Re: How to use __evalVar

2022-09-05 Thread Dmitri T
1. You don't need to use __evalVar() function in Groovy, in general inlining JMeter Functions and Variables into scripts is not the best idea as only first occurrence will be cached so you will have the

How to use __evalVar

2022-09-04 Thread Tong Sun
Hi, >From https://jmeter.apache.org/usermanual/functions.html#__evalVar __evalVar > > The evalVar function returns the result of evaluating an expression stored > in a variable. > > This allows one to read a string from a file, and process any variable > references in it. For example, if the