QAInsights / apache-jmeter

Learn Apache JMeter by doing
https://lab.github.com/QAInsights/fun-with-jmeter
1 stars 0 forks source link

Transaction Controller #8

Open github-learning-lab[bot] opened 3 years ago

github-learning-lab[bot] commented 3 years ago

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.

  1. 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.

  2. Check Generate parent sample checkbox.

  3. Repeat the steps for other two HTTP requests as shown below. Transaction Controller

  4. Hit Run to view the results.

Transactions Results

Push the changes to proceed further.

github-learning-lab[bot] commented 3 years ago

Congratulations 🎉

You are persistent 🎯.

You can close this issue now.

Now, let get our hands more dirty now.

Here is the new issue for you.