Trying to validate scenario like Have 10 samplers(each sampler having unique session ID) in Random Order Controller, Want to capture the response from first validated sampler from the Random Order Controller.
can any one help on this scenario.
Trying to validate scenario like Have 10 samplers(each sampler having unique session ID) in Random Order Controller, Want to capture the response from first validated sampler from the Random Order Controller.
can any one help on this scenario.
Copyright © 2021 Jogjafile Inc.
I can think of the following approach:
Before the Random Order Controller add a JSR223 Sampler and put the following code there:
Add a JSR223 PostProcessor to the Random Order Controller and use the following code there:
This way you will get the response of the first Sampler executed by the Random Order Controller in
response.txtfile, if you need the response later on you can get it using i.e. __FileToString() functionMore information on Groovy scripting in JMeter: The Groovy Templates Cheat Sheet for JMeter