简体   繁体   中英

Non GUI Jmeter run with Listener

For non-gui JMeter, there is much info available about how to take a report. which is basically done by mentioning report name in command and not adding any listener in Test Plan

But I use a different approach. Please confirm whether it compromises the performance of JMeter or it is as good as mentioned in the 1st paragraph.

I add Listener in Test plan and mention filename in the listener. Do my configure settings. Close the Test plan and run it in NON-GUI mode with the following command.

jmeter -n -t ProjectName.jmx

It is better to use first approach, in which you define the path of report file within your command. It is considered most efficient approach.

An alternative to above is adding 'simple data writer' listener to your test plan. Define the path of report in this listener and run the jmeter script from command line. This is also resource efficient approach. It is similar to your approach. Only difference is that instead of enabling multiple listeners, enable only one listener that is 'simple data writer'. You can later use report generated by this listener in different listeners and generate graphs as required.

To cut it short, resource usage depends upon on choice of listener. Command line mode uses lightest listener by default. If you don't want to mention it in command-line; then enable 'simple data writer' with in your GUI plan. Hope you understand the concept.

I want to use the following Listeners, but as part of my *.jtl file results

  1. View Results Tree
  2. Aggregate Report
  3. jp@gc - Response Times Percentiles
  4. jp@gc - Response Times over Time

Now, since high volume Load Tests run in non-gui mode, so these Listeners have no value. But perhaps they have value when we generate reports after we generate the jtl file. How can that be acheived? Is there some setting in user.properties? Which can enable these listeners? at Report time generation.

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