BDD & TDD / Quiz
Steps, Tables, and Glue
Cucumber expressions, DataTable conversions, and the step-reuse habits that keep a step catalog from rotting into a junk drawer.
- Difficulty
- Medium
- Format
- Quiz
- Points
- 150
- Estimate
- 10 min
// MISSION BRIEF
Your Mission
Every Cucumber suite lives or dies by its step layer. This quiz covers parameterized cucumber expressions, DataTable conversions, doc strings, and the reuse patterns (and anti-patterns) that decide whether 200 features share 40 steps or 4,000.
Scoring: timed quiz; accuracy first, speed bonus for fast clean runs.
// FIRST CONTACT
Battle teaser
One step definition should match both `I add 3 items` and `I add 10 items`. The cucumber expression:
- A`I add {int} items`
- B`I add %d items`
- C`I add [0-9] items`
- D`I add <count> items`
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
bddcucumberdata-tablesstep-definitions