Running JMeter in command line mode is an option to carry out high number of concurrent users and obtain results.
STEP 1:
Go to bin folder of your JMeter installation from command prompt and type the following command:
jmeter -n -t my-Scrtip.jmx -l sample.jtl -j <smaple.log>
Ex: jmeter -n -t D:\sampleScripts\script.jmx -l D:\sampleScripts\scriptresults.jtl
-n ------> Specifies Jmeter is to run in non GUI mode,
-t ------> name of your test script jmx file (If you want u can Specify jmx file with location)
-l------> name of jtl
-j -----> generate the log file for the execution
STEP 2 :
after getting the JTL file , use the below command to generate the HTML report
jmeter -g <sample.jtl> -o <folderpath>
After executing the above command, it will generate the HTML in the desired path.. You can now view the results.......... :)
STEP 1:
Go to bin folder of your JMeter installation from command prompt and type the following command:
jmeter -n -t my-Scrtip.jmx -l sample.jtl -j <smaple.log>
Ex: jmeter -n -t D:\sampleScripts\script.jmx -l D:\sampleScripts\scriptresults.jtl
-n ------> Specifies Jmeter is to run in non GUI mode,
-t ------> name of your test script jmx file (If you want u can Specify jmx file with location)
-l------> name of jtl
-j -----> generate the log file for the execution
STEP 2 :
after getting the JTL file , use the below command to generate the HTML report
jmeter -g <sample.jtl> -o <folderpath>
After executing the above command, it will generate the HTML in the desired path.. You can now view the results.......... :)