0

Here I'm using 10 if controller in JMeter to run my requirement in test plan each if controller consisting Get and Post request with csv data here in counter i set like this

Start :1

increment:1

Maximum:10

Numberformat:00

Reference name:tcounter

like this counter increment one by one if controller will executes according to counter value so Here this is the causing issue that performance of slow down JMeter will slow and stackoverflowexception and more over i am not getting proper output when i will run my test plan please tell me how to reduce the Number of if controller,or is there any alternative to if controller.

1

In the majority of programming languages it is recommended to use switch statement instead of multiple if statements.

So you can refactor your script to use single Switch Controller rather than having many If Controllers.

See Running JMeter Samplers with Defined Percentage Probability article for more information

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.