Verify Postman script execution order
Preconditions (2)
Step 1: Open the Postman collection
Step 2: Add a Pre-request Script at the collection level that sets a variable 'order' to 'collection'
Step 3: Add a Pre-request Script at the folder level that appends '-folder' to the 'order' variable
Step 4: Add a Pre-request Script at the request level that appends '-request' to the 'order' variable
Step 5: Send the request
Step 6: Add a Test script at the request level that reads the 'order' variable and saves it to the test result
Step 7: Run the request and observe the test result
✅ Expected Result: The 'order' variable value in the test result should be 'collection-folder-request', showing the scripts ran in the correct order