TestProject Forum
Powered by leading experts in the test automation community

Selenium in python Reporting

I’ve written a few tests in python with selenium and unittest module.

I would like to create a report of the tests results.

Is there anything built-in or perhaps a good framework available or do I have to invent the wheel on this ?

Thanks

To start building test reports of Selenium with Python, you should just use the python unittest module.

There’s a basic sample in Selenium documentation: http://selenium-python.readthedocs.io/

Use HTMLTestRunner module with unittest to generate basic HTML reports. http://tungwaiyip.info/software/HTMLTestRunner.html