This document discusses test automation using the Screen Play design pattern. It introduces test automation and its purposes like reducing manual effort and enabling continuous integration. It then covers the Single Responsibility Principle (SRP), how to define responsibilities at the right level of abstraction, and applying the Open Closed Principle (OCP). The document demonstrates setting up a Screen Play project in Maven and running a test. It provides references for further reading on SRP, OCP, and the Screen Play pattern.
2. Test Automation
Why Test Automation ?
To reduce manual efforts
Continuous integration
Purpose
Is it making you slow ?
End to end test
Minimal journey
3. Page object pattern
Is there any pattern ?
Assertions
Features / Jobs / functions
Locators
4. SOLID
S : Single Responsibility
O : Open Close Principle
L : Liskov substitution
I : Interface segregation
D: Dependency inversion
6. Responsibility
How to strike right balance
Too many fragments
Test becomes too noisy
Too big component
Loose flexibility
How to define a task and how to make sure we build a building blocks ?
Dont define action
Interaction can change.
10. Setup Screenplay
1. Generate Project
a. $ mvn archetype:generate -Dfilter=screenplay
i. Enter 1 and select a version
ii. 'groupId': : net.serenitybdd.tutorials
iii. 'artifactId': : todomvctests
iv. 'package': net.serenitybdd.tutorials
2. Run Test
a. mvn clean verify