Since the last article: Interface test automation framework: jmeter + ant + jenkins (a)
Third, a more and jmx file multiple requests report shows
The above is only a request, we look at the effect of multiple requests
One plurality of requests jmx
Then add in a thread group http request, in the same jmx file, set up a new http request, the successful implementation
Re- ant, the results are as follows:
More more jmx request: Similarly, do not continue elaborated here.
Four, ant calling jmeter script (by jenkins)
Start tomcat in startup, press win + r key, enter startup
Do not turn off, enter in your browser: HTTP: // localhost: 8580 /
This pop-up page, indicating successful start tomcat
Log HTTP: // localhost: 8580 / Jenkins / , click [management] Jenkins
Configure the user name, password and plug-ins , where you need to configure invoke ant plugin, HTML test report shows plug-ins
( 1) create an administrative install HTML Publisher Plugin and Ant In Workspace in Jenkins
( 2) In the Jenkins System Management - the system settings and configuration jdk Ant
If the plug-in management installed the Ant plug-in
If you do not need to re-install the Ant
Click the [global] configuration tool
Adding ant, Name easily fill, ANT_HOMEt fill in your ant installation directory
Add JDK
Click Save
New task
Enter the task name, select the type of
Click OK
Fill build.xm absolute path , in the build menu, Ant Version drop-down box
Click on the left of the building immediately
View Log
In the E: \ jmetertest \ directory under result also generated html and jtl report.
In this way you can use regular implementation of our jmeter script jenkins, that is, the script batch execution jmeter