InterviewStack.io LogoInterviewStack.io

Automation Testing and Debugging Questions

Focuses on methods and tooling for testing and debugging automated scripts and applications across environments and layers. Includes diagnosing flaky tests, analyzing test failures, reading and interpreting logs, setting breakpoints, using browser developer tools, capturing screenshots and video recordings, and using remote debugging approaches. Covers systematic root cause analysis to determine whether failures stem from test code, application code, environment or infrastructure, and strategies for isolating problems such as component level testing and reproducible minimal examples. Addresses cross layer troubleshooting across frontend, application programming interface, database and network components as well as platform specific testing considerations such as emulator versus real device behavior and mobile device operating system differences. Also includes best practices for test design, logging and monitoring, making test failures actionable for developers, and troubleshooting automation within continuous integration and continuous delivery pipelines and shared environments.

EasyTechnical
23 practiced
You receive a stack trace from a failing test run that contains both minified JavaScript frames and backend Python stack frames. Describe step-by-step how you would read and interpret the stack trace, determine whether the root cause is in test code or application code, and obtain source-mapped traces (symbolication) for the JavaScript frames to point to original source lines.
EasyTechnical
28 practiced
As an SDET, list the specific logs and telemetry fields you would add both to automated tests and to the application under test to make failures actionable for a developer. Provide an example log line or JSON log format that links a test step to backend operations, including correlation IDs, test-run metadata, timestamps, environment, and severity.
HardTechnical
23 practiced
Technical design/coding: Describe an architecture or provide pseudocode for a log ingestion pipeline that accepts logs from test runners, browser console/HARs, application servers, and mobile devices; normalizes timestamps and fields, deduplicates entries, and writes to a searchable store with alerting on failure spikes. Address ordering semantics, clock skew normalization, schema evolution, and retention policies.
MediumTechnical
27 practiced
A flaky integration test is failing due to a database race condition. Describe the evidence you would collect (query logs, deadlock traces, lock wait statistics), how to reproduce the race locally, and the SQL/database techniques (transaction isolation levels, SELECT ... FOR UPDATE, optimistic locking) or application-side mitigations you would consider to fix the root cause.
EasyTechnical
29 practiced
For a UI test framework using Selenium or Playwright running in CI, describe how you would capture screenshots and video recordings for failed tests and automatically attach them to CI job artifacts. Explain where artifacts should be stored, naming conventions, retention policies, and strategies to limit storage cost (e.g., capture only on failure, compress, TTL).

Unlock Full Question Bank

Get access to hundreds of Automation Testing and Debugging interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.