Running Jmeter scripts from command prompt

In order to run a jmeter script which has the format of .jmx in command prompt we first have to go to the folder where our jmeter is saved

C:\apache-jmeter-5.0\bin

Then we type the below commands to a run a jmeter file

Jmeter –n –t CoookiesManager.jmx -l C:\DCIM\reports.jtl

Here CookiesManager.jmx is our file and we want command prompt to save the results as reports.jtl file in C drive. Once the testplan runs successfully there are 2 ways to check the results.

1.See them in cmd itself.

2.Open a new excel file and drag and drop the generated .jtl file there and check results.