python-2.7selenium-webdriverreport

Automated test execution report for Selenium + Python 2.x


I am doing some R&D on Selenium and Python 2.7.x.

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.


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.