4. Test Automation
● Why ‘End to EndTest Automation’ ?
○ To reduce manual efforts ??? Really
■ Is it making you slow ?
■ Minimal journey
○ Continuous integration pipeline
● Pattern in Test automation ?
○ https://abhigets.blogspot.in/2017/08/pattern-in-test-automation.html
● Most popular design patter
○ Page object pattern
11. Apply SOLID principle To POM
1. Single responsibility
2. Open close principle
Assertions Behaviours
/Actions
Locators
AT High level
Questions
Task UI
13. ● 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
○ Define behaviour / Goal
■ Frequency of Behaviour to change is very less and is business driven.
Some Learnings till date
14. Some Tips
○Look at application design
○UI components the way they are coupled
15. 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