The specification layer is the top layer of a test automation system. It captures stakeholder-important workflows, business rules, and usage examples in language that stakeholders can understand and read comfortably. section 14.2.1 section 14.4
The layer establishes the boundary between shared business understanding and lower-level automation implementation:
- It acts as the interface between the automation system and the people accepting the functionality of the system under test. section 14.2.1
- It expresses business context, rules, workflows, scenarios, actors, and their goals. section 15.0
- The domain layer models the activities needed to complete its workflows, while the integration layer translates those activities into low-level interactions. section 14.4
- Cucumber can add business context and support specifications in languages such as French, Spanish, or German; Mocha, Jasmine, and Playwright can also implement the layer. section 14.2.1
Using Journey Mapping
A journey map builds a mental model of system workflows, connects them with external actors and goals, and identifies candidate workflows for automated testing and prioritization. section 14.4
Use the layered architecture figure to see the specification layer positioned above the domain and integration layers. section 14.2.1
