Characteristics of Pre-request Scripts
- These scripts run before the actual request is sent.
- Can be used to set variables, modify request headers, or perform any actions needed before sending the request.
- Ideal for defining conditions based on which the request will be modified.
How to handle Conditional Requests/Branching in Postman ?
Conditional requests or branching in Postman allows you to create logic within your requests to handle different scenarios based on conditions. This feature is useful for executing specific actions or tests depending on the response received from an API endpoint.
In this article, we’ll explore how to handle conditional requests or branching in Postman.
Table of Content
- Understanding Pre-request Scripts and Tests
- Characteristics of Pre-request Scripts
- Characteristics of Tests Scripts
- Implementing Conditional Requests in Postman
- Conclusion