Test-Driven Development using Cucumber
Course Description
Cucumber is the leading framework for TDD and BDD in Java, and it ties in well with a host of application types and Java technology APIs. You`ll learn all about these integrations during the course.
3 days
Contact us for pricing
Prerequisites
Familiarity coding and/or testing Java applicationswhat you`ll learn
TDD and BDD essentialsAchieving BDD using Cucumber
Understanding Cucumber API and features
Using Cucumber with databases, DI containers, and Web/REST applications
Testing legacy code
Introduction to TDD/BDD and Cucumber
Getting started with behaviour-driven developmentBDD vs TDD
Overview of Cucumber
How Cucumber works
Tooling up
Getting Started with Cucumber
Creating featuresCreating step definitions
Implementing step definitions
Testing our classes
Making assertions
Making the tests work
Getting Started with Gherkin
Overview of GerkhinFeatures
Scenarios
Comments
Spoken languages
Step Definitions External Perspective
Steps and step definitionsCapturing arguments
Multiple captures
Achieving more flexibility
Returning results
Cucumber Best Practices
IssuesCollaboration
Writing maintainable tests
Guidelines for preventing defects
Step Definitions Internal Perspective
Domain modelTransforms
Custom helper methods
Dependency injection
Enterprise Development
Asynchronous architectureMessage queues
Asynchronous components
Databases
Interactive database developmentRefactoring to use a database
Writing and writing to the database
Cleaning the database
Dependency Injection
Overview of DIDI in Cucumber
PicoContainer
Guice
Weld CDI
Web Applications
Overview of Selenium WebDriverInteracting with the DOM
Handling failures
Ajax
REST Web Services
Overview of RESTREST and Cucumber
Guidelines and best practices
Testing Legacy Code
The challenge of legacy codeRefactoring techniques
Mocking techniques
Additional useful guidelines and techniques
CucumberObject Oriented ProgrammingOOPTDDTest Driven DevelopmentGherkinBDDBehaviour driven development