TestProject Forum

General => Selenium => Topic started by: Robert on May 03, 2016, 19:35:32 pm

Title: selenium in python Reporting
Post by: Robert on May 03, 2016, 19:35:32 pm
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
Title: Re: selenium in python Reporting
Post by: Ruhit on May 04, 2016, 15:38:13 pm
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