当前位置:网站首页>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


边栏推荐
- [activity recommendation] cloud native, industrial Internet, low code, Web3, metauniverse... Which is the architecture hot spot in 2022
- The wechat team disclosed that the wechat interface is stuck with a super bug "15..." The context of
- 线程优先级
- ECCV 2020 double champion team, take you to conquer target detection on the 7th
- The difference between get and post in small interview questions
- AutowiredAnnotationBeanPostProcessor什么时候被实例化的?
- Recursively traverse directory structure and tree presentation
- skimage. morphology. medial_ axis
- Fedora alicloud source
- 小小面试题之GET和POST的区别
猜你喜欢

Install the tp6.0 framework under windows, picture and text. Thinkphp6.0 installation tutorial

cartographer_pose_graph_2d

The parameter field of the callback address of the payment interface is "notify_url", and an error occurs after encoding and decoding the signed special character URL (,,,,,)

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

LeetCode_ Binary search tree_ Simple_ 108. convert an ordered array to a binary search tree

cartographer_ pose_ graph_ 2d

Sofa weekly | open source person - Yu Yu, QA this week, contributor this week

cartographer_local_trajectory_builder_2d

PHP二维/多维数组按照指定的键值来进行升序和降序

Practical cases | getting started and mastering tkinter+pyinstaller
随机推荐
Data storage: the difference between MySQL InnoDB and MyISAM
递归遍历目录结构和树状展现
skimage. morphology. medial_ axis
Vie procédurale
【红队】要想加入红队,需要做好哪些准备?
The State Council issued a document to improve the application of identity authentication and electronic seals, and strengthen the construction of Digital Government
localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
Fedora alicloud source
AD教程系列 | 4 - 创建集成库文件
PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values
Redis installation on Linux
LSTM in tensorflow_ Layers actual combat
Command line interface of alluxio
[activity recommendation] cloud native, industrial Internet, low code, Web3, metauniverse... Which is the architecture hot spot in 2022
[greedy college] recommended system engineer training plan
二次bootloader关于boot28.asm应用的注意事项,28035的
How to make your big file upload stable and fast?
Recursively traverse directory structure and tree presentation
C# 40. Byte[] to hexadecimal string
创建 SSH 秘钥对 配置步骤