The Screenplay Pattern is a new way of writing automated acceptance tests, that has many advantages over the classic Page Objects model. Tests written using Screenplay are more flexible, easier to understand, and easier to maintain, and some teams report up to 70% higher reuse than using more traditional approaches.

This course will teach you the principles behind the Screenplay pattern, and show you how to write better automated acceptance tests with Screenplay in Serenity BDD.

Course Curriculum

  • 1

    Introduction to Screenplay

    • Introduction

    • Exercises

  • 2

    Screenplay Questions

    • Introduction to Screenplay Questions

    • Exercises

  • 3

    Screenplay Abilities

    • Tutorial

    • Exercises

  • 4

    Testing Web Applications with Screenplay

    • Tutorial

    • Exercises

  • 5

    Screenplay Web Interactions

    • Tutorial

  • 6

    Screenplay Web Questions

    • Tutorial

    • Exercises

  • 7

    Timeouts and Waits

    • Tutorial

    • Exercises

  • 8

    Exercise Project

    • Project 1: Train Bookings

  • 9

    Advanced Screenplay Task Creation

    • Creating tasks using simple constructors

    • Creating tasks using builders and factories

    • Silent tasks

  • 10

    Serenity Ensure

    • Introduction to Serenity Ensure

    • Ensure assertions with different types

    • Using Ensure with Collections

    • UI assertions with Serenity Ensure

    • Working with UI text elements and collections

About the instructor

Author of BDD in Action

John Ferguson Smart

John is an international speaker, consultant, author and trainer well known in the Agile community for his many books, articles and presentations, particularly in areas such as BDD, TDD, test automation, software craftsmanship and team collaboration.John helps organisations and teams around the world deliver better software sooner through more effective collaboration and communication techniques, and through better technical practices.John is the author of the best-selling BDD in Action, as well as Jenkins: The Definitive Guide and Java Power Tools.Very active in the Open Source community, John also leads development on the innovative Serenity BDD test automation library, described as the "best opensource selenium webdriver framework".