(八)appium+python+jenkins ios測試

項目代碼:html

https://github.com/ellisa11/ynoteios-appium-test ios


項目結構:git

wKioL1jPkyCiHQGiAARPqd8_TAM952.png-wh_50



wKiom1jPk1SghdyoAAMFi3JcfII601.png-wh_50



jenkins配置:github

mac配置jenkinsweb

步驟:apache

1. 下載tomcat瀏覽器

安裝wgettomcat

brew install wgetapp

下載tomcatwebapp

wget http://apache.mirrors.ionfish.org/tomcat/tomcat-9/v9.0.0.M10/bin/apache-tomcat-9.0.0.M10.zip

解壓

unaip apache-tomcat-9.0.0.M10.zip  mv apache-tomcat-9.0.0.M10.zip tomcat_jenkins

apache-tomcat-7.0.68.zip

2. 下載jenkin(對應mac)

*.war文件

https://jenkins.io/

3. 將jenkins.war文件複製到jenkins/tomcat_jenkins/webapps,而後刪除ROOT文件, 重命名jenkins.war -> ROOT.war

4. 在 jenkins/tomcat_jenkins/bin 目錄下新建 setenv.sh 文件

內容以下:

export JENKINS_HOME=/Users/wujia/Documents/jenkins

5. 啓動tomcat

cd jenkins/tomcat_jenkins

sh ~/.startup.sh

6.瀏覽器打開http://127.0.0.1:8080/ 便可


結果中放入html展現

1. 下載並安裝 jenkins插個HTMLPublisher

2. html 報告中有亂碼,解決辦法:

在jenkins系統管理>腳本命令行中輸入如下腳本運行:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

相關文章
相關標籤/搜索