We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook, Instagram and Microsoft search (Bing) work. They are set only if you accept. See our Privacy Policy for details.
Practice QA and SDET interview questions on the test pyramid, unit tests and test doubles, test design techniques, UI automation with Playwright, Selenium and Cypress, API and contract testing, performance testing and flaky tests.
Answer a real Software Testing interview question before you browse the list. No signup needed.
An ABC defines __subclasshook__ to return True when the candidate class has a method quack. A class Duck is never registered with the ABC and never inherits from it, but it does define quack. What does issubclass(Duck, MyABC) return?
Practice in a session
10 questions from Software Testing, one after another, then your score and streak.
Testing fundamentals (test levels, the test pyramid, test doubles), test design techniques such as boundary value analysis and equivalence partitioning, UI automation with a framework like Playwright, Selenium or Cypress, API testing, CI integration, flaky-test diagnosis, defect reporting, and for SDET roles a coding round.
A stub returns canned answers so the code under test can run. A mock also records how it was called so the test can assert on the interaction. A fake is a working but simplified implementation, such as an in-memory database. Overusing mocks couples tests to implementation details, so many teams prefer fakes and real collaborators where they are fast.
Treat them as bugs: quarantine the test so it stops blocking merges, reproduce it (run it in a loop, under load, in random order), then fix the cause, which is usually a timing assumption, shared state between tests, test-order dependence or an unreliable external dependency. Replace fixed sleeps with waits on a real condition.
Equivalence partitioning (one test per class of input that behaves the same), boundary value analysis (test at and either side of each edge), decision tables for combinations of rules, state transition testing for workflows, and pairwise testing to cover parameter combinations without testing every one.
Know one deeply and the trade-offs of the others. Selenium uses WebDriver and supports the most languages and browsers. Cypress runs inside the browser with a fast feedback loop but limits multi-tab and cross-origin work. Playwright drives Chromium, Firefox and WebKit over a protocol, auto-waits on locators and handles multiple contexts well.