Learn how to use Cucumber to implement agile practices like behavior-driven development (BDD), test-driven development (TDD), and acceptance test-driven development (ATDD).
Overview
Syllabus
Introduction
- A common language for business and developers
- What you should know
- Setup: JDK
- Setup: Eclipse
- Setup: Cucumber Eclipse plugin and Maven
- Create a Maven project
- Basic concepts: BDD
- Basic concepts: TDD and ATDD
- The big picture
- User story session: The problem domain
- User story session: Concrete examples
- Feature file
- Step definitions: Generate code
- Step definitions: First domain object
- Step definitions: Next scenario step
- Step definitions: Testing scenario
- Running a test: Create a test runner
- Running a test: Maven test
- Regular expressions basics
- Update price attribute
- Update item name attribute
- Use old Cucumber version
- More Cucumber expressions
- Cucumber tags: Add a tag
- Cucumber tags: Multiple tags
- Cucumber tags: Maven test with tags
- Background: Add background
- Background: Duplicate item
- Background: Execution flow
- Cucumber hooks: Adding hooks
- Cucumber hooks: Tagged hooks
- Cucumber reports: Generate reports
- Use monochrome and dryRun parameters
- Data table: Adding a data table
- Data table: Read list of strings
- Data table: List of list of strings
- Data table: List of maps
- Data table: Wrapping up
- Scenario outline: Add scenario outline
- Scenario outline: Adding examples table
- Scenario outline: Implement code
- Scenario outline: Running test
- Web browser automation
- Add Selenium dependencies
- Invoke a page: Extract values
- Invoke a page: Read results
- Invoke a page: Running test
- Best practices
- Continuous integration and BDD
- SpecFlow: Installation
- SpecFlow: Running tests
- Next steps
Taught by
Shashi Shekhar