How can we add reporting capabilities to Selenium based UI automated testing, such as reports on failed and passed tests, recurring failed tests, etc.?
The next step is to run all the test on each build, with a build-server like Jenkins and report broken build/tests with visual indicators.
- Allure is a reporting framework to parse xUnit test results, looks pretty nice
- TestNG has reporting, read this blog post to get started: http://learn-automation.com/generate-reports-selenium-using-testng-xslt/
This answer is for users who are using PyCharm/want to explore PyCharm.
For Selenium based tests, PyCharm allows you to obtain the test results. If you click the
Explore Test Results option at the
Test Runner tab, of Pycharm, a nice HTML of your tests results open up.
It allows you to take results in following three formats :
- Custom , apply XSL template.
To view results in browser :
Open Exported File check box
This will automatically open your test results in your default browser.