Project Code:
Https://github.com/ellisa11/ynoteios-appium-test
Project structure:
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8E/F1/wKioL1jPkyCiHQGiAARPqd8_TAM952.png-wh_500x0-wm_ 3-wmp_4-s_2368621470.png "title=" is not named. png "alt=" wkiol1jpkycihqgiaarpqd8_tam952.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8E/F3/wKiom1jPk1SghdyoAAMFi3JcfII601.png-wh_500x0-wm_ 3-wmp_4-s_1875326919.png "title=" is not named. png "alt=" wkiom1jpk1sghdyoaamfi3jcfii601.png-wh_50 "/>
Jenkins Configuration:
Mac Configuration Jenkins
Steps:
1. Download Tomcat
Installing wget
Brew Install wget
Download Tomcat
wget Http://apache.mirrors.ionfish.org/tomcat/tomcat-9/v9.0.0.M10/bin/apache-tomcat-9.0.0.M10.zip
Extract
UNAIP apache-tomcat-9.0.0.m10.zip MV Apache-tomcat-9.0.0.m10.zip tomcat_jenkins
650) this.width=650; "src=" http://note.youdao.com/yws/res/3027/F43194E116504C7784D9C44B5943E2A9 "title=" Apache-tomcat-7.0.68.zip "alt=" Apache-tomcat-7.0.68.zip "/>
2. Download jenkin (corresponding Mac)
*.war file
https://jenkins.io/
3. Copy the Jenkins.war file to the Jenkins/tomcat_jenkins/webapps, and then delete the ROOT file, rename Jenkins.war-Root.war
4. Create a new setenv.sh file in the Jenkins/tomcat_jenkins/bin directory ,
The contents are as follows:
Export Jenkins_home=/users/wujia/documents/jenkins
5. Start Tomcat
CD Jenkins/tomcat_jenkins
SH ~/.startup.sh
6. The browser opens http://127.0.0.1:8080/
Add HTML display to the results
1. Download and install Jenkins insert a Htmlpublisher
2. The HTML report has garbled characters, the solution:
In the Jenkins System Administration > Script Command line, enter the following script to run:
System.setproperty ("Hudson.model.DirectoryBrowserSupport.CSP", "" ")
(eight) Appium+python+jenkins iOS test