Apache JMeter is a performance testing tool written in Java and supports many operation systems. Controllers are main part of JMeter and they are useful to control the execution of JMeter scripts for load testing. Logic controllers (e.g., Transaction Controller) also provide runtime scopes for JMeter test elements (read [9] for details).
For example, you can use Transaction Controller to get the total execution time of a transaction (i.e., an end-to-end scenario) which might include the following transaction steps:
Watch this video on YouTube for more details of Transaction Controller.
JMeter has two types of Controllers:[3]
When "Generate parent sample" in Transaction Controller is
Each Sampler can be preceded by one or more Pre-processor element, followed by Post-processor element. There is also an option in Transaction Controller to include and/or exclude timers, pre and post processors execution time into/from virtual samples.
For example, you can use Transaction Controller to get the total execution time of a transaction (i.e., an end-to-end scenario) which might include the following transaction steps:
Login → Compute Details → Billing Metrics → Back to Dashboard → Logout
Watch this video on YouTube for more details of Transaction Controller.
Controllers
JMeter has two types of Controllers:[3]
- Samplers
- Can be used to specify which types of requests to be sent to a server
- You may add Configuration Elements to these Samplers to customize your server requests.
- Examples of Samplers include, but not limited to:
- HTTP Request
- FTP Request
- JDBC Request
- Java Request
- SOAP/XML-RPC Request
- WebService (SOAP) Request
- LDAP Request
- LDAP Extended RequestAccess Log Sampler
- BeanShell Sampler
- Logic Controllers
- Can be used to customize the logic that JMeter uses to decide when to send requests
- For these requests, JMeter may randomly select (using Random Controller), repeat (using Loop Controller), interchange (using Interleave Controller) etc.
- The child elements of a Logic Controllers may comprise
- Examples of Logic Controllers include, but not limited to:
- Transaction Controller
- Simple Controller
- Loop Controller
- Interleave Controller
- Random Controller
- Random Order Controller
- Throughput Controller
- Recording Controller
- Generate a “virtual” sample to measure aggregate times of all nested samples
Option: "Generate Parent Sample"
When "Generate parent sample" in Transaction Controller is
- Checked
- Only Transaction Controller virtual sample will be generated and all other Transaction Controller's nested samples will not be displayed in the report
- Unchecked
- Additional parent sample (i.e. Transaction Controller virtual sample) after nested samples will be displayed in the report
Option: "Include Duration of Timer and Pre-Post Processors in Generated Sample"
Each Sampler can be preceded by one or more Pre-processor element, followed by Post-processor element. There is also an option in Transaction Controller to include and/or exclude timers, pre and post processors execution time into/from virtual samples.
When the check box "Include duration of timer and pre-post processors in generated sample" is
- Checked
- The aggregate time includes all processing within the controller scope, not just the nested samples
- Unchecked
- The aggregate time includes just the nested samples; however, excludes all pre-post processing within the controller scope
References
- How to use Apache JMeter "Transaction Controller" to get total time of execution
- 12th JMeter Training Video - Transaction Controller
- Apache JMeter Book
- Configuration Elements (Apache JMeter)
- Transaction Controller (Apache JMeter)
- Using JMeter's Transaction Controller
- JMeter: How to Turn Off Captive Portal from the Recording Using Firefox (Xml and More)
- JMeter—Use Extractors (Post-Processor Elements) for Correlation (Xml and More)
- JMeter Scoping Rules - The Ultimate Guide (BlazeMeter)
4 comments:
You shared very valuable information. Many thanks for sharing this great content. Keep up the good work.
Install Quickbooks Desktop on Mac
you have written an excellent blog.. keep sharing your knowledge...
JMeter Training in Chennai
JMeter Training Institute in Chennai
Awesome blog. Thanks for sharing such a worthy information....
Angularjs Training in Bangalore
Angularjs classes in pune
Angularjs Training in hyderabad
Angularjs Training in Gurgaon
Angularjs Training in delhi
Angular Training in Trivandrum
Angular Training in Kochi
Angularjs Training in Ahmedabad
Angularjs Training in Kolkata
Best AngularJS classes in Mumbai
Wonderful post and more informative!keep sharing Like this!
PHP Training in Bangalore
php classes in pune
php training in hyderabad
PHP Training in Gurgaon
php training in delhi
Post a Comment