Cucumber with Ruby


Long gone are the days of writing tedious, cumbersome testcases. With the introduction of BDD Cucumber, all the teams in the different stages of product development can now collaborate together on this common platform. In this course we will learn about how to start writing and designing feature files using the Gherkin DSL.

Ruby is known as a tester's language. It is one of the most sought after programming language, and the language in which the famous Cucumber tool for BDD is developed. Learning Ruby is fun. 

Course Duration(Online) : 3 Weeks

 Course Outline: 

Week 1: Introduction to Ruby

  • Ruby Introduction
  • Installing Ruby
  • Installing Devkit
  • Ruby Editor
  • Ruby – IRB
  • Programming basic concepts
  • Ruby Data Types
  • Ruby Variables
  • Ruby Operators
  • Control Structures
  • Loop Structures While and For
  • Strings
  • Array
  • Hashes

Week 2: Ruby Advanced Topics

  • Methods
  • Blocks
  • Proc and Lambda
  • Ranges
  • Iterator
  • Regular Expressions
  • Files and IO
  • Exception Handling
  • Understanding OOPS
  • Classes
  • Modules
  • Mixins
  • Best Practices in Programming

Week 3: Introduction to BDD and Cucumber

  • What is BDD
  • Why Cucumber?
  • Cucumber installation
  • Cucumber framework flow
  • Introduction to Cucumber Gherkin
  • Gherkin Keywords
    • scenario
    • Feature
    • given
    • When
    • Then
    • Tagging
    • Background
  • Revisit Regular Expression
  • Feature File for a sample scenario
  • Creation of Step Definition File
  • Execution
  • Results and Reports

Testing A Web Application using Ruby, Cucumber and Selenium

  • Introduction to Real Time Project
  • Creation of feature file
  • Creation of Step Definition File
  • Execution
  • Result and Report
  • Concept of hooks and tags