Cucumber Essential Training

Cucumber Essential Training

2h 28mBeginner2025-07-14

Authors

Shashi Shekhar

Shashi Shekhar

Enterprise Architect

Course details

Cucumber is a tool for behavior-driven development (BDD), which allows you to write assertions in plain language that are then testable by code. By making written requirements actually testable, Cucumber provides a common language for business and engineering professionals. In this course, learn how to use Cucumber to implement agile practices like BDD, test-driven development (TDD), and acceptance test-driven development (ATDD). Instructor Shashi Shekhar goes over the basics of BDD, TDD, and ATDD, and then dives into the essentials of the Cucumber workflow. Along the way, gather tips on how to map user stories to features, add hooks, generate reports, and apply techniques to make BDD maintainable.

Learning objectives
Integrate Cucumber into your test-driven development.
Leverage Cucumber in tandem with Playwright and similar tools for more comprehensive test coverage.
Combine hooks and data tables into your Cucumber workflows.

Skills covered

CucumberAgile Software DevelopmentSoftware TestingDevOpsEssential TrainingOpen SourceSoftware Development

Concepts

Introduction

  • A common language for business and developers
  • What you should know

Behavior-Driven Development

  • Basic concepts - BDD
  • Basic concepts - TDD and ATDD
  • The big picture
  • Course setup

Cucumber Workflow

  • User story session - The problem domain
  • User story session - Concrete examples
  • Feature file
  • Step definitions - Generate code
  • Step definitions - First domain object
  • Step definitions - Next scenario step
  • Step definitions - Test scenario

Regular Expressions Match

  • Regular expression basics
  • Update price attribute
  • Update item name attribute
  • More Cucumber expressions

Additional Cucumber Concepts

  • Cucumber tags - Add a tag
  • Cucumber tags - Multiple tags
  • Cucumber tags - Maven test with tags
  • Background - Add background
  • Background - Duplicate item
  • Background - Execution flow
  • Cucumber hooks - Add hooks
  • Cucumber hooks - Tag hooks
  • Cucumber reports - Generate reports
  • Use dryRun parameters

Data Table and Scenario Outline

  • Data table - Add a data table
  • Data table - Read list of strings
  • Data table - List of list of strings
  • Data table - List of maps
  • Data table - Wrapping up
  • Scenario outline - Add a scenario outline
  • Scenario outline - Add an example table
  • Scenario outline - Implement code
  • Scenario outline - Run the test case

Cucumber Advanced Features

  • Web browser automation
  • Invoke a page - Test automation
  • Invoke a page - Supply values
  • Invoke a page - Read result
  • Best practices in Cucumber

Miscellaneous

  • Continuous integration and BDD
  • Other tools overview
  • Apply Playwright to Django

Conclusion

  • Next steps
80,000 Toman