Flaky Test Management and Test Reliability Questions

Detecting, isolating, and eliminating non-deterministic tests. Covers root-causing flakiness, quarantine and remediation systems, distinguishing product bugs from test bugs, and maintaining suite health over time. Emphasizes keeping automated suites trustworthy so failures mean something.

HardTechnical
84 practiced

You inherit a test suite of 2,000 automated tests with a 12% flakiness rate and high maintenance cost. Prepare an audit plan: how will you triage tests (metrics to collect), classify failure causes, prioritize which tests to fix, rewrite, or delete, and propose a remediation roadmap with expected outcomes over a six-month horizon.

EasyTechnical
63 practiced

Explain key behavioral differences between mobile emulators/simulators and real devices that cause automated mobile tests to pass on emulators but fail on physical devices. List at least six differences (e.g., sensors, GPU, manufacturer OS customizations, WebView versions, network variability, hardware performance) and say how to mitigate them in a test strategy.

MediumTechnical
79 practiced

In JavaScript using Playwright, design a helper function findStableLocator(page, selectors, timeoutMs=5000) that tries selectors in order and returns a Locator only if the element is present and stable (no layout change) for a short duration (e.g., 200ms). Describe the algorithm and boundary conditions; you do not need to supply full runnable code but show key pseudo-code steps and Playwright primitives you would use.

MediumTechnical
75 practiced

CI shows intermittent failures that pass locally. You suspect flaky tests due to timeouts and async operations. Describe a plan to identify sources of flakiness: how to reproduce locally (increased logging, deterministic time control), what tests to run repeatedly, and how to change tests to be deterministic or tolerant (mocking time, explicit synchronization). Explain trade-offs between flakiness fixes and test coverage.

MediumTechnical
104 practiced

Write a small utility (describe input/output and algorithm) that generates deterministic test data for property-based or randomized tests using a seed. Requirements: allow seeding per test run, produce reproducible sequences across environments and languages (explain constraints), and include at least one strategy to generate unique but predictable identifiers.

Unlock Full Question Bank

Get access to all Flaky Test Management and Test Reliability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.