All 57 questions
How would you structure a maintainable test automation framework, and what components would you include?
Asked in 11 of 145 interviews · last asked Nov 18 · Design · Mid-level
Show answer
I would separate test cases from page objects or API clients, test data, configuration, and shared helpers. A test runner would manage execution, with fixtures for setup and teardown. Setup creates the required state, tests perform actions and check results, and teardown cleans up even after failures. Reports capture results and failure evidence, and CI runs the suite automatically.
- Keep test intent and assertions clear; hide UI selectors and request details in reusable components.
- Keep environment settings separate from test logic, and store secrets securely.
- Make tests independent, with controlled data and reliable cleanup.
- Include logs, screenshots where useful, and reports that help explain failures.
What the interviewer checks: The interviewer checks whether you can design clear components that work together and stay easy to maintain.
Common mistake (in 3 of 5 reviewed answers): Many answers forget that the components must work together through setup, test execution, teardown, and reporting.
Other ways it was asked
- “How would you create a new test automation framework?”
- “How is a test automation framework typically structured?”
- “How would you structure a test automation framework?”
What is the Page Object Model, and how would you implement it in an automation framework?
Asked in 10 of 145 interviews · last asked Oct 26 · Concept · Mid-level
Show answer
The Page Object Model is a design pattern that separates page interactions from test logic. I create a class for each page, keep its locators there, and expose methods for actions such as login. Tests call these methods and check results. I use it to reduce repeated code and make UI changes easier to handle.
- Pass the browser driver into page objects so they use the test's browser session.
- Keep locators, page actions, and waits inside page objects.
- Keep test assertions in tests; page objects can check that the expected page loaded.
- Use reusable component objects for shared UI parts, such as navigation menus.
What the interviewer checks: The interviewer checks whether you can separate UI details from test intent and build maintainable tests.
Other ways it was asked
- “What is the Page Object Model, and when would you use it?”
- “What is the Page Object Model, and how have you used it in test automation?”
- “What is the Page Object Model, and how do you use it in test automation?”
How would you structure a maintainable Playwright framework, and what trade-offs would you consider?
Asked in 8 of 145 interviews · last asked Nov 20 · Design · Senior
Show answer
I would separate tests, page or component objects, fixtures, and test data, with shared settings in Playwright config. Tests would describe user behavior, while small helpers handle repeated steps. I would keep tests independent and use stable locators, balancing code reuse against extra layers that make failures harder to understand.
- Use role or test ID locators and auto-retrying assertions; avoid fixed waits.
- Use fixtures for setup and cleanup; keep each test's data separate.
- Parallel runs save time, but shared accounts or data can cause conflicts.
- Collect traces for CI failures, and investigate flaky tests instead of relying on retries.
What the interviewer checks: The interviewer checks whether you can balance reuse, readability, test isolation, speed, and easy debugging.
Other ways it was asked
- “How would you structure a Playwright test automation framework, and what are the trade-offs of that structure?”
- “What would you improve in an existing Playwright test automation framework if you were rebuilding it from scratch?”
- “How would you structure a Playwright test automation framework?”
Tell me about a testing framework you built for a system that was difficult to test. What made your approach more effective than standard unit tests and mocks?
Asked in 5 of 145 interviews · last asked Nov 19 · Behavioral · Senior
Show answer
I built an integration test framework for an order system with asynchronous messages. Retries, delays, and duplicate messages made it hard to test. It ran real services and a message broker in containers, injected failures, and checked order and payment records. Unlike unit tests with mocks, it exposed delivery and recovery bugs across service boundaries.
- Tested duplicate delivery and service restarts to check that retries did not create extra charges.
- Waited for expected results with a timeout instead of using fixed sleeps.
- Isolated test data and captured logs to make failures easier to diagnose.
- Kept fast unit tests; used integration tests for behavior that mocks could hide.
What the interviewer checks: The interviewer wants to see how you chose realistic tests and defined correctness for a difficult system.
Other ways it was asked
- “Tell me about a testing framework you built for a difficult-to-test system. What made the system hard to test, and how did the framework validate correctness beyond basic unit tests?”
- “Tell me about a challenging testing framework you built: what made the system hard to test, and what was the framework's core idea?”
- “Tell me about a testing framework you built for a difficult-to-test system. What made testing difficult, and how did the framework validate correctness?”
What is the Screenplay Pattern, and how is it used in test automation?
Asked in 2 of 145 interviews · last asked Oct 28 · Concept · Mid-level
Show answer
The Screenplay Pattern organizes automated tests around actors and their goals. Actors have abilities, such as using a browser, and perform reusable tasks built from smaller interactions. They ask questions about the application's state, and tests check the answers with assertions. This keeps test scenarios readable and separates them from implementation details.
- Actors represent users or roles; abilities give them access to tools such as browsers or API clients.
- Tasks describe goals, while interactions describe small actions such as clicking a button.
- Questions read application state so assertions can check expected results.
- Reusable components reduce duplication, but add structure that may be unnecessary for small test suites.
What the interviewer checks: The interviewer checks whether you understand the main Screenplay components and how they work together in a test.
Other ways it was asked
- “What is the Screenplay pattern in test automation, and how do you use it?”
How do you implement a data-driven approach in a test automation framework?
Asked in 2 of 145 interviews · last asked Sep 18 · Tooling · Mid-level
Show answer
I keep test data separate from test logic, using files, databases, or data providers. I parameterize the test so it runs once for each dataset, with inputs and expected results. I validate the data, keep runs independent, and label each case so failures are easy to trace.
- Use the framework’s parameterization feature to run the same test with different datasets.
- Include expected results, valid inputs, invalid inputs, and boundary values.
- Reset test state between cases so one dataset does not affect another.
- Give each dataset a clear name or ID in test reports.
What the interviewer checks: The interviewer checks whether you can reuse test logic while keeping data-driven tests independent and easy to debug.
Other ways it was asked
- “How do you implement data-driven testing in your automation framework?”
What design patterns are useful in test automation besides the Page Object Model?
Asked in 2 of 145 interviews · last asked Nov 6 · Concept · Mid-level
Other ways it was asked
- “Which design patterns have you used in test automation, and how?”
How would you use data-driven testing?
Asked in 2 of 145 interviews · last asked Nov 19 · Behavioral · Mid-level
Other ways it was asked
- “How did you use data-driven testing?”
- “What is data-driven testing?”
What are the Page Object and Screenplay patterns, and when would you use them in Cypress tests?
Asked once · last asked Feb 9 · Concept · Mid-level
What types of tests can you implement with Serenity, and how do you use it to implement them?
Asked once · last asked Mar 19 · Tooling · Mid-level
How would you design an enterprise-level Robot Framework setup for more than 2,000 test cases? What would your approach be?
Asked once · last asked Apr 22 · Design · Senior
How would you design a test automation framework's architecture and use it to automate tests?
Asked once · last asked Apr 24 · Design · Mid-level
Other ways it was asked
- “Can you explain your automation framework architecture and briefly describe how your tests are automated?”
How would you design and begin building a test automation framework for a flight-booking application?
Asked once · last asked Apr 24 · Design · Mid-level
What are the biggest differences between automating tests for a traditional web application and for Microsoft Dynamics 365?
Asked once · last asked Apr 27 · Concept · Senior
How would you approach building a Playwright automation framework for Microsoft Dynamics 365, and which design patterns and best practices would you use?
Asked once · last asked Apr 27 · Design · Senior
How would you structure a Selenium WebDriver automation framework in Java?
Asked once · last asked May 5 · Design · Senior
What does BDD stand for, what tool is it associated with, and when and why would you use this approach?
Asked once · last asked May 28 · Concept · Mid-level
Other ways it was asked
- “What does BDD stand for, what tool is it associated with, and when would you use it? What are its benefits?”
How would you design a test bench for a hardware product, particularly an electronic control unit?
Asked once · last asked Jul 16 · Design · Mid-level
Could Java be used to manage a test bench and develop drivers for interface cards?
Asked once · last asked Jul 16 · Scenario · Mid-level
If a class has 10 methods and only one needs to create test data, how would you structure the test-data creation?
Asked once · last asked Jul 23 · Scenario · Mid-level
For reusable wait functions, is it better to define shared waits or implement waits at each call site?
Asked once · last asked Aug 5 · Concept · Mid-level
How do you design an automation testing framework for a microservices-based application?
Asked once · last asked Aug 17 · Design · Senior
Imagine you join a team and there is no test framework. How would you start building one from scratch?
Asked once · last asked Aug 25 · Design · Senior
What does good code mean to you, and how do you apply those principles in a test automation framework?
Asked once · last asked Sep 8 · Scenario · Mid-level
How would you persuade a team to adopt Cucumber and BDD in a Playwright framework despite the added layer and maintenance cost?
Asked once · last asked Sep 8 · Scenario · Senior
Other ways it was asked
- “How would you assess whether adding Cucumber and BDD to a Playwright framework is worth the extra layer and maintenance cost?”
How would you design an error-code system for test-case and station failures?
Asked once · last asked Sep 11 · Design · Senior
How would you design a test framework to keep failure scenarios maintainable, express scenario setup and fault assertions clearly, and avoid flaky timing?
Asked once · last asked Sep 11 · Design · Senior
How would you model shared page elements, such as menus or pop-ups, in a test automation framework?
Asked once · last asked Sep 18 · Design · Mid-level
How do you decide whether to keep test automation in a separate project or within the application's source code?
Asked once · last asked Sep 24 · Scenario · Senior
How would you make a test helper method reusable across tests that use different values?
Asked once · last asked Oct 8 · Write code · Mid-level
Other ways it was asked
- “How would you make the method reusable across tests that use different values?”
What advanced techniques can make a test framework more innovative than sending requests and polling a database, and how would you implement one?
Asked once · last asked Oct 13 · Scenario · Senior
How do you structure Python automation checks to avoid duplication and keep tests maintainable? Give an example.
Asked once · last asked Oct 20 · Behavioral · Mid-level
What are the four principles of object-oriented programming, and how would you apply one in test automation?
Asked once · last asked Oct 22 · Concept · Mid-level
Other ways it was asked
- “What are the four principles of object-oriented programming, and how have you applied one in test automation?”
How would you design a testing framework for a hard-to-test system, and what core strategy would you use beyond unit tests and mocks?
Asked once · last asked Oct 26 · Design · Senior
How would you start an automation project from scratch if it required an unfamiliar design pattern such as Screenplay?
Asked once · last asked Oct 28 · Scenario · Senior
How would you design test automation for a banking API with multiple subsystems, using design patterns?
Asked once · last asked Nov 6 · Design · Senior
How do you choose and organize locators and classes when using the Page Object Model?
Asked once · last asked Nov 6 · Tooling · Mid-level
What is refactoring, and when should test automation code be refactored?
Asked once · last asked Nov 6 · Concept · Mid-level
What engineering decisions should you consider when designing test automation for a fleet management system?
Asked once · last asked Nov 9 · Scenario · Mid-level
How do you use multiple sets of test data to run the same test?
Asked once · last asked Nov 12 · Concept · Mid-level
How do you create reusable methods using the Page Object Model and a base page?
Asked once · last asked Nov 18 · Tooling · Mid-level
How can abstraction be used in a test automation framework?
Asked once · last asked Nov 18 · Concept · Mid-level
How do you organize test data and trigger regression testing from your framework?
Asked once · last asked Nov 18 · Tooling · Mid-level
What is the structure of the Robot Framework?
Asked once · last asked Nov 19 · Concept · Junior
What is the difference between a library and a resource file?
Asked once · last asked Nov 19 · Concept · Mid-level
How would you make test automation reusable across similar scenarios?
Asked once · last asked Nov 20 · Scenario · Mid-level
How can reusable test flows reduce duplication in automated tests?
Asked once · last asked Jun 18 · Concept · Mid-level
What coding standards do you follow when writing test automation code?
Asked once · last asked Jul 23 · Concept · Mid-level
Can you name the keywords in Cucumber?
Asked once · last asked Aug 25 · Concept · Junior
What is the difference between Scenario and Scenario Outline in Cucumber?
Asked once · last asked Aug 25 · Concept · Junior
Other ways it was asked
- “What is the difference between scenario and scenario outline?”
What is the Cucumber hook that runs before a scenario?
Asked once · last asked Aug 25 · Concept · Junior
What is the purpose of a base class in a test automation framework, and how is it used?
Asked once · last asked Sep 16 · Concept · Mid-level
Other ways it was asked
- “What responsibilities should a base class's methods handle in a test automation framework?”
In data-driven testing with Excel, what does a scenario represent?
Asked once · last asked Sep 16 · Concept · Junior
What components are needed to run a test automation framework after its methods and base class have been created?
Asked once · last asked Sep 16 · Concept · Mid-level
What do you know about BDD and Cucumber?
Asked once · last asked Sep 17 · Concept · Junior
What is Gherkin syntax?
Asked once · last asked Sep 18 · Concept · Junior
How do you read data from an Excel file in a test automation script?
Asked once · last asked Nov 18 · Tooling · Mid-level
More Automation Testing interview questions
- All Automation Testing interview questions
- Automation Testing Basics and Strategy Interview Questions
- Playwright Interview Questions
- Selenium, Cypress and Mobile Automation Interview Questions
- API and End-to-end Automation Testing Interview Questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every Automation Testing interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
145 interviews, 79 candidates, Jan 2026 to Nov 2026. Updated every month with new interviews.
Or add the Chrome extension