You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project contains a Postman collection that interacts with the Reqres API, a simple RESTful service providing a wide range of responses for testing purposes. The collection includes various endpoints to demonstrate basic CRUD operations
This project contains a Postman collection that interacts with the Reqres API, a simple RESTful service providing a wide range of responses for testing purposes. The collection includes various endpoints to demonstrate basic CRUD operations, including user creation, retrieval, updating, and deletion, as well as user registration and login functionalities.
This Postman collection contains the following requests:
ListUsers: Retrieves a paginated list of users. ListSingleUser: Retrieves the details of a specific user by their ID. CreateToken: Authenticates a user and generates a token. Create: Creates a new user with specified details. UpdatePut: Updates a user's information using the PUT method. UpdatePatch: Updates a user's information using the PATCH method. Delete: Deletes a user by their ID. Register - successful: Registers a user successfully. Register - unsuccessful: Attempts to register a user unsuccessfully (e.g., missing fields).
Project Structure
The structure of the collection is organized as follows:
Requests: Each request is categorized based on the operation it performs (e.g., ListUsers, Create, Update, Delete). Test Scripts: Each request includes test scripts to validate the API response. These scripts check for status codes, response time, and the structure of the response data. Variables: The collection uses environment variables like authToken and id to store dynamic values such as authentication tokens and user IDs.
Import the Collection: Download the collection file and import it into Postman. Set Up Environment: Create an environment in Postman and define necessary variables like authToken and id. Execute Requests: Run the requests individually or in a sequence using Postman's Collection Runner. View Test Results: Check the results of the test scripts in the "Tests" tab of each request.
Test Scripts
Each request includes automated test scripts that check:
Status Code Validation: Ensures the API returns the expected status code. Response Time: Verifies the response time is within acceptable limits. Response Data Structure: Confirms that the response data contains the expected properties.
Environment Variables
authToken: Used to store the authentication token retrieved from the CreateToken request. id: Used to store the ID of the user created or retrieved during the requests.
About
This project contains a Postman collection that interacts with the Reqres API, a simple RESTful service providing a wide range of responses for testing purposes. The collection includes various endpoints to demonstrate basic CRUD operations