Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to display selenium html report using jenkins pipeline?


Step 1 – Install seleniumhtmlreport

  • https://plugins.jenkins.io/seleniumhtmlreport/

Step 2 – Use following code


# CODE 1
seleniumHtmlReport(String testResultLocation = 'target') {}

# CODE 2
job('seleniumreport') {
    publishers {
        seleniumHtmlReport('target/test-output') {
            failOnExceptions()
        }
    }
}
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x