Introduction to Cucumber

Course Number:

Audience:

Course Duration:
2 Days

Prerequisites:

This course is for experienced developers and assumes both programming (e.g. Java or C#) and unit testing (e.g. JUnit or NUnit) skills.  If needed a primer course of 1-2 days can be added to level set students.

Course Objectives:
  • Understand the purpose and motivation for using Cucumber
  • Learn to create features and steps
  • Practice using assertions
  • Be able to write Gherkin code
  • Practice implementing Cucumber with Web Services
  • Learn common problems and how to avoid them
  • Understand how to leverage Cucumber and Selenium
Course Outline:

This course covers foundational Cucumber skills for experienced developers.  You’ll learn when to use Cucumber and how to utilize its’ features to automate and improve your software process.  Students will leverage the evolution of User stories into code and  have the ability to test Web Application via the Selenium API. This course is about 50% lecture & 50% discussion / hands-on exercises.   

Understanding Cucumber

  • Automating Acceptance Tests
  • How Cucumber Works
  • A word about Behavior Driven Development
  • Creating a Feature
  • Understanding Step Definitions
  • Formatters
  • Assertion Fundamentals

Gherkin

  • Motivation for using Gherkin
  • Gherkin Syntax
  • Creating Scenarios

Step Definitions in Detail

  • Working with Steps
  • How to capture arguments
  • Doing multiple captures
  • Working with results

Implementing Cucumber

  • Common problems
  • The Command Line Interface
  • Testing RESTful Web Services
  • step definitions to make them more readable and maintainable

Testing Web sites with Selenium and Cucumber

  • Using a WebDriver to test web applications and the Selenium API
  • Interrogating a response page
  • Simulating links and form submissions
  • Simulate multiple page navigation

Related Posts

About Us

IT Training, Agile Ways of Working and High Impact Talent Development Strategies

Let Us Come to You!

Classes recently delivered in: Atlanta, Boston, Chicago, Columbus, Dallas, Detroit, Indianapolis, Jerusalem, London, Milan, New York, Palo Alto, Phoenix, Pittsburgh, Portland, Raleigh, San Antonio, San Diego, San Francisco, San Jose, Seattle, Springfield, Mass., St. Louis, Tampa and more!