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

Design a system to detect groups of tests whose failures strongly correlate (for example because they share a flaky fixture or rely on the same external resource). Describe what data to collect, statistical or ML techniques to group correlated failures (for example: co-failure matrix, pointwise mutual information, clustering), and how to present actionable hypotheses to engineers for confirmation.

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.

HardTechnical
83 practiced

You encounter a Heisenbug that only appears under nightly CI load (high parallelism) and cannot be reproduced locally. Describe an end-to-end plan to collect artifacts and instrument the system to root-cause the bug: include low-overhead non-invasive traces to enable triage, more invasive instrumentation for reproductions, resource throttling and synthetic load generation, and strategies to create a minimal load-based reproduction for debugging.

HardTechnical
78 practiced

Implement a retry-with-circuit-breaker wrapper for API tests in Python or JavaScript. The wrapper should: retry idempotent requests with exponential backoff up to N attempts, trip a circuit and stop further retries after M consecutive downstream failures, and expose metrics for retries and circuit state. Provide code and explain idempotency and metric reporting considerations.

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.

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.