четвртак, 10. октобар 2013.

How to use JMeter's 'IF' Controller


 

In this post I will explain you what should you do if you need to execute Jmeter HTTP Requests based on a specific condition.

It is very easy! Jmeter has If controller allowing to control whether its children are run or not.

Let's suppose our test plan look as on the picture:



Condition is shown in the picture bellow:




Child of If Controller ("Do Something") in this case, will be executed only when variable counter has value 1. This is very useful when we run test with many users, but some steps should not be executed for all users.

Use quotes when you compare strings. Example: "${your_variable}" == "jhsajdhjkashd"

 

Нема коментара:

Постави коментар