InterviewStack.io LogoInterviewStack.io

Test Automation Levels Questions

Covers the testing pyramid and the roles of different automated test types: unit tests for fast isolated verification of individual components, integration tests for validating interactions between multiple components, system tests for end to end verification of a complete deployed system, and acceptance tests for confirming that the system meets user requirements. Includes trade offs in distribution and cost of tests, strategies for test data management and environment provisioning, when to use mocks or stubs, approaches to reduce flakiness, metrics for test coverage and effectiveness, maintaining fast feedback loops in continuous integration pipelines, and selecting tools and frameworks appropriate to each level.

EasyBehavioral
20 practiced
Tell me about a time you discovered and fixed flaky tests in a CI environment. Use the STAR structure: Situation, Task, Action, Result. Explain the diagnosis steps, the fix you implemented, and measurable outcomes such as reduced rerun rate or faster green builds.
MediumTechnical
25 practiced
A suite of Selenium UI tests intermittently times out or reports element-not-found only on the headless CI environment. Outline a structured debugging plan: artifacts to collect, ways to reproduce locally, environment differences to check, likely fixes (explicit waits, stable selectors, browser options), and how to confirm the fix across CI agents.
MediumTechnical
26 practiced
Implement a Python decorator retry_for_selenium that wraps a Selenium-based test function and retries on common WebDriver exceptions. Requirements: signature def retry_for_selenium(max_retries: int = 3, backoff_seconds: float = 1.0):, on failure save a screenshot to a configured directory with a timestamped and thread-safe filename, use exponential backoff between retries, and preserve the wrapped function's metadata.
HardTechnical
25 practiced
Case study: a product team relies on manual UAT causing release delays and inconsistent sign-offs. Propose a 6-12 month roadmap to move to automated acceptance testing. Include pilot criteria, tooling choices, team roles and training, environment and data strategy, success metrics, and a risk mitigation plan.
EasyTechnical
19 practiced
In Python using pytest, write unit tests for the function signature `def calculate_tax(amount: float) -> float:`. Behavior: positive amounts return 10% tax, zero returns 0.0, negatives raise ValueError, and results should be rounded to two decimals. Write tests for normal, zero, negative, and high-precision rounding edge cases. Only provide tests; assume implementation exists.

Unlock Full Question Bank

Get access to hundreds of Test Automation Levels interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.