Framework Design interview questions — Medium
250 medium-level Framework Design questions from our Automation Testing bank, each with the correct answer and an explanation of why it is correct.
What this covers
Framework Design appears throughout Automation Testing interviews. At medium level, interviewers are typically checking that you have used it in practice: what you configured, what broke, and how you knew it worked. Work through these, then explain your answer out loud; the second part is what interviews actually test.
20 example questions
1. "Tests composed of reusable action keywords, often in tables" — in Framework Design, this describes which of the following?
- A. Keyword-driven framework.correct
- B. Configuration manager.
- C. Locator repository.
- D. Reporting listener.
Why: keyword-driven framework: Tests composed of reusable action keywords, often in tables.
2. "Hook that logs results and captures artifacts on events" — in Framework Design, this describes which of the following?
- A. Reporting listener.correct
- B. BaseTest class.
- C. Locator repository.
- D. Keyword-driven framework.
Why: reporting listener: Hook that logs results and captures artifacts on events.
3. "Method-chaining style returning page objects for readable flows" — in Framework Design, this describes which of the following?
- A. Locator repository.
- B. Fluent interface.correct
- C. BaseTest class.
- D. Reporting listener.
Why: fluent interface: Method-chaining style returning page objects for readable flows.
4. "Component resolving environment-specific settings" — in Framework Design, this describes which of the following?
- A. Test data builder.
- B. Keyword-driven framework.
- C. Configuration manager.correct
- D. Locator repository.
Why: configuration manager: Component resolving environment-specific settings.
5. "Design dividing the application into independently tested modules" — in Framework Design, this describes which of the following?
- A. Fluent interface.
- B. Modular framework.correct
- C. BaseTest class.
- D. Keyword-driven framework.
Why: modular framework: Design dividing the application into independently tested modules.
6. Which of the following statements about Framework Design is TRUE?
- A. The test pyramid recommends many unit tests, fewer integration tests, and fewest UI tests.correct
- B. Duplication across tests is preferable to shared helper functions.
- C. A data-driven framework embeds all data directly in test methods.
- D. Hard-coding environment URLs inside every test is a best practice.
Why: Lower layers are faster and cheaper, so they carry most coverage.
7. Which statement correctly describes Framework Design?
- A. The test pyramid recommends having the most tests at the UI layer.
- B. Hard-coding environment URLs inside every test is a best practice.
- C. A data-driven framework embeds all data directly in test methods.
- D. Test code deserves code review and refactoring like production code.correct
Why: Treating tests as first-class code keeps suites maintainable.
8. "Central store of element selectors" — in Framework Design, this describes which of the following?
- A. Configuration manager.
- B. Locator repository.correct
- C. Modular framework.
- D. Keyword-driven framework.
Why: locator repository: Central store of element selectors.
9. Identify the accurate statement about Framework Design:
- A. A data-driven framework embeds all data directly in test methods.
- B. The Page Object Model requires putting all assertions inside page classes.
- C. Test code does not require code review because it never ships to users.
- D. A hybrid framework combines data-driven, keyword-driven, and modular approaches.correct
Why: Hybrid designs mix techniques to fit team needs.
10. Which Framework Design concept matches this description: "Design dividing the application into independently tested modules"?
- A. Fluent interface.
- B. Reporting listener.
- C. Modular framework.correct
- D. Locator repository.
Why: modular framework: Design dividing the application into independently tested modules.
11. Which Framework Design concept matches this description: "Method-chaining style returning page objects for readable flows"?
- A. Keyword-driven framework.
- B. Fluent interface.correct
- C. Locator repository.
- D. Configuration manager.
Why: fluent interface: Method-chaining style returning page objects for readable flows.
12. In Framework Design, which of the following is described as: "Hook that logs results and captures artifacts on events"?
- A. Keyword-driven framework.
- B. Reporting listener.correct
- C. Configuration manager.
- D. BaseTest class.
Why: reporting listener: Hook that logs results and captures artifacts on events.
13. In Framework Design, which of the following is described as: "Common parent handling setup/teardown shared by tests"?
- A. Reporting listener.
- B. BaseTest class.correct
- C. Fluent interface.
- D. Keyword-driven framework.
Why: BaseTest class: Common parent handling setup/teardown shared by tests.
14. In the context of Framework Design, which of the following is a correct statement?
- A. The test pyramid recommends many unit tests, fewer integration tests, and fewest UI tests.correct
- B. Duplication across tests is preferable to shared helper functions.
- C. The test pyramid recommends having the most tests at the UI layer.
- D. A data-driven framework embeds all data directly in test methods.
Why: Lower layers are faster and cheaper, so they carry most coverage.
15. In Framework Design, which of the following is described as: "Component resolving environment-specific settings"?
- A. Modular framework.
- B. Fluent interface.
- C. Configuration manager.correct
- D. Keyword-driven framework.
Why: configuration manager: Component resolving environment-specific settings.
16. Which Framework Design concept matches this description: "Utility constructing valid domain objects for tests"?
- A. Configuration manager.
- B. Test data builder.correct
- C. Locator repository.
- D. Keyword-driven framework.
Why: test data builder: Utility constructing valid domain objects for tests.
17. In Framework Design, which of the following is described as: "Tests composed of reusable action keywords, often in tables"?
- A. Keyword-driven framework.correct
- B. Modular framework.
- C. Fluent interface.
- D. Reporting listener.
Why: keyword-driven framework: Tests composed of reusable action keywords, often in tables.
18. In Framework Design, which of the following is described as: "Utility constructing valid domain objects for tests"?
- A. Locator repository.
- B. Configuration manager.
- C. Modular framework.
- D. Test data builder.correct
Why: test data builder: Utility constructing valid domain objects for tests.
19. Which Framework Design concept matches this description: "Common parent handling setup/teardown shared by tests"?
- A. Locator repository.
- B. Fluent interface.
- C. Modular framework.
- D. BaseTest class.correct
Why: BaseTest class: Common parent handling setup/teardown shared by tests.
20. Which Framework Design concept matches this description: "Hook that logs results and captures artifacts on events"?
- A. Test data builder.
- B. Fluent interface.
- C. Reporting listener.correct
- D. Keyword-driven framework.
Why: reporting listener: Hook that logs results and captures artifacts on events.