API Testing · Junior · Question 50 of 75
What should a test check when sorting results with sort=price?
- 1That the sort parameter appears in the response
- 2The order is correct, including ties and missing values
- 3That the response has at least one item in it
Show the answer
Correct answer: The order is correct, including ties and missing values
Explanation
Check ascending and descending, equal prices, nulls, and invalid sort fields, which should give a 400 rather than be ignored.