Loading repository data…
Loading repository data…
shifat97 / repository
A modular and professional API testing suite built with Python, Pytest, and Requests. Validates CRUD operations, authentication, and filtering for teacher management systems with detailed HTML reporting and dynamic data generation.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A robust, modular, and professional API automation testing framework built using Python and Pytest. This framework validates a RESTful API for managing teacher records, covering CRUD (Create, Read, Update, Delete) operations, filtering, and authentication.
A professional HTML report generated after test execution, showing pass/fail status and detailed logs.
api/), test logic (tests/), and utility functions (utils/).├── api/ # API endpoint wrappers and request methods
├── tests/ # Test cases and conftest.py (fixtures)
├── utils/ # Helper functions (e.g., custom logger)
├── .env # Environment variables (Sensitive info)
├── pytest.ini # Global Pytest configuration
├── requirements.txt # Project dependencies
├── report.html # Generated test report
└── README.md # Documentation
Clone the Repository
git clone https://github.com/shifat97/teachers-api-automation-pytest.git
cd teachers-api-automation-pytest
Create and Activate a Virtual Environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
or
python3 -m venv venv
source venv/bin/activate # On Mac: venv\Scripts\activate
Install Dependencies
pip install -r requirements.txt
or
pip3 install -r requirements.txt
Environment Configuration
Create a .env file in the root directory and add the following variables:
BASE_URL=YOUR_URL
PORT=PORT_NUMBER
ADMIN_USERNAME=USERNAME
ADMIN_PASSWORD=PASSWORD
TEST_INVALID_TOKEN=YOUR_TEST_TOKEN_HERE
LOG_LEVEL=PRODUCTION
To execute all tests and generate a professional HTML report:
pytest --html=report.html --self-contained-html
To run a specific test file:
pytest tests/test_create_teacher.py
To run tests and see real-time log output:
pytest -s
Developed by Md. Shifat Bin Reza.