Testing Tools
P21 advanced
Behaviour-driven development with Cucumber
Run Gherkin feature files against the VLP Demo Store, turn undefined steps into Java step definitions from Cucumber’s snippets, get all scenarios green and filter runs with tags.
What you'll do
- Read and write Gherkin (Feature, Background, Scenario Outline)
- Implement step definitions with Cucumber expressions
- Use hooks and a JUnit runner with @CucumberOptions
- Filter scenarios with tags
Lab tasks
- 1 Add the Cucumber JARs
- 2 Run the runner and read the snippets
- 3 Implement CartSteps
- 4 Run only the @smoke scenario