Use SVN and the Jenkins complete the continuous integration test of the script
Goal:
1) Use svn to manage scripts;
2) Execute the script using Jenkins;
3) Configure SVN in Jenkins to automatically get the latest script execution;
Steps:
(1 ) Install Jenkins and plug-ins
(2 ) Install SVN client;
(3 ) Jenkins the configuration Management
Detailed Description:
(1) Installing Jenkins and plugins
Download jenkins:http://mirrors.jenkins-ci.org/
Download the extracted War pack under Tomcat and start Tomcat.
Install plug-ins: Install the following plugins in the Manage Plugins page of System Management:
Python Plugin
Robot Framework Plugin
Selenium Plugin
(2) Install SVN client and obtain the repository URL and corresponding user name and password of SVN server side script
Only SVN-only clients are installed to manage the update of the script.
SVN server side is the SVN of the shared management program
(3) Jenkins simple configuration
1. With two items, the default view (all) is used and no new view is created
2. On the default view all interface, click New in the upper left corner to create a project that is an automated test, and choose to build a free-form software project such as:
- To configure the project information, click Configure:
2. Configure source Management information:
Fill in the Repository URL, the first time you use, you need to enter a user name and password.
Check out policy selection: Always check out a fresh copy so that each execution of the script is checked out first
Configure 7 points per day to execute the script: * * * * * Total five respectively is the minute, when, days, months, years, * on behalf of all
Of course, if you do not configure it, you can perform tests manually
How to perform:
Because scripts written in the Python language are available, you can use the Execute Windows Batch command method.
Folder path with command Pybot.bat + script
The path to the folder where the script resides is consistent with the workspace root directory
Click on the system administrator à advanced à workspace root directory, the red place is the folder I created myself, the back without modification.
Through the above configuration, it is implemented, each time the script executes through the check out the SVN script to the local folder, and then automatically perform the test.
Serial Two: robotframework+svn+jenkins integration test