Skip to content

shovalsolo/Python_Selenium_Framework

Repository files navigation

How to Run the Tests

Location: /Users/macsho/Programming/Python_Selenium_Framework

If the browser was updated and the chromedriver is not supporting the browser version run the following command to update the chrome driver using the ChromeDriverManager pip install -r requirements.txt

Get requirements

  1. pip install -r requirements.txt

to run one test file

  1. python -m unittest tests/test_showcase.py

Run all test files

  1. pytest -v --tb=long --capture=no tests/test_showcase.py

  2. Run all test files with reports pytest tests/ --html=reports/report.html --self-contained-html --capture=no -v

  3. Run all with reports one line pytest --html=reports/full_report.html --self-contained-html -v

  4. Run all with reports test location Python_Selenium_Framework/showcase_framework pytest tests/ \
    --html=reports/report.html
    --self-contained-html
    --capture=no
    -v

  5. this will generate a report in a new folder with the date

  6. Adding a dev branch

About

test caes for ShowcaseDesigners website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published