当前位置:网站首页>Using Jenkins to perform testng+selenium+jsup automated tests and generate extendreport test reports
Using Jenkins to perform testng+selenium+jsup automated tests and generate extendreport test reports
2022-06-26 05:25:00 【penngo】
List of articles
The previous article already introduced Maven Integrate TestNG、ExtentReports、Selenium、Jsoup Test project engineering The establishment of the , This paper introduces the use of Jenkins Execute automated test code .
1、Jenkins
1.1 Download and install jenkins
download jenkins:https://www.jenkins.io/download/
start-up Jenkins
java -Xms1024m -Xmx1024m -jar jenkins.war --httpPort=9090
1.2 install HTML Publisher plug-in unit

Modify view HTML File strategy 

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "script-src 'unsafe-inline'")
You can make the test report full display style
2、 Use Jenkins Create pipeline tasks
2.1 Create a pipeline


Enter build script code
pipeline {
agent any
stages {
stage(' Deployment development environment ') {
steps {
bat 'echo Deployment development environment !'
}
}
stage(' Integration testing ') {
steps {
dir("F:/project/idea_test/extentreports-java/testng_extentreports"){
bat 'mvn package'
}
}
}
}
post {
always {
dir("F:/project/idea_test/extentreports-java/testng_extentreports"){
publishHTML (target : [allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'test-output',
reportFiles: 'V3HTML.html',
reportName: ' Test report ',
reportTitles: 'Html The report '])
}
}
}
}
2.2 structure

Enter the completed build task 
2.3 Test report


边栏推荐
- skimage.morphology.medial_axis
- 10 set
- Technical problems to be faced in mobile terminal im development
- Redis discovery bloom filter
- Tp5.0 framework PDO connection MySQL error: too many connections solution
- 9 common classes
- cartographer_fast_correlative_scan_matcher_2d分支定界粗匹配
- Protocol selection of mobile IM system: UDP or TCP?
- Introduction to GUI programming to game practice (I)
- First day of deep learning and tensorflow learning
猜你喜欢

Introduction to alluxio

FastAdmin Apache下设置伪静态

Learn from small samples and run to the sea of stars
![C# 39. string类型和byte[]类型相互转换(实测)](/img/33/046aef4e0c1d7c0c0d60c28e707546.png)
C# 39. string类型和byte[]类型相互转换(实测)

Yunqi lab recommends experience scenarios this week, free cloud learning
![[upsampling method opencv interpolation]](/img/6b/5e8f3c2844f0cbbbf03022e0efd5f0.png)
[upsampling method opencv interpolation]

AutowiredAnnotationBeanPostProcessor什么时候被实例化的?
Briefly describe the pitfalls of mobile IM development: architecture design, communication protocol and client

localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。

Experience of reading the road to wealth and freedom
随机推荐
Learn cache lines and pseudo sharing of JVM slowly
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
thread priority
cartographer_ fast_ correlative_ scan_ matcher_ 2D branch and bound rough matching
Installation and deployment of alluxio
Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
瀚高数据库自定义操作符‘!~~‘
Tensorflow visualization tensorboard "no graph definition files were found." error
[activity recommendation] cloud native, industrial Internet, low code, Web3, metauniverse... Which is the architecture hot spot in 2022
Redis discovery bloom filter
【活动推荐】云原生、产业互联网、低代码、Web3、元宇宙……哪个是 2022 年架构热点?...
Gd32f3x0 official PWM drive has a small positive bandwidth (inaccurate timing)
使用Jenkins执行TestNg+Selenium+Jsoup自动化测试和生成ExtentReport测试报告
PHP二维/多维数组按照指定的键值来进行升序和降序
【ARM】讯为rk3568开发板buildroot添加桌面应用
[leetcode] 713: subarray with product less than k
Leetcode513.找出树的左下角的值
Anaconda creates tensorflow environment
Security problems in wireless networks and modern solutions
The localstorage browser stores locally to limit the number of forms submitted when tourists do not log in.