The screenplay pattern is an actor-centric model. We call a user interacting with the system an Actor. Tests describe how a user interacts with the application to achieve a goal. For this reason, tests read much better if they are presented from the point of view of the user (rather than from the point of ‘pages’).
This is a simple example of using Serenity BDD screenplay pattern with Cucumber 6 on Swag Labs.
git clone git@github.com:gorakshasabnis/swaglabs-cucumber-serenity-screenplay.git
- From IDE: To the run the test suite from IDE, run ‘SwagLabsTestSuite’ from src/test/java.
- From command line:
Go to the project directory and run
gradle clean test
Checkout the detailed report here.
For more information about Serenity BDD, you can read the Serenity BDD Book, the official online Serenity documentation source.
Join the gitter chat