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.
-
Clone the repository:
git clone https://github.com/Summerduck/api-test-automation-meme.git cd api-test-automation-meme
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the tests:
pytest
-
Generate and view the Allure report:
allure serve test-report
-
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.
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