This a project for web automation of Parent.Land
Technology stack: Python, Selenium, Behave
Project Folder
├── features
│ ├── pages
│ │ ├── base_page.py # base class - helper functions
│ │ ├── home.page.py # homepage class with locators dictionary
│ ├── steps
│ │ ├── parentland.py # Gherkin steps
│ ├── parentland.feature # test scenarios
│ ├── environment.py # browser settings
├── test_data.py # test data, usernames etc.
Credentials are hidden in local file: assets/passes.txt Please create Parent.Land account and add credentials to this file, as well as your e-mail. Helper function "read_creds" () is used.
Tu use this project Python 3.8. is required.
python3.8 -m venv venv
pip install -r requirements.txt
The convention for managing Python dependency is as follows:
- we add the dependency into requirements.in
- we call
pip-compile
to create requirements.txt - we commit both files to repository.
To run tests locally Selenium Webdriver is required. In this project Selenium Webdriver is managed automatically by Webdriver Manager Be sure that you have updated version of Chrome Browser on your device.
Just type in command line
behave