Thursday, December 31, 2015

Enabling Summary and Result Tree Feature in Jmeter Non GUI Mode

As all of you know that Jmeter is best load testing open source tool but very much resource intensive and not allow us to run the more thrads from a single machine,

To entertain this issue testers always prefer to have load test execution in Non GUI Mode.

But again a limitation comes in case of NON GUI load test executions.

Result analysis and Identification of Failure are a tedious task in NON GUI Mode executions.

To deal with these issues , we are come up with some jmeter parameters to be set so that results can be visible during the execution on the command line.

In One of my project , i have encountered a typical issue and it takes 2 hours to debug this,

On windows server when i do one iteration then it will pass the user but on Linux we got failure.

To Debug this we need to analyse the JTL File in Result Tree Listner, but by default we can't do this.


So i have done the following configurations: 


To enable the summary result :You can see the summary result on console



# Define the following property to automatically start a summariser
# with that name(applies to non-GUI mode ony)

 summariser.name=summary

# interval between summaries (in seconds) default 3 minutes
summariser.interval=180

# Write messages to log file
summariser.log=true

# Write messages to System.out
summariser.out=true


Response in Result Tree:

For viewing the response for the jtl file need to do certain setting in Jmeter.properties file of Jmeter.

Following parameter are need to be set :

jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.response_data=true
jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data.on_error=true
jmeter.save.saveservice.requestHeaders=true
jmeter.save.saveservice.url=true
jmeter.save.saveservice.responseHeaders=true

You can also pass the same in line command also :Like following 


Jmeter -Jjmeter.save.saveservice.output_format=xml -Jjmeter.save.saveservice.response_data=true -Jjmeter.save.saveservice.samplerData=true -Jjmeter.save.saveservice.requestHeaders=true -Jjmeter.save.saveservice.url=true -Jjmeter.save.saveservice.responseHeaders=true -n -t example.jmx -l example.jtl



Let me know in case of any query/concern.

No comments:

Post a Comment

plz give ur comments !!!!!!