InterviewStack.io LogoInterviewStack.io

Test Automation Frameworks and Tools Questions

Functional, UI, and API test automation: frameworks (Selenium, Playwright, Cypress, Appium, pytest, TestNG, JUnit), design patterns (Page Object Model, Arrange-Act-Assert), CI/CD integration, flakiness mitigation, and coverage/ROI tradeoffs for building and maintaining automated test suites.

HardTechnical
26 practiced
Implement a Python function that shards tests across N workers to balance execution time given historical per-test durations. Input: list of (test_name, avg_seconds) and integer N. Output: N lists of test_names such that the maximum total time across shards is approximately minimized. Describe algorithm choice and provide code (explain time complexity).
EasyTechnical
38 practiced
Your team wants to run automated tests in CI (GitHub Actions/Jenkins/GitLab CI). As an SDET, outline the minimal steps to integrate a test suite so developers get fast feedback: environment provisioning, secrets management, dependency caching, test execution, artifact capture (logs/screenshots), failure handling, and promotion criteria to CD pipelines.
EasyTechnical
21 practiced
Describe best practices for locating UI elements in web automation. Provide a prioritized list of selector strategies (for example: data-test-id, aria-role, stable CSS selectors, relative XPath), and explain how you'd handle dynamic attributes, client-side rendering, and visual layout changes.
EasyTechnical
28 practiced
Explain the Arrange-Act-Assert (AAA) testing pattern and why it is helpful for writing maintainable automated tests. Provide a short pseudo-code example in Python or Java for an API endpoint test that follows AAA, and explain where setup should be placed in fixtures/hooks versus inline in the test body.
EasyTechnical
23 practiced
Explain the difference between mocking and stubbing in automated tests. As an SDET, give examples of when to use each in integration and end-to-end tests and list tools (e.g., Mockito, WireMock, responses, msw) you'd use to implement them in JavaScript, Python or Java environments.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.