This is img give correct if controller code

Can give the correct code. If price is greater than 500 we need to choose Home Page or Price lesser than 500 we need to choose Purchase the flight

1

There are 1 best solutions below

0
Dmitri T On
  1. You will need 2 If Controllers (or eventually a Switch Controller to avoid copy and paste)
  2. The "Purchase" and "Home" samplers should be moved to be the children of the respective If Controllers
  3. You will need to use a function like __jexl3() or __groovy() as If Controller expects the function or varible evaluating to true

More information: 6 Tips for JMeter If Controller Usage