API Testing · Junior · Question 2 of 75
Why is API testing often done before UI testing?
- 1The API is ready earlier and bugs there are cheaper to find
- 2UI tests can't run until every API test has passed
- 3API bugs never show up in the user interface
Show the answer
Correct answer: The API is ready earlier and bugs there are cheaper to find
Explanation
Backend endpoints usually exist before screens. Testing them early finds logic and validation bugs while the UI is still being built.