Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Build from scratch Web Test Automation Framework with pytest and selenium

License

Notifications You must be signed in to change notification settings

createNull/Selenium-PyTest-Automation-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium-PyTest-Automation-Framework

Build from scratch Web Test Automation Framework with pytest and selenium. This framework provides methods for testing functionality logic as well as front-end validation. Tests can be run in parallel to improve execution time.

Prerequisites

  • Python 3.x

Browsers supported

  • Google Chrome
  • Mozilla Firefox

Local setup & installation:

pip install -r requirements.txt
  • Execution
# Run all tests
pytest

# Run one test
pytest tests/acceptance_tests.py::AcceptanceTests::test_fare_for_adult

# Run all tests in parallel
pytest -vs -nauto

Directories

  • tests - test files
  • screenshots - test failure screenshots

Reporting with screenshots

pytest --html report.html

Rules

  • Standard fare is £2
  • People under 16 travel at half price
  • People 60 or over travel free
  • Anyone travelling off-peak receives a 25% discount
  • Peak travel is from 7.30am up to and including 5.30pm
  • The date of travel must be tomorrow or after

About

Build from scratch Web Test Automation Framework with pytest and selenium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages