โ† All API Flashcard Decks

API Test Automation Flashcards

6 cards from real API practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 API Test Automation flashcards as text
  1. Which Python library is commonly used for writing automated REST API tests?

    Answer: Requests + PyTest

    The `requests` library handles HTTP calls while `pytest` provides the test framework, making them the standard Python combo for API test automation.

  2. What is the purpose of a test fixture in API automation frameworks?

    Answer: Set up and tear down test preconditions consistently

    Fixtures prepare the environment before tests run (setup) and clean up after they finish (teardown), ensuring consistent, isolated test conditions.

  3. What does 'data-driven testing' mean in the context of API automation?

    Answer: Running the same test logic with multiple sets of input data

    Data-driven testing separates test logic from data, running the same test scenario with different inputs from an external source like CSV or JSON.

  4. Which concept in API test automation ensures tests do not depend on each other or share state?

    Answer: Test isolation

    Test isolation ensures each test runs independently with its own setup and teardown, preventing one test's state from affecting another's result.

  5. What is a mock server used for in API test automation?

    Answer: Simulating an API dependency without calling the real service

    A mock server simulates the behavior of a real API dependency, allowing tests to run without relying on external services that may be unavailable or slow.

  6. Which CI/CD integration practice automatically runs API test suites on every code commit?

    Answer: Continuous testing in the pipeline

    Integrating API tests into the CI/CD pipeline ensures tests run automatically on every commit, catching regressions before code reaches production.