QuestionQ25

Test Automation Architecture

Which option correctly matches test-automation design principles and patterns to their characteristics?

  1. Conceals implementation details and exposes only what testers require to create their test cases.
  2. Creates a class file so locator updates must be made in only one location.
  3. Incorporates the principle that components should be freely substitutable without adverse effects.
  4. Adds a facade that stores user actions interacting with page objects.
  • a. Facade pattern.
  • b. SOLID.
  • c. Flow model.
  • d. Page object model.
  • A 1b, 2a, 3c, 4d
  • B 1a, 2d, 3b, 4c
  • C 1c, 2d, 3а, 4bD.1d, 2b, 3а, 4 с
Explanation

The Facade pattern hides underlying implementation details behind a simpler interface. The Page Object Model centralizes page locators and interactions so locator changes are maintained in one place. SOLID includes the Liskov Substitution Principle, which requires substitutable components without undesirable effects. A Flow Model adds a layer that captures user workflows and actions over page objects.

Community Discussion

No comments yet. Be the first to start the discussion!