API Testing · Senior · Question 34 of 75
What are the limits of AI-generated API tests?
- 1They may check what the code does, not what it should do
- 2They can't produce valid HTTP requests or JSON bodies
- 3They always cover every edge case of the API correctly
Show the answer
Correct answer: They may check what the code does, not what it should do
Explanation
Generated tests can lock in bugs as expected behaviour. Humans must check expected results against requirements.