API Testing · Junior · Question 56 of 75
What is a pre-request script in Postman for?
- 1Checking the response after the request has finished
- 2Writing documentation for the request automatically
- 3Running code before a request, e.g. to set a timestamp or token
Show the answer
Correct answer: Running code before a request, e.g. to set a timestamp or token
Explanation
Pre-request scripts prepare values such as dynamic IDs, signatures or fresh tokens.