Just like any other programming language, you can control the execution flow using Logic Controllers in JMeter.
Logic Controllers which determines the order in which Samplers are processed.
There are different types of controllers in JMeter. Commonly used ones are: If, Transaction, While, Loop etc.
⌨️ Activities
We are going to measure the performance of Search functionality. Transactions are nothing but the collection of sequential steps/requests. Let us add transactions to the Pet Store test plan.
Instead of adding the transaction controller, we are goint to insert it to the HTTP requests.
Right click on 01_Launch > Insert Parent > Logic Controller > Transaction Controller. This will insert a transaction controller to the selected request. Rename the transaction controller to T01_Launch.
Check Generate parent sample checkbox.
Repeat the steps for other two HTTP requests as shown below.
Transaction Controller
Just like any other programming language, you can control the execution flow using
Logic Controllers
in JMeter.Logic Controllers
which determines the order in which Samplers are processed.There are different types of controllers in JMeter. Commonly used ones are:
If
,Transaction
,While
,Loop
etc.⌨️ Activities
We are going to measure the performance of
Search
functionality. Transactions are nothing but the collection of sequential steps/requests. Let us add transactions to the Pet Store test plan.Instead of adding the transaction controller, we are goint to insert it to the HTTP requests.
Right click on
01_Launch
>Insert Parent
>Logic Controller
>Transaction Controller
. This will insert a transaction controller to the selected request. Rename the transaction controller toT01_Launch
.Check
Generate parent sample
checkbox.Repeat the steps for other two HTTP requests as shown below.
Hit
Run
to view the results.Push the changes to proceed further.