Overview
JBehave is an open-source, Java-based BDD framework for writing tests in a natural language style. BDD, or Behavior Driven Development, is an agile software development technique that encourages collaboration among developers, QA and non-technical business people in a software project.
This training begins with a discussion of BDD and how the JBehave framework can be used to carry out BDD testing for web applications. Participants are given ample opportunity to interact with the instructor and peers while implementing the concepts and tactics learned in this hands-on, practice-based lab environment.
By the end of this training, participants will have a firm understanding of BDD and JBehave, as well as the necessary practice and toolset to write test cases for real-world software test scenarios.
Audience
- Testers and Developers
Format of the course
- Heavy emphasis on hands-on practice. Most of the concepts are learned through samples, exercises and hands-on development.
Requirements
- Basic Java programming experience
- Experience with testing and knowledge of automated testing
Course Outline
Introduction
- Business Driven Development (BDD) and Acceptance Test Driven Development (ATDD)
- BDD as a collaboration tool for software engineers, test engineers and business people
Defining your project requirements
Setting up your environment for web application testing
Writing your stories in a user-friendly language
The anatomy of a textual scenario
Writing your first textual scenario
Writing and annotating the Java method
Passing parameters to the method
Passing multiple arguments
Sharing data between methods
Organizing your scenarios
Setup and teardown
Closing remarks