API Testing · Middle · Question 61 of 75

How should a test handle values generated by the server, like IDs and timestamps?

Show the answer

Correct answer: Check their format and use them, not compare to fixed values

Explanation

Assert an ID is a UUID or positive integer and a timestamp is recent and valid, then use them in later requests.

Further reading

Problem with a question

API Testing · Middle · question 61

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz