Code Monkey home page Code Monkey logo

behave_python_demo_shop's Introduction

About project

This simple project includes automation tests of the online demo shop:

The structure of the project was created with using Behave (behaviour-driven development technique) and Python.

Tests are checking visibility of logo on main page, testing ordering process (e2e testing), and checking login credentials.

All tests are running on travis CI: Travis (.com)

How to run this project on Ubuntu 20.04.1

Prepare your environment:

  • Create and activate virtual environment:
  # virtual environment creation:
  $ python3 -m venv .venv

  # activation:
  $ source .venv/bin/activate

  # deactivation if needed:
  $ deactivate
  • Install required libraries on active .venv environment:
  # basic command:
  $ pip install -r requirements.txt
  $ pip install -r test_requirements.txt

  # or you can use:
  $ make deps
  $ make test
  • Check your installation:
  $ pip freeze
  • Install geckodriver:
  # Remember that the geckodriver needs to be in PATH.
  # Check out if installed geckodriver is in /usr/bin or /usr/local/bin directory.
  $ sudo apt install firefox-geckodriver
  • Fork this repository and clone from your GitHub:
  $ git clone https://github.com/<YOUR_GITHUB_USER_NAME>/behave_python_demo_shop.git

Run tests and check code syntax:

  • Use Makefile command to run all tests:
  # to run all tests
  $ make test

  # to check syntax
  $ make lint
  • To run only test with credentials checking, use:
  $ behave --tags=multiple

behave_python_demo_shop's People

Contributors

bryg9 avatar

Watchers

 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.