nand
nand

Reputation: 117

How to generate Selenium HTML Report in Jenkins?

I created selenium test cases using TestNG. After that I created testng.xml and ran all classes parallely. Now the problem is to generate Selenium HTML Report in Jenkins. I exactly have to do that is mentioned in this link. For that how to generate Selenium Html Report. I used Maven as build tool.

Upvotes: 2

Views: 5130

Answers (3)

lanwen
lanwen

Reputation: 2299

You can also use Allure Report with pretty view and easy-to-use with maven

Upvotes: 3

Pazonec
Pazonec

Reputation: 1559

Try this http://www.wakaleo.com/thucydides/ This library generates well reports, but needs some changes in code.

Upvotes: 2

niharika_neo
niharika_neo

Reputation: 8531

Selenium (RC) by itself doesn't generate any reports (as far as I know). It relies on the testing framework that it gets coupled with. Since you are using TestNG as your testing framework, TestNG does generate the html reports. You can go to your test-output folder and check for index.html which would be a link to the results. In case you are invoking through maven, check the target\surefire-reports folder for reports.

For integration with Jenkins, you can use the testng plugin (https://wiki.jenkins-ci.org/display/JENKINS/testng-plugin) which would give you the testng results on your job page.

You can also try if the html report generated by TestNG can be parsed by the plugin you mentioned, in case you want to use that plugin only.

Hope it helps.

Upvotes: 3

Related Questions