Giter VIP home page Giter VIP logo

automationchallengepython's Introduction

Automation Challenge Python-Selenium

This is an automation challenge, done in August 2021.

Technologies used:

  • python3
  • selenium
  • pytest
  • pytest-BDD
  • pytest-html
  • webDriver-manager
  • faker
  • pipenv

Install PipEnv

To run the project, pipenv is recommended.

    pip install pipenv

All dependencies are available in Pipfile, run the command pipenv install on the project directory to install them.

    pipenv install

Project Structure

The project structure is design to follow a Page Object Model and BDD.

.
|-- assets
|   `-- style.css
|-- tests
|   |-- features
|   |   `-- challenge.feature
|   |-- pages
|   |   |-- accountInfoPage.py
|   |   |-- basePage.py
|   |   |-- homePage.py
|   |   |-- __init__.py
|   |   |-- locators.py
|   |   |-- loginPage.py
|   |   `-- registerPage.py
|   |-- step_defs
|   |   |-- challenge_steps.py
|   |   `-- __init__.py
|   `-- test_challenge.py
|-- Pipfile
|-- Pipfile.lock
|-- README.md
|-- report.html
`-- userData.json

Run Project

To run the project, be sure to have install all dependencies with pipenv. Once that is done, run:

    pipenv shell

and run pytest:

    pytest -v tests/test_challenge.py

There's also the pytest-html module that can generate the report.
To generate the report:

    pytest -v tests/test_challenge.py --html=report.html

automationchallengepython's People

Contributors

megaten88 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.