Using if Condtion in jmeter to validate Dynamic value

50 Views Asked by At

I want to validate dynamic value from the response. based on the dynamic value response it will select different popups. How to use if condition to validate dynamic value and navigate the pages as per the dynamic value and use else condition if the value is null.

Please help how to write the code for this condition in jmeter?

Jmeter code to validate the dynamic value

1

There are 1 best solutions below

0
Dmitri T On

Take a look at JMeter's If Controller or Switch Controller

  • If Controller run its children if the JMeter Function or Variable you put into the condition evaluates to true
  • Switch Controller runs one of its children if name or index of the switch expression matches, otherwise it runs the first direct child.