4/26/16

JMeter in Non GUI mode

How to run JMeter in Non GUI mode:


Running JMeter using command line in non-GUI mode is very simple.
1. Open your *.jmx file
2. Remove all graphic data writers
3. In the non-gui mode they will not work, and it is no need to keep them in testing scenario.
4. Open command prompt
5. Go into JMeter’s bin folder

6. Enter following command, jmeter -n –t test.jmx -l test_results.jtl









-n: It specifies JMeter is to run in non-gui mode
-t: Name of JMX file that contains the Test Plan
-l: Name of JTL(JMeter text logs) file to log results
-j: Name of JMeter run log file.

Other than these options, JMeter has several other parameters that can be used for running in the non-GUI mode.
-R: list of remote servers,
-H: proxy server hostname or ip address
-P: proxy server port.

View test result:
Once your test is complete, you will see the following display:
















After completing the test, a JTL file will be generated at jmeter2.12/bin folder
Follow below steps to view test results from the resultant JTL file.
Open JMeter in GUI mode.
Add any listener Eg. View Results Tree.
Click Browse button of the file name field in listener.
Open testresult.jtl file.
You should be able to see the result in listener now.


No comments:

Post a Comment