Selenium+python Reporting

python, selenium

Solution

To start building test reports on top of Selenium+Python, I would leverage the python unittest module. You will get a basic sample in Selenium documentation here.

Then HTMLTestRunner module combined with unittest provides basic but robust HTML reports.

Problem

I am doing some R&D on selenium+python. I wrote some test cases in python using selenium webdriver and unittest module. I want to know how can I create report of the test cases. Is there inbuilt solution available in selenium or I need to code to generate file. Or is there any other web testing framework with javascript support available in python which have reporting functionality. I am basically new to python as well as selenium. Just trying to explore.

Original source