Build JMeter+Jenkins+Ant persistence

First configure the environment variable: (jdk should be configured in advance)

ANT_HOME

 Path:

 CLASSPATH:

Verify that the installation was successful:

 

Enter the command: ant -v

Configuration library file:

 Copy the ant-jmeter-1.1.1.jar file in the jmeter extras directory to the lib folder in the ant installation directory

Create jtl and html folders in the test\TestAuto\pc\resultlog directory:

Configure ant's compilation file build.xml:

Copy build.xml to the pc directory under the TestAuto directory under text

Modify the data of build.xml:

Then log in to your own QQ mailbox j to set up:

 Click to open, then send a text message, click I have sent after sending

 Copy the authorization code afterwards

 Modify build.xml next time

 

Put your own test report in test\TestAuto\pc\script

 

 Next, enter cmd in the same directory as build.xml, and enter ant in cmd

 The result is as follows:

 This is an online preview, and there are garbled characters, but it is not garbled when I look at it after downloading.

Guess you like

Origin blog.csdn.net/ng_elza/article/details/120728600