DevOps Training Icon

Automating Tests with Cucumber

1 Day Classroom Session   |  
1 Day Live Online
Classroom Registration
Group Rate:
(per registrant, 2 or more)
GSA Individual:
Live Online Registration
Live Online:
Private Onsite Package

This course can be tailored to your needs for private, onsite delivery at your location.

Request a Private Onsite Price Quote

Professional Credits


ASPE is an IIBA Endorsed Education Provider of business analysis training. Select Project Delivery courses offer IIBA continuing development units (CDU) in accordance with IIBA standards.


Select courses offer Leadership (PDU-L), Strategic (PDU-S) and Technical PMI professional development units that vary according to certification. Technical PDUs are available in the following types: ACP, PBA, PfMP, PMP/PgMP, RMP, and SP.


Built-in quality allows quicker delivery of business value. One of the key practices in realizing built-in quality is Acceptance Test-Driven Development (ATDD) / Behavior Driven Development (BDD). The triad (customer, tester, and developer) creates acceptance tests to provide a joint understanding of the requirements.  Gherkin syntax using a Given-When-Then format is a common way of expressing these acceptance tests.    

Automating the tests expressed in Gherkin using Cucumber gives rapid verification that the system is delivering business value. Through examples and exercises, this course shows the developer how to write the code necessary to connect tests with Cucumber to Java production code. It demonstrates ways to reduce test redundancy with scenario outlines and tables. It presents examples of setting up test doubles (mocks) to speed up testing.  

In This Cucumber Training Course, You Will Learn How To:

  • Connect tests to production code using step-definitions
  • Find how to reuse scenarios with scenario outlines
  • Avoid redundancy in tests by using tables 
  • Discover different ways to organize tests
  • Automate a set of tests for a story
Upcoming Dates and Locations
All Live Online times are listed in Eastern Time Guaranteed To Run
Request a quote for private onsite training Request
Jan 13, 2021    8:30am – 4:30pm Live Online Register
Feb 2, 2021    8:30am – 4:30pm Live Online Register
Mar 30, 2021    8:30am – 4:30pm Live Online Register
Apr 5, 2021    8:30am – 4:30pm Live Online Register
May 14, 2021    8:30am – 4:30pm Live Online Register
Jun 30, 2021    8:30am – 4:30pm Live Online Register
Jul 22, 2021    8:30am – 4:30pm Live Online Register
Aug 27, 2021    8:30am – 4:30pm Live Online Register
Sep 24, 2021    8:30am – 4:30pm Live Online Register
Oct 15, 2021    8:30am – 4:30pm Live Online Register
Nov 19, 2021    8:30am – 4:30pm Live Online Register
Dec 3, 2021    8:30am – 4:30pm Live Online Register
Course Outline
  1. Introduction
    • Flow and business rule tests
  2. Feature files
    • Scenarios
  3. Step definitions
    • Asserts
    • Regular expressions
    • Exercise
  4. Scenario outlines with exercise
  5. Tables with exercise
  6. Background with exercise
  7. Additional Cucumber syntax and features
    • Tags
    • Before and After
  8. Some proven practices
  9. Alternative ways to organize tests
  10. Ways to create test doubles / mocks with exercise

In-Class Exercises:

  1. Step definition exercise shows basic connection to Java code
  2. Scenario outline exercise demonstrates how to use an example table to re-use the same scenario for different values
  3. Table exercise demonstrates how to use tables in tests to clarify domain terms
  4. Background exercise displays use of common setup
  5. Test double exercise presents how to setup and use test doubles
Who should attend

Developers who automate tests along with the following professions would find this cucumber training course beneficial:

  • Software Developers
  • Software Programmers
  • Quality Assurance Professionals
  • Software Testers
  • Product Owners
  • Business Analysts
  • Project Managers
  • IT Managers
  • Software Engineers

Prior experience with Java, and knowledge of test automation are necessary in order to find this course beneficial.

Additionally, although it is not mandatory, students who have completed the self-paced Agile Testing eLearning course have found it very helpful when completing this course.


Download the brochure