This course focuses on managing scenarios and behaviors. You will work with various scenarios including databases and web services, REST API and troubleshooting test processes.
Learning Objectives
Managing Scenarios and Features
- start the course
- group Cucumber features in subfolders and run a feature from a subfolder
- demonstrate how to filter Cucumber scenarios to run a subset using tags or lines
- use hooks in Cucumber scenarios
- demonstrate how to modify the default output from Cucumber using formatters such as progress, rerun, usage and stepdef, formatting to file, and use backtrace option
- demonstrate how to store Cucumber command line options in a YAML file and use the profile option to run them
Messaging and Asynchronous Behavior
- recognize handling of asynchronous systems in Cucumber scenarios
Databases and Web Services
- recognize concepts including introducing ActiveRecord, refactor a Cucumber scenario to use data, and read and write data to a database
- use transactions and truncation to clean databases for Cucumber scenarios
- test REST APIs with Cucumber
Troubleshooting Scenarios
- identify issues in Cucumber scenarios such as flickering scenarios; brittle and slow features; and unengaged stakeholders, identify underlying causes, and provide solutions
Cucumber and other Platforms
- recognize how Cucumber and Gherkin can be used with IOS, Android, PHP and many more platforms for tests
Practice: Using Cucumber
- create Cucumber scenarios for an ATM application