Opleiding: Cucumber Acceptance Testing
The course Acceptance Testing with Cucumber discusses how Cucumber can be used in combination with the Gherkin scenario language to write the specifications for automated acceptance tests.Cucumber Behavior Driven Development
Cucumber is a Behavior Driven Development tool that allows test scenarios in plain language to be drawn up in consultation with the client and end user. The scenarios are also intended for developers and serve as input for the generation of automated test scripts in a programming language and test framework.
Gherkin Feature Files
The course Acceptance Testing with Cucumber focuses on the preparation of Feature files, the syntax of the Gherkin specification language and the creation of a template file for the step definitions. Various Cucumber configuration options are discussed.
Test Parameters
Data Driven testing with Cucumber and the parameterization of tests are also on the program of the course Acceptance Testing with Cucumber. Also attention is paid to the implementation of hooks that are performed before, after or during a test step.
Cucumber Tags
Finally, Cucumber tags, Cucumber expression language and integration with the JUnit Test Framework are discussed.
Maven Integration
The course Acceptance Testing with Cucumber is basically done with Java as a programming language and Maven for bringing in Cucumber and JUnit dependencies, but on request the course can also be done with Ruby and RSpec.
Audience Course Acceptance Testing with Cucumber
The course Acceptance Testing with Cucumber is intended for testers, developers and others who want to use Cucumber and Gherkin for the specification of automated tests.
Prerequisites Acceptance Testing with Cucumber
Experience with testing is required. Experience with basic programming principles is recommended, but is not strictly necessary.
Realization Acceptance Testing with Cucumber
The theory is explained on the basis of presentations and demos. Several scenarios are implemented as exercises. Theory and practice are interchanged. The course times are from 9.30 to 16.30.
Certification Acceptance Testing with Cucumber
Participants receive an official certificate Acceptance Testing with Cucumber after successful completion of the course.
Modules
Module 1 : Cucumber Intro
- Test Driven Development
- Steps in TDD
- What is BDD?
- BDD’s Evolution
- BDD Second generation
- User Stories
- Scenarios
- BDD Tools
- Cucumber
- Features
- Scenarios
Module 2 : Gherkin Keywords
- What is Gherkin?
- Gherkin Syntax
- Feature Files
- Gherkin Keywords
- Feature Keyword
- Background Keyword
- Scenario Keyword
- Given and When Keyword
- Then and And Keyword
- But Keyword
- * Keyword
Module 3 : Step Definitions
- Step Definitions
- Step Definition File
- Step Template
- Automation Script
- Step Implementation
- Cucumber Options
- dryRun Option
- monochrome Option
- features Option
- glue Option
- format Option
Module 4 : Data Driven Testing
- Parameterization
- Scenario Outline
- Executing Examples
- Data Tables
- Raw Methods
- Maps in Data Tables
- Test Step Implementation
- Matching Steps
- Failed Steps
Module 5 : Cucumber Hooks
- What are hooks?
- Scenario Hooks
- Before Hook
- After Hook
- Lambda Style
- Around Hook
- Step Hooks
- BeforeStep and AfterStep
- Tagged Hooks
Module 6 : Cucumber Tags
- What are Tags?
- Scenario Subset
- Scoping Hooks
- Tag Placement
- Tag Inheritance
- Tag Expressions
- Run Scenario Subset
- Ignoring Scenarios
- Tags for Documentation
Module 7 : Cucumber Expressions
- Comparison to Regular Expressions
- Parameter Types
- Built-in Parameter Types
- int and float
- word and string
- anonymous
- Custom Parameter Types
- Optional text
- Alternative Text
- Escaping
Module 8 : JUnit Integration
- What is JUnit?
- JUnit Integration
- Assert Statements
- Assert Class
- Fixtures
- Annotations
- Test Suites
- Suite in Suite
- Suite TestRunner
- Parameterized Tests