Better Automated Acceptance Tests With Serenity Screenplay
The Screenplay Pattern is a powerful and elegant approach to designing and implementing automated tests, providing a number of improvements over more traditional approaches such as the Page Objects model. Automated tests written using Serenity are faster to write, easier to read and easier to maintain then more conventional approaches. On one recent project, using Serenity with the Screenplay pattern resulted in 60-70% less code for the same number of tests as a traditional automated testing approach.
The Screenplay Pattern works by useing good software engineering principles such as the Single Responsibility Principle, the Open-Closed Principle, favours composition over inheritance, employs thinking from Domain Driven Design to reflect the domain of performing acceptance tests and steers you towards effective use of layers of abstraction. It encourages good testing habits and well-designed test suites that are easy to read, easy to maintain and easy to extend, enabling teams to write more robust and more reliable automated tests more effectively.
In this tutorial, you will discover just how easy it is to get productive quickly with Serenity and the Screenplay pattern. Check out the full tutorial here.