About the course
This course aims at providing a solid foundation to the attendee in understanding how to write Features and Scenarios using Gherkin and be able to run them as automated specifications eventually using Selenium.
Objectives
On completion of the course, attendees will understand how to configure Cucumber in IntelliJ and how to automate using the tool to create working Features, Scenarios and Scenario Outlines.
Prerequisite Knowledge
Although it is beneficial that attendees have a coding background (ideally in Java), this is not essential. The code examples used during the course are fully explained in the training environment for attendees less experienced in Java to access.
Course Program
Introduction
Installation and Configuration
Creating and Running a Feature File
Using Arguments In A Feature File
Using Arguments in the Feature File
Deciphering the Feature File Arguments
Handling the Arguments in the Step Definition
Using Scenario Outlines In A Feature File
Using Data Tables In A Feature File
Using The Runner Class
Using a Scenario Outline
About the Runner class
Adding a new Java class
About the Runner class
Why we need a new Java class
Creating a new Java class
Adding some new methods to the Java class
Accessing a Web Site
Adding the Selenium code
About the Runner class
Starting/Stopping the Firefox Browser Window
Recording the steps in Selenium
Adding the Selenium steps to the Java clas
Attaching Screenshots On Failure
Behaviour Driven Development (BDD)