Automation testing framework (UI) - an example. Based on Python, Selenium, and Pytest
Python 3.6.*/3.7.*/3.8.*, Selenium 3.141.0, Pytest 4.4.1,
virtualenv (virtual environment manager),
Firefox 90.0, geckodriver 0.29.1,
Chrome 81.0.4044.122, chromedriver 81.0.4044.69
-- automaton-v3
|-- .gitattributes
|-- .gitignore
|-- LICENSE
|-- README.md
|-- requirements.txt
`-- tests
|-- __init__.py
|-- test_browser.py
|-- test_initial.py
- Install Python
- Install and configure virtualenv
- Clone or copy (download) the repository into your virtual environment
- Activate virtual environment, move to
automaton-v3
folder, and execute commandpip install -r requirements.txt
- Install Firefox / Chrome web browser
- Download, extract and move geckodriver / chromedriver into
bin
folder for Mac/Linux,Scripts
folder for Windows on virtual environment
- Open terminal window
- Move to virtual environment folder
- Activate virtual environment
- Move to
automaton-v3
folder - Execute
pytest
Go to any UI scenario and change the value of the BROWSER
variable from firefox
to chrome
.
Note! Before execution read steps 5-6 from How to prepare environment section
Python 3.6 / Python 3.7 / Python 3.8
virtualenv
GitHub, cloning repository
Pytest
Selenium
Firefox
geckodriver
Chrome
ChromeDriver