Please log in to watch this conference skillscast.
The Screenplay Pattern, first created by Antony Marcano, is an alternative model to PageObjects. Today, it is growing in popularity with increasing tool support in popular testing frameworks.
PageObjects provide an easy-to-follow, simple structure that avoids early maintenance issues. They were introduced to help test-developers avoid mistaking flaky tests for problems with Selenium. But, PageObjects break some key OO design rules, making maintenance more difficult over time. They are a useful first step, but why do we stop there?
In this session you’ll learn about the SOLID design principles that PageObjects disregard. You’ll see why this leads to problems. You’ll see how and why PageObjects benefit from refactoring to SOLID design principles. Finally, you’ll meet the Screenplay Pattern – an alternative model based on SOLID principles that saves you the trouble.
The Call for Papers is now open for Agile Testing & BDD 2017! Submit your talk for the chance to join a stellar line-up of experts on stage. Find out more.
YOU MAY ALSO LIKE:
- Uncle Bob's Clean Code: Agile Software Craftsmanship (in London on 1st - 3rd October 2018)
- Jenny Martin and Pete Buckney's BDD From Start to Finish - Successful Delivery through Continuous Collaboration (in London on 5th - 7th November 2018)
Screenplay pattern - a SOLID alternative to Page Objects
Antony Marcano has spent the better part of 20 years in technology and innovation. His experience includes delivering mobile apps, streaming media, telecommunications, e-commerce, web apps and more. With nearly 15 years experience of Agile methodologies (before they were called “Agile”), Antony now spends much of his time advising, coaching, consulting and guiding organisations in innovation, agility, lean values and culture, agile product development and agile software-development practices.