QuestionQ276

Chapter 2: Testing Throughout the Software Development Lifecycle

A tester verifies the logic of a new authentication service. Because the actual database and external authentication API are still being developed, the tester substitutes the database connection with a mock that returns predefined user data.

At which testing level was this test performed?

  • A Component integration testing
  • B Component testing
  • C System integration testing
  • D System testing
Explanation

Component testing verifies an individual software component in isolation. Mocks replace unavailable or external dependencies so the authentication service’s own logic can be evaluated independently.

Community Discussion

No comments yet. Be the first to start the discussion!