Verify use of variables instead of hardcoded values in Postman request
Preconditions (2)
Step 1: Open the Postman collection
Step 2: Select the request that uses hardcoded URL and headers
Step 3: Replace the hardcoded URL with a variable {{baseUrl}}
Step 4: Replace the hardcoded header value with a variable {{authToken}}
Step 5: Set the variables baseUrl and authToken in the collection environment
Step 6: Send the request
Step 7: Verify the request uses the variable values from the environment
Step 8: Change the environment variable values
Step 9: Send the request again
Step 10: Verify the request uses the updated variable values
✅ Expected Result: The request should use the variable values from the environment instead of hardcoded values. Changing variables updates the request without editing the request itself.