Serial Two: robotframework+svn+jenkins integration test

Source: Internet
Author: User
Tags svn client

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:

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.