Capsule 11
BDD Test Automation
General Information about the Capsule
Name: BDD Test Automation
Identifier: ENACTEST_ID_11
Language: English
Category: Teaching material
Keywords: Behavior Driven Development, BDD, Cucumber, gherkin, test automation, acceptance testing
Description:
This capsule teaches how to use Behavor Driven Development (BDD) as a test-first software development method that concentrates on user requirements and expectations, facilitating collaboration among developers, testers, and product owners, focusing on automating acceptance tests.
It is a learning capsule that helps students understand the basics of BDD and how to define acceptance tests that are then generated into automated tests, using the tool Cucumber.
The capsule sets out to cover the basics of understanding the concepts of DBB, defining BDD scenarios in gherkin format, using the tool Cucumber to automate tests. After having carried out this teaching material, students will understand the fundamentals of BDD, using Gherkin Sytnax for driving development using acceptance tests, and the Cucumber tool.
Supporting Materials
Cost: Free
Copyright and Other Restrictions: Yes
Description: Licensed for educational and research purposes.
Educational
Interactivity Type: Interactive
Learning Resource Type: Teaching material with accompanying software
Interactivity Level: Medium
Intended End-User Role: Learner (Master’s students , final year Bachelor’s students)
Context: Higher Education
Typical Age Range: Adult learners (18+ years)
Difficulty Level: Intermediate
Description of Learning Objectives:
- Apply a test-first approach for driving software development
- Unsderstand the practice of BDD
- Use the Cucuber tool for automation tests
Prerequisites
- Agile testing concepts
- Java programming knowledge
- IntelliJ IDE
- Maven plugin
- Gherkin syntax plugin
- Cucumber framework plugin
Classification of the Learning Objectives According to Bloom’s Taxonomy
- Understand: BDD, Acceptance Testing, Test-first Approach
- Apply: Gherkin sytax language to express acceptance tests
- Analyze: Java test step definitions generated from feature files using Cucumber
- Evaluate:Aplication of BDD using a real life example
Learning Sequence
Introduction to BDD, test-first appraches, acceptance testing
Activity 1: First BDD scenario, from feature files to test step definitions
Activity 2: Add functionality to scenario
Activity 3: Explore additional Cucumber features
Activity 4: Apply BDD concepts to real life scenario
Expected Consequences
Students will develop skills using DBB and Cucumber
