Login

Lost your password?
Don't have an account? Sign Up

Selenium with Python | Unittest+ HTML Reports + Page Object Model

Topic : Unittest+ HTML Reports + Page Object Model

#seleniumwithpython

https://www.educational.guru

11 comments

  1. Priya A

    Thanks for informative tutorial video!
    When i run the test case in pycharm the test is passed but no html report is generated.
    so, I ran the test case from the terminal it says — ModuleNotFoundError: No module named ‘selenium’ error.

  2. Rushikesh Mahadik

    Yeah!, it’s great tutorial. No doubt! Thanks a lot!. But, those who are working with python 3 and mostly 3.5+ versions, HTMLTestRunner and html-testRunner both libraries will not be supported any more. so, instead of them try install html-test-report library and import html_test_report. In main function method calling like, unittest.main(testRunner=html_test_report.HtmlTestRunner). Calling through the terminal and cmd will remain the same procedure. It will generate reports separately for each unit test case and one collaborative report file as index.html and index.js into html directory(it will also auto-generate) under main project.

Leave a Comment

Your email address will not be published. Required fields are marked *

*
*