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