Framework Design interview questions — Hard
125 hard-level Framework Design questions from our Automation Testing bank, each with the correct answer and an explanation of why it is correct.
This topic slice is available to practise but is not yet part of our indexed set.
What this covers
Framework Design appears throughout Automation Testing interviews. At hard level, interviewers are typically checking depth under pressure — edge cases, failure modes, performance characteristics, and the trade-offs you accepted. Work through these, then explain your answer out loud; the second part is what interviews actually test.
4 example questions
1. Regarding Framework Design, which of the following is a false statement?
- A. A data-driven framework embeds all data directly in test methods.correct
- B. Test code deserves code review and refactoring like production code.
- C. A hybrid framework combines data-driven, keyword-driven, and modular approaches.
- D. The screenplay pattern models tests around actors, tasks, and abilities.
Why: The selected statement is false. The other options are accurate statements about Framework Design.
2. Which of the following statements about Framework Design is FALSE?
- A. The test pyramid recommends many unit tests, fewer integration tests, and fewest UI tests.
- B. Keeping assertions in tests (not page objects) preserves separation of concerns.
- C. Hard-coding environment URLs inside every test is a best practice.correct
- D. Utility/helper layers (waits, API clients, data builders) reduce duplication across tests.
Why: The selected statement is false. The other options are accurate statements about Framework Design.
3. Which statement about Framework Design is NOT correct?
- A. The Page Object Model encapsulates page locators and actions behind a class interface.
- B. Keeping assertions in tests (not page objects) preserves separation of concerns.
- C. The Page Object Model requires putting all assertions inside page classes.correct
- D. The screenplay pattern models tests around actors, tasks, and abilities.
Why: The selected statement is false. The other options are accurate statements about Framework Design.
4. Identify the INCORRECT statement about Framework Design:
- A. The test pyramid recommends having the most tests at the UI layer.correct
- B. A hybrid framework combines data-driven, keyword-driven, and modular approaches.
- C. Environment configuration should be externalized so the same suite runs against dev, staging, and prod-like environments.
- D. Test code deserves code review and refactoring like production code.
Why: The selected statement is false. The other options are accurate statements about Framework Design.