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
50 practiced
Explain how to set breakpoints and debug Node.js automated tests (Mocha or Jest) both locally and inside a Docker container using VS Code. Include sample launch.json entries for local and remote attach scenarios, and the steps to attach to a running container process.
EasyTechnical
27 practiced
Compare implicit waits, explicit waits, and fluent waits in Selenium WebDriver. For each: explain behavior, typical use cases, pitfalls (e.g., implicit+explicit interaction causing unexpected delays), and recommend best practices or patterns to ensure stable UI tests.
HardTechnical
48 practiced
You maintain a large test suite with slow E2E tests. Propose a plan to reduce total runtime while preserving meaningful coverage: discuss parallelization, shard strategies, change-based test selection, splitting smoke/regression/nightly suites, caching, virtualization vs real integration, and metrics to validate that coverage and defect detection remain acceptable.
MediumTechnical
24 practiced
A mobile automation test passes on Android 12 devices but fails on Android 11 with a UI element not found. Describe a step-by-step investigation plan to determine whether the problem is due to app code, OS differences (WebView/Chrome versions), layout rendering differences, or test framework behavior, and how you'd prove the root cause.
EasyTechnical
31 practiced
List the DevTools features and step-by-step actions you would use to debug a flaky browser E2E test that intermittently throws an "element not clickable" error. Cover DOM inspection, event listeners, layout, network, performance profiling, console errors, and how to capture reproducible traces for CI artifacts.

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.