FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Stml89/pytest-framework-api · GitHub

Repository files navigation

About


This is a simple example of a test automation project for testing Booker broker, using Pytest, and allure for reporting. Repository have a general structure to help you organize and create frameworks from scratch.

Made by Siarhei Stamal for Python Test Automation course.

Project structure


/pytest-framework
├── .github
│   ├── workflows
│   │   ├── flake8.yaml
│   │   ├── ...
├── tests
│   ├── conftest.py
│   ├── test_booking.py
├── utils
│   ├── api
│   │   ├── auth.py
│   │   ├── booking.py
│   ├── clients
│   │   ├── http
│   │   │   ├── builder.py
│   │   │   ├── client.py
│   ├── models
│   │   ├── auth.py
│   │   ├── booking.py
│   ├── validate
│   │   ├── schema.py
│   ├── assertions.py
│   ├── random_generator.py
│   ├── routes.py
├── allure-results
│   ├── *.json
│   ├── *.txt
├── .gitignore
├── pyproject.toml
├── .env
├── settings.py
├── pytest.ini
├── README.md
├── requirements.txt
└── LICENSE

Usage


How to install

  1. Clone this repository
    $ git clone <URL>
  1. Create virtual environment, activate it:
    $ pip install virtualenv
    $ cd ~/projects/pytest-framework
    $ virtualenv venv
    $ source venv/bin/activate
  1. Install dependencies
    $ pip install -r requirements.txt

How to run tests

  1. To execute ALL tests w/ DEBUG log level
    $ pytest . --log-level=DEBUG
  1. To execute ALL API test suite
    $ pytest . -m login
    $ allure serve
    or
    allure generate

Available markers:

  • api - to execute all API test cases
  • bookings - to execute test cases related to BOOKING functionality

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL