Automation testing framework (UI) - an example. Based on Python, Selenium, and Behave
Python 3.7.*, Selenium 3.141.0, Behave 1.2.6,
virtualenv (virtual environment manager),
Firefox 90.0, geckodriver 0.29.1,
Chrome 81.0.4044.122, chromedriver 81.0.4044.69
-- automaton-v1
|-- .gitattributes
|-- .gitignore
|-- LICENSE
|-- README.md
|-- requirements.txt
`-- features
|-- environment.py
|-- browser.feature
|-- google.feature
|-- tutorial.feature
`-- steps
|-- browser.py
|-- google.py
|-- tutorial.py
- Install Python
- Install and configure virtualenv
- Clone or copy (download) the repository into your virtual environment
- Activate virtual environment, move to
automaton-v1
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-v1
folder - Execute
behave
or for Chrome browserbehave -D browser=Chrome
behave features/google.feature
for Mac / Linux orbehave features\google.feature
for Windows, will execute all scenarios ingoogle.feature
filebehave features/google.feature:4
for Mac / Linux orbehave features\google.feature:4
for Windows, will execute the first scenario ingoogle.feature
filebehave features/google.feature:17
for Mac / Linux orbehave features\google.feature:17
for Windows, will execute the second scenario with the first parameter from Examples table ingoogle.feature
file
Python 3.7
virtualenv
GitHub, cloning repository
behave
Selenium
Firefox
geckodriver
Chrome
ChromeDriver