Python3 with pipenv
- Clone repo
- Open terminal and cd to repo
- pipenv install
- pipenv shell
- cd to any day's directory
- Run tests.py or python -m unittest
day0 - Baby Steps
- create chrome driver using ChromeDriverManager
- open an url
- find element pass value to the element and select element
- quit driver
day1 - Implement initial POM
- create a file with pages classes
- each pages class contains the locators of the page and functions for each action done on the page
- test file imported the pages class and called the functions from there
day2 - Separate pages for POM, tests structured in a class
- create seperate directories for pages and tests
- create separate page class files for each page class
- each sub page classes inherits basepage class
- test file imports sub page classes and used the functions from there
day3 - Implement unittest
- implement test template class with setup and teardown methods
- test class inherits test template class
day4 - Separate locators, add Explicit Wait in basepage class
day5 - Move reusable test functions to Page Objects
day6 - Generate HTML reports
day7 - Use configparser to read properties file
day8 - Use Behave
day9 - Use pytest
- Add
conftest.py
- Added
driver_init(request)
for class setup and teardown