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
What is the purpose of environment variables in API test automation frameworks?
Answer: Store configuration like base URLs and credentials outside test code
Environment variables externalize configuration so the same test suite can run against dev, staging, or production without code changes.
What does 'contract testing' verify in a microservices API architecture?
Answer: Consumer and provider agree on the API interface format
Contract testing ensures the API's actual responses conform to the agreed contract the consumer depends on, catching breaking changes early.
Which assertion type verifies that an API response matches a predefined JSON structure?
Answer: Schema validation assertion
Schema validation assertions verify the response body conforms to a defined JSON Schema, ensuring correct field names, types, and required properties.
What is 'test chaining' in API automation tools like Postman?
Answer: Passing data from one API request's response to a subsequent request
Test chaining extracts values (like an auth token or ID) from one request's response and injects them as inputs to the next request in the flow.
What is the role of a 'test report' generated by an API automation framework?
Answer: Provide a human-readable summary of test results, pass/fail status, and errors
Test reports summarize which tests passed or failed, error messages, and test coverage, helping teams quickly assess API quality after a test run.
What does 'negative testing' mean in API test automation?
Answer: Sending invalid inputs to verify the API handles errors gracefully
Negative testing sends invalid, missing, or malformed inputs to verify the API returns appropriate error responses rather than crashing or exposing data.