This project is focused on testing the ReqRes API, which provides endpoints for user-related operations. The goal is to practice and demonstrate skills in testing CRUD (Create, Read, Update, Delete) operations using various test scenarios.
The ReqRes API is a public API that allows developers to test and prototype their applications by providing endpoints for user-related actions. This project focuses on creating automated tests for CRUD operations using this API.
The following endpoints are utilized in this project:
- Create User:
POST /api/users - Read User:
GET /api/users/{user_id} - Update User:
PUT /api/users/{user_id} - Delete User:
DELETE /api/users/{user_id}
For more details on the ReqRes API, refer to the official documentation.
The project covers various testing scenarios for each CRUD operation, including positive and negative cases. The test scenarios include data validation, response code verification, and more.
To set up the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/reqres-api-testing.git - Install the necessary dependencies:
pip install -r requirements.txt
Execute the automated tests using your preferred test runner. For example:
python test_crud_operations.py