Preferred method of contact:

Automating Tests with Cucumber

COURSE TYPE

Foundation

Course Number

3680

Duration

1 Day

PDF Add to WishList

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 on setting up test doubles (mocks) to speed up testing.

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

Important Course Information

Prerequisites:

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

Course Outline

  • Introduction
  • Flow and business rule tests
  • Feature Files
  • Scenarios
  • Step definitions
  • Asserts
  • Regular expressions
  • Exercise
  • Scenario outlines with exercise
  • Tables with exercise
  • Additional Cucumber syntax and features
  • Tags
  • Before and After
  • Some proven practices
  • Alternative ways to organize tests
  • Introduction
  • Flow and business rules tests
  • Ways to create test doubles / mocks with exercise?
  • In-Class Exercises
  • Step definition exercise shows basic connection to Java code
  • Scenario outline exercise demonstrates how to use an example table to re-use the same scenario for different values
  • Table exercise demonstrates how to use tables in tests to clarify domain terms
  • Background exercise displays use of common setup
  • Test double exercise presents how to setup and use test doubles
Show complete outline
Show Less

Convenient Ways to Attend This Instructor-Led Course

Hassle-Free Enrollment: No advance payment required to reserve your seat.
Tuition due 30 days after you attend your course.

Live, Online

Private Team Training

Live, Online Instructor-Led

Tuition — Standard: $1295  

Sep 4 (1 Day)
10:30 AM - 5:30 PM EDT
Live Online Live Online Reserve Your Seat

Nov 5 (1 Day)
10:30 AM - 5:30 PM EST
Live Online Live Online Reserve Your Seat

Guaranteed to Run

When you see the "Guaranteed to Run" icon next to a course event, you can rest assured that your course event — date, time, location — will run. Guaranteed.

Private Team Training

Enrolling at least 3 people in this course? Consider bringing this (or any course that can be custom designed) to your preferred location as a private team training.

For details, call 1-888-843-8733 or Click Here »

This event has been added to your cart.

Tuition

Standard

In Classroom or
Online

Standard

$1295

Private Team Training

Contact Us »

Training Hours

Training hours vary depending on the time zone in which your course is scheduled.

- ,

Prev
Next
Chat Now

Please Choose a Language

Canada - English

Canada - Français