简体   繁体   中英

How to group samplers in jmeter

Im using jmeter to run a load test. Is there a way to tell jmeter to group samples in listeners? Example, using the following samples:

<code>
/home
/displayCategory?id=1
/displayCategory?id=2
/displayCategory?id=2
</code>

In the summary report i need to have:

<code>
Sampler     Response time
Home Page         13 
Category Page     34
Total             47
</code>

Thanks.

you can add your sampler requests to logical controller, Transaction Controller:

Transaction Controller(Home Page)
-> /home

Transaction Controller(Category Page)
-> /displayCategory?id=1
-> /displayCategory?id=2
-> /displayCategory?id=2

This will get you the individual request details as well as combined details in Transaction Controller.

Hope this will help.

If you check the "Generate Parent Sample" on the Transaction Controller only the Transaction Controller will be shown. Looks like you would want to check this box. If not you will see the transaction controller and the requests it contains.

I know this is not an answer, but a comment on the previous answer, apparently I do not have enough rep to comment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM