Skip to content

Python-based API test automation framework for Meme API featuring pytest, Locust for performance testing, and Allure reporting. Includes functional, and load testing capabilities.

License

Notifications You must be signed in to change notification settings

summerduck/memeapi-api-test-framework-python-pytest

Repository files navigation

API Test Automation Meme

This repository contains a Python-based API test automation framework designed for testing the Meme Maker API. It utilizes tools such as Locust for load testing and Allure for reporting.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/Summerduck/api-test-automation-meme.git
    cd api-test-automation-meme
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the tests:

    pytest
  2. Generate and view the Allure report:

    allure serve test-report
  3. Perform load testing with Locust:

    locust -f locustfiles/your_locust_file.py

    Then, navigate to http://localhost:8089 in your browser to start the load test.

Project Structure

api-test-automation-meme/
├── data/
│   └── ...                 # Test data files
├── endpoints/
│   └── ...                 # API endpoint definitions
├── locustfiles/
│   └── ...                 # Locust load testing scripts
├── tests/
│   └── ...                 # Test cases
├── .gitignore
├── LICENSE
├── README.md
├── api_documentation.md    # API documentation
├── conftest.py             # Pytest configuration
├── pytest.ini              # Pytest settings
├── requirements.txt        # Python dependencies
├── rlogger.py              # Custom logging configuration
└── test-report/            # Allure test reports

About

Python-based API test automation framework for Meme API featuring pytest, Locust for performance testing, and Allure reporting. Includes functional, and load testing capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Languages