API Testing · Junior · Question 37 of 75

What do you test by sending "age": "twenty" instead of a number?

Show the answer

Correct answer: That the API validates data types

Explanation

Type checks catch bugs where strings are stored as numbers or crash the server. The expected answer is a 400 or 422 with a message.

Further reading

Problem with a question

API Testing · Junior · question 37

Test yourself

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

Take this quiz