Postman enables you to write your own tests, use predefined variables to generate sample data, and utilize JavaScript APIs to test your request and response data. Learn how to use the Postman scripting reference to extend your API testing functionality.
You can use post-response script examples to write your own tests for requests, folders, and collections. Post-response scripts execute when Postman receives a response from the API you sent the request to. When you add tests to a folder or collection, they execute after each request inside it.
Postman uses the Faker library to generate sample data, including random names, addresses, email addresses, and much more. You can use these predefined variables multiple times to return different values per request. Learn how to use predefined variables.
Postman provides JavaScript APIs that you can use in your request scripts. The pm
object provides functionality for testing your request and response data.
Last modified: 2024/01/19