Rasik
Rasik

Reputation: 2410

How to generate Transactions per Second graph, with the transaction controller only without including the child request

I have run a JMeter script in the command line and exported the result in the .jtl format. I have multiple samples under Transaction Controller, when I imported the .jtl in the aggregate report, and saved the table data in CSV, it is showing individual samples instead of showing the overall response time of the transaction controller.

I wanted to generate the graph for Transactions per Second, with the transaction controller only without including the child request.

I have tried:

JMeterPluginsCMD.bat --generate-png E:\Outcode\ProtocolNow\Data\Jmeterlog\test-result-1.png --input-jtl E:\Outcode\ProtocolNow\Data\Jmeterlog\scriptresults.jtl --plugin-type TransactionsPerSecond --width 800 --height 600

It generated the graph as shown below which is hardly understandable.

enter image description here

I have the script structured as following:

enter image description here

Upvotes: 0

Views: 572

Answers (2)

Vincent Daburon
Vincent Daburon

Reputation: 73

I think you need to named parent transaction controler with a pattern like : P01_SIGN-IN P02_ADMIN_DASHBOARD P03_APPLY

Then filtred with a regular expression P[0-9]+.* (start with 'P' and 1 or more digit and '' and others characters) and include-label-regex true

JMeterPluginsCMD.bat --generate-png E:\Outcode\ProtocolNow\Data\Jmeterlog\test-result-1.png --include-labels P[0-9]+_.* --include-label-regex true --input-jtl E:\Outcode\ProtocolNow\Data\Jmeterlog\scriptresults.jtl --plugin-type TransactionsPerSecond --width 1024--height 800

Upvotes: 1

Dmitri T
Dmitri T

Reputation: 168122

Just add --include-labels parameter and list all your Transaction Controller names there:

--include-labels sign-in,admin-dashboard,apply

full command just in case:

JMeterPluginsCMD.bat --generate-png E:\Outcode\ProtocolNow\Data\Jmeterlog\test-result-1.png --include-labels sign-in,admin-dashboard,apply --input-jtl E:\Outcode\ProtocolNow\Data\Jmeterlog\scriptresults.jtl --plugin-type TransactionsPerSecond --width 800 --height 600

More information:


Wouldn't it be easier to generate HTML Reporting Dashboard instead?

Upvotes: 0

Related Questions