Continuous Integration
Continuous integration is a software development practice where team development members integrate their work frequently, usually each member integrates at least once a day, which means that multiple integrations may occur each day. Each integration is verified through automated builds (including compilation, release, and automated testing) to find integration errors as soon as possible. Many teams find that this process can greatly reduce integration problems, allowing teams to develop cohesive software faster.
Jenkins is a continuous integration tool developed based on java. It is used to monitor continuous and repetitive work. Its functions include: continuous software version release, test projects, and monitoring of work performed by external applications.
project build
Compile and run multiple project files in a unified batch through the build tool. For example, batch run multiple Jmeter scripts.
Apache Ant is a tool that ties together the steps of software compilation, testing, deployment and automation. It is mostly used for software development in the java environment.
Ant installation configuration
1. Download and install
Download address: http://ant.apache.org/bindownload.cgi
Download and decompress it on any drive letter, and then configure the environment variables
1 ANT_HOME D:\apache-ant-1.10.3 2 path D:\apache-ant-1.10.3\bin 3 classpath D:\apache-ant-1.10.3\lib
Enter the following command on the DOS interface: {Ant installation location}\bin ant -version
If the following information appears, the installation is successful:
jenkins installation configuration
Please refer to the blog for jenkin installation and configuration http://www.cnblogs.com/mululu/p/8820322.html
Jenkins+Ant+Jmeter automated testing platform
Steps:
step1: Record the Jmeter script
Step2: Put the jar package of the extras directory "ant_jmeter-1.1.1.jar" in the Jmeter installation directory into the ant {installation directory}\lib directory (very critical!)
step3: Configure Jmeter's build.xml
Step4: Use Ant to compile and verify the Jmeter configuration build file (note that the configured build.xml file is placed in the ant installation bin directory)
Use the command ant -buildfile build.xml
step5: Deploy to the continuous integration platform jenkins
(1) Create a new free-style software project
(2) Build Settings: Add a build step, select Invoke Ant, then select "Advanced", and set the Build File
(3) Return to the panel and build the project
(4) After the build is complete, select "W Description", view "Console Output", and check whether the project is successfully built
Since then, the Jenkins+Ant+Jmeter automated test platform has been successfully built, so let's try it out. . . . . . . . .