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