Monday 10 February 2014

Apache JMeter non-GUI commands


Prerequisites :

  1. JRE & JDK installed in OS.
  2. Environment variables paths are configured for JRE & JDK.
  3. Downloaded Apace JMeter binary.
  4. To run the JMeter Test Plan on non-GUI mode, the Test Plan must be made and configured on GUI mode.
 Steps:

To save the results for the <test plan>  (i.e summary report, aggregate report etc ..) specify the path in the GUI mode for file types (.jtl, .csv)

Go to the patch where Apache JMeter binary file is located:

 Command to start the test plan on non-GUI (command line) mode:
jmeter -n -t "D:\NSB\NSB.jmx" 
-n [This specifies JMeter is to run in non-gui mode]
-t  [name of JMX file that contains the Test Plan]
-l  [name of JTL file to log sample results to]
-j  [name of JMeter run log file].

JMeter has several other parameters that can be used for running in non-GUI mode.

-R [list of remote servers] Run the test in the specified remote servers
-H [proxy server hostname or ip address]
-P [proxy server port]

Above mentioned options are used for remote execution of JMeter tests and for using JMeter through a proxy server.
 

1 comment: