GithubHelp home page GithubHelp logo

burhanh / automaton-v9 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 204 KB

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

License: MIT License

Python 100.00%
python opencv selenium unittest automation

automaton-v9's Introduction

Automaton-v9

Automation testing framework (UI, Visual) - an example. Based on Python, OpenCV (Open Source Computer Vision Library), Selenium, and Unittest

GitHub Codacy Badge

Requirements

Python 3.7.*, Selenium 3.141.0, Unittest, Open CV 4.1.*
virtualenv (virtual environment manager),
Firefox 75.0, geckodriver 0.26.0,
Chrome 81.0.4044.122, chromedriver 81.0.4044.69

Project structure

-- automaton-v9
   |-- .gitattributes
   |-- .gitignore
   |-- LICENSE
   |-- README.md
   |-- requirements.txt
   |-- utils.py
   |-- bad_template.png
   |-- google_template.png
   |-- buttons_template.png
   |-- search_template.png
   `-- tests
       |-- test.py
   `-- results_example
       |-- home_page.png
       |-- google_template_result.png
       |-- buttons_template_result.png
       |-- search_template_result.png

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-v9 folder, and execute command pip install -r requirements.txt
  5. Install Firefox
  6. Download, extract and move geckodriver 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-v9 folder
  5. Execute python -m unittest discover tests "*.py" -v

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.7
virtualenv
GitHub, cloning repository
OpenCV, Open Source Computer Vision Library
unittest
Selenium
Firefox
geckodriver
Chrome
ChromeDriver

Actual result (taken screenshot)

alt text

Visual searching result for google template (google logo)

alt text

Visual searching result for buttons template

alt text

Visual searching result for search template

alt text

automaton-v9's People

Contributors

burhanh avatar dependabot[bot] avatar codacy-badger avatar

Stargazers

Antenore Gatta avatar

Watchers

James Cloos avatar  avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.