Skip to content

rafitur2/Python-Pytest-Selenium-HTML-report-with-multiple-screenshots

Repository files navigation

Python Pytest Selenium HTML report with multiple screenshots

Create test cases by using Pytest to test webpages via selenium and generate a nice HTML report with screenshots

Prerequisite

Download the chromdriver execution file and save it in the scripts folder:
http://chromedriver.chromium.org/
C:\Python36-32\Scripts

Installation

$ pip install pytest
$ pip install pytest-html
$ pip install selenium

How to Run

Example: C:\SeleniumProject\Pytest_HTML_ScreenShot>py.test -s -v Test_Runner.py --html=Htmlreport.html

ScreenShots

image

image

About

Python - Pytest - Selenium Generate HTML report with multiple screenshots

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published