Interface Automation: Jenkins automatically builds python+nose test

Source: Internet
Author: User

Reference:

Http://www.cnblogs.com/LanTianYou/p/6559916.html#_label1

http://blog.csdn.net/limm33/article/details/51191263



Building a python nose test with Jenkins Automation is two steps:

1. Create nodes (nodes are machines that perform automated tests);

2. Create the task and bind the node (using the specified machine to run the task we created, here we choose to execute a script)


1, create the node:

jenkins-"System Management-" Management node-"Add node, enter" node name "-select"Dumb Slave"-click" OK "


2, Configuring the node

Remote working directory: E:\jenkins\

Usage: Use this node whenever possible

Start method: ... Java Web

Stay online


3. Access the newly created Autonose node page on the machine that needs to perform the automated tests and click "Launch" to Download "SLAVE-AGENT.JNLP":


The following methods are tested by:

。 Download Slave.jar, put in the path directory, easy to run

。 Java-jar Slave.jar-jnlpurl HTTP://192.168.10.64:8092/JENKINS/COMPUTER/AUTONOSE/SLAVE-AGENT.JNLP

This node on the front is already connected to Jenkins.



Finally set up execute Windows Script

CD D:\autotest\apitest\TestCase_ZhiMa\

Nosetests-s-V--with-html-output--html-out-file=./testreport_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time: ~3,2%%time:~6,2%.html




Note:




Interface Automation: Jenkins automatically builds python+nose 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.