SoftwareTestPilot

Order the layers of a test framework

  • Framework architecture
  • advanced
  • 5 min
  • 2 questions

Maintainable frameworks keep test intent separate from page details and configuration. Arrange the layers and pick where each responsibility belongs.

Skills practised: Page Object Model, Separation of concerns, Configuration management

Worked example

A test should read like a user story (log in, add to cart, pay). Selectors live in page objects, so a UI change edits one file, not fifty tests.

Question 1

Order from the highest layer (closest to the business) to the lowest (closest to the browser).

  1. 1Browser driver / Playwright API
  2. 2Test specs
  3. 3Page objects
  4. 4Business flows (e.g. checkout helper)

Question 2

Where should the base URL for staging vs production live?

Where should the base URL for staging vs production live?
0/2 answered

Keep learning