Re: JMeter If Controller, "Not" operator

2022-09-05 Thread Dmitri T
If Controller will execute its children if the function (or variable) you place in the condition field returns *true* If you want to execute something conditionally if the previous sampler is not successful you can use i.e. __groovy() function

JMeter If Controller, "Not" operator

2022-09-05 Thread Tong Sun
Hi, Does the JMeter If Controller has a "Not" operator? https://jmeter.apache.org/usermanual/component_reference.html#If_Controller I.e. can I use !${JMeterThread.last_sample_ok} ?

include controller: name by variable possible?

2022-09-05 Thread Tong Sun
Hi, Is it possible to use variables as the choice of include controller? I.e., what jmeter script to include is based on the content of the variable. Seems not possible, right?

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