Automating Tests with Cucumber

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.

Retail Price: $1,495.00

Next Date: Request Date

Course Days: 1


Request a Date

Request Custom Course


About this Course

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.  

Audience Profile

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

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

At Course Completion

Upon course completion, students will be able to:

  • 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

Prequisities

Before attending this course, students should have the following:

  • 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
  • Background with exercise
  • Additional Cucumber syntax and features
    • Tags
    • Before and After
  • Some proven practices
  • Alternative ways to organize tests
  • Ways to create test doubles / mocks with exercise?

In-Class Exersices:

  • 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


Sorry! It looks like we haven’t updated our dates for the class you selected yet. There’s a quick way to find out. Contact us at 502.265.3057 or email info@training4it.com


Request a Date