Jmeter command line to run the configuration environment variable

Jmeter command line to run the configuration environment variable

When you open jmeter GUI interface will pop up a window cmd command prompt: Do not use the GUI when the pressure test, use the command line

 

 

 

In the cmd command line which runs jmeter then need to configure jmeter environment variables, you can start the configuration jmeter environment variables:

After the download is complete shown I saved to D: \ apache-jmetes \ apache-jmeter-4.0

 

 Start configuring environment variables:

(1) "My Computer"> Right menu> "Properties"> "Advanced System Settings"> "Environment Variables";

 (2) Add two attribute variables in the system 

 ① JMETER_HOME = D: \ apache-jmetes \ apache-jmeter-4.0 (jmeter path is saved)

 

 

②      CLASSPATH = ;%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar

(This copy to CLASSPATH tail on ok)

 

 

(3) in the system variable path followed by % JMETER_HOME% \ bin

Note that the system shown in FIG variables

 

 

Finally, close and reopen cmd input directly open jmeter FIG jmeter

Input: jmeter -n -t C: \ the Users \ Administrator \ Desktop \ get token.jmx , you can run directly get token.jmx this script jmeter

 

Guess you like

Origin www.cnblogs.com/111testing/p/11802635.html