jmeter + tomcat + ant + svn + jenkins achieve continuous integration testing

l installation jdk jdk when you need to check in advance whether the installation is successful

in the input javac java -version under dos

l The jmeter

l verify that the installation was successful:

into the next jmeter directory bin folder, click jmeter.bat, if the operation can significantly jmeter page is safe

l installation was successful

l Add jmeter environment variables:

New variable l: jMETER_HOME: variable value: D: \ apache-jmeter-2.13

l Editing the Path variable: Variable value added: % JMETER_HOME% \ bin

l Edit: CLASSPATH, complete the following variable values

l %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_

l HOME%\lib\logkit-2.0.jar;

l Authentication: open dos window input if the normal start the configuration was successful

l jmeter default save file format is .jtl, to set - down bin / jmeter.properties file

l Save jmeter.save.saveservice.output_format = xml (this is very important, otherwise it can not generate html file)

The ANT l extract to D: \ test \ ant next

l 5 jmeter where the directory replication extras subdirectory of ant-jMeter-1.1.1.jar to the directory where the Ant lib subdirectory from the bottom

In this way you can find Ant l "org.programmerplanet.ant.taskdefs.jmeter.JMeterTask" classes running to successfully trigger jMgter script

l Ant environment variable configuration to add environmental variables: a

l Add Variable name: ANT_HOME: ^

l variable value: D: \ ant \ apacheAnt

l edit CLASSPATH variable

l fill in variable values:;% ANT_HOME% \ lib

l Editing the Path variable:

variable value l: ;% the ANT_HOME% \ bin

l ant -version efficacy successful installation

l resultlog (storage of test reports place)

l html => ant the result of conversion

l jtl => jmeter generated test report

l scripts

L jmeter script execution

l apacheAntt be deployed and configured => Mail Configuration

l 3 th jar deploy the package to lower the ant lib:

l  activation.jar (activation-1.l.jar)

l mail.jar (mail-1.4.jar)

l  commons-email-1.l.jar

l build.xml configuration file:

l build.xml configuration file:

After the configuration, open the DOS window where the build.xml member, a report is generated input ant -

l Jenkins configuration:

l The jenkins.war into tomcat's webapps folder:

l start tomcat ^

l Enter URL: httpy / locahost: 8080 / jenkinsw      port default 8080 can be modified

l jenkins build process:

l start jenkins

New -> Enter the item name, select "Build a free-style software project"

 

Combined jmeter + jenkins + ant + suv implementation of integrated automated testing

 

 

 

 

 

build.xml

Settings

 

Guess you like

Origin www.cnblogs.com/zengjindong/p/11027330.html