Showing posts with label Transaction controller in jmeter. Show all posts
Showing posts with label Transaction controller in jmeter. Show all posts

Transaction controller in jmeter

Transaction Controller in Jmeter which is useful in measures child samples time taken to complete the transactions.Performance Testing with JMeter for Web applications i.e Samples which is HTTP sample requests and which have resources as Images,Stylesheets,Css,recording etc.

Transaction controller in jmeter

What is Transaction Controller?

Transaction Controller is generates an extra samples same as HTTP Samples in order to measures the overall time taken or response time of Transaction controller of child test samples,don't worry we will learn in details with real-time examples.

Transaction Controller in Jmeter

Transaction Controller has two check boxes,those are

1.Generate Parent Samples
2.Include duration of timer and pre-post processors in generated sample - It is the time which includes all processing samples within the Transaction controller , not just the HTTP samples.

Generate Parent Samples

If you check Generate Parent Samples check box in Transaction Controller then in Summary Report it will display only Transaction Controller Label and remaining nested HTTP Samples will not display in Summary Report.Please see below screenshot.Overall Response time is taken will display in Transaction Controller with nested HTTP Samples.It is not good practice to perform or run your test plan to perform performance testing of a proper test scenario.

Transaction controller in jmeter

Test Scenario

Open Product Page - Search The product - Checkout the Product page - Perform Payment

The above scenario will look like as below

Transaction Controller
Open Product Page Samples 1
Search The product sample 2
CCheck out the product sample 3
Payment sample 4

Above four samples are nested elements for Transacstion Controller,if you run above scenario or test plan with Generate Parent Samples check box on it will display only Transaction Controller label name and will not display all four samples label name in summary report.

Transaction controller in jmeter
Summary Report


If you want to check all the samples label name in Summary Report don't check Generate Parent Samples check box in Transaction Controller.

Transaction Controller without Generate Parent Samples

Uncheck Generate Parent Samples in Transaction Controller screen.

Transaction controller in jmeter


Now run your Test plan it will display Nested HTTP Samples + Transaction Controller Sample in Summary Report(Which will display all nested samples details as below).

Transaction controller in jmeter
Summary Report-Transaction Controller

Transaction Controller Problems

1.In Case one sample is failed then entire Transaction Controller will fail
2.In case any one sample assertion is failed then entire Transaction Controller will fail.