• BDD & Cucumber

    Duration : 24 hrs

About The Course

Cucumber is an Open Source test automation tool that supports Behavior Driven Development (BDD), and it is used to write acceptance tests for different applications. 

Cucumber is used to implement automated tests based on scenarios described in Gherkin feature files which are created based on BDD approach. Cucumber can be integrated with Selenium for testing and can be used for cross-browser web applications testing. It also supports many languages to create scripts.

Course Content

Introduction to BDD & Cucumber

  •  Introduction to Cucumber and Behavior Driven Development.
  •  Test Driven Development (TDD)
  •  Cucumber & Behavior Driven Development
  •  Gherkin – Business Driven Development
  •  Getting Started with Cucumber
  •  Installing and configuring various tools and frameworks
  •  Download Cucumber plugin

Feature Files

  •  Understand the power and usage of the Gherkin language to come up with efficient and optimized Feature files.
  •  Writing your first Feature file with one Scenario
  •  Creating a Scenario with the And and But keywords
  •  Creating a Runner Class
  •  Writing a Feature file with multiple Scenarios
  •  Implementing Scenario Outlines

Step Definitions

  •  Write very effective and efficient Step Definitions.
  •  Creating your first Step Definitions file
  •  Identifying duplicate and Ambiguous Step Definitions
  •  Using regular expressions to optimize Step Definitions
  •  Handling Optional Capture / Non Capture arguments
  •  Using Doc Strings to parse big data as one chunk
  •  Combining Doc Strings and Scenario Outlines

Enabling Fixtures

  •  Concepts of Tags and Hooks followed by ANDing and ORing them
  •  Power of Tag and Hook combinations
  •  Tagging
  •  ANDing and ORing Tags
  •  Adding Hooks to Cucumber code
  •  Tagging the Hooks
  •  ANDing and ORing the Tagged Hooks

Configuring Cucumber

  •  Cucumber with JUnit and then start understanding @CucumberOptions annotation.
  •  Integrating Cucumber with Junit
  •  Overriding the Cucumber Options
  •  Running Dry
  •  Configuring the Cucumber Console output
  •  Directing the Cucumber output to reports
  •  Generating Extent Reports

Running Cucumber

  •  Multiple ways of running Cucumber from the Terminal
  •  Integrating Cucumber with
  •  Overriding options from the Terminal
  •  Integrating Cucumber with Jenkins and GitHub
  •  Running Cucumber test cases in parallel

Building Cucumber Frameworks

  •  Building a Web Automation framework