Hello and thanks!
If I interpret you correctly I am doing exactly what you are suggesting. [cid:[email protected]] Also the “Check if all is OK” indicates the same problem as I set a variable in the JS223 PostProcessor depending on the value of JMeterThread.last_sample_ok. BR /Krister -----Ursprungligt meddelande----- Från: [email protected] <[email protected]> Skickat: den 1 april 2021 14:05 Till: [email protected] Ämne: Re: Response assertion seems to not always set JMeterThread.last_sample_ok correctly The questions is: how exactly you're "logging that the variable JMeterThread.last_sample_ok"? Be aware of JMeter test elements execution order <https://jmeter.apache.org/usermanual/test_plan.html#executionorder> , after Assertions only Listeners are executed so it makes sense to "log" the value for example using JSR223 Listener <https://www.blazemeter.com/blog/groovy-new-black> and the following code: > log.info('Previous sampler successful: ' + > vars.get('JMeterThread.last_sample_ok')) Also you can log the value using __log() <https://jmeter.apache.org/usermanual/functions.html#__log> or logn() <https://jmeter.apache.org/usermanual/functions.html#__logn> functions which are evaluated immediately where they found -- Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected]<mailto:[email protected]> For additional commands, e-mail: [email protected]<mailto:[email protected]>
