/swaglabs-cucumber-serenity-screenplay

A skeleton project for Cucumber & Serenity BDD using Screenplay Pattern on Swag Labs.

Primary LanguageJava

Swag Labs - Cucumber Serenity BDD Starter project:

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.

Get the project code:

git clone git@github.com:gorakshasabnis/swaglabs-cucumber-serenity-screenplay.git

To run Test Scripts:

  • 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

Test Execution Report:

Checkout the detailed report here.

To learn more?

For more information about Serenity BDD, you can read the Serenity BDD Book, the official online Serenity documentation source.

Need help?

Join the gitter chat