Skip to content

Automation testing framework (UI) - an example. Based on Python, Selenium, and Pytest

License

Notifications You must be signed in to change notification settings

BurhanH/automaton-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automaton-v3

Automation testing framework (UI) - an example. Based on Python, Selenium, and Pytest

GitHub Codacy Badge Python Selenium pytest testing

Requirements

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

Project structure

-- automaton-v3
   |-- .gitattributes
   |-- .gitignore
   |-- LICENSE
   |-- README.md
   |-- requirements.txt
   `-- tests
       |-- __init__.py
       |-- test_browser.py
       |-- test_initial.py

How to prepare environment

  1. Install Python
  2. Install and configure virtualenv
  3. Clone or copy (download) the repository into your virtual environment
  4. Activate virtual environment, move to automaton-v3 folder, and execute command pip install -r requirements.txt
  5. Install Firefox / Chrome web browser
  6. Download, extract and move geckodriver / chromedriver into bin folder for Mac/Linux, Scripts folder for Windows on virtual environment

How to run tests

  1. Open terminal window
  2. Move to virtual environment folder
  3. Activate virtual environment
  4. Move to automaton-v3 folder
  5. Execute pytest

How to run test/s in Chrome browser

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

Technology stack and helpful info

Python 3.6 / Python 3.7 / Python 3.8
virtualenv
GitHub, cloning repository
Pytest
Selenium
Firefox
geckodriver
Chrome
ChromeDriver

About

Automation testing framework (UI) - an example. Based on Python, Selenium, and Pytest

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages