Join Shashi Shekhar for an in-depth discussion in this video Best practices, part of Cucumber Essential Training.
- [Tutor] Cucumber essentials best practices. … One of the key considerations of writing scenarios … is to stay at the right level of abstraction. … Let's review this scenario. … Given a user is on the generate bills web page … when the user enters bill amount as $500 … in the bill amount text box, … and the user checks recalculate checkbox … and so on and so forth. … As you can see, this scenario is excessively procedural … and coupled with user interface element dependencies. … It also reads like a flowchart. … What if this functionality was coded in a domain object? … You will end up writing another scenario … for your domain model. … When writing scenarios, … focus on business rules and concrete examples. … How about this scenario? … This is a bit too abstract and is no better … than writing system shall calculate interest. … Here is a recommendation for a scenario … at the right level of abstraction. … The reason I say a recommendation, … and not the recommendation, … is because there are multiple correct ways …
- How Cucumber can be used for BDD, TDD, and ATDD
- Installing and configuring Cucumber
- Mapping user stories to features
- Adding hooks
- Generating reports
- Adding a data table
- Adding Selenium dependencies
- Applying techniques to make BDD maintainable
Skill Level Intermediate
Robot Framework Test Automation: Level 1 (Selenium)with Bryan Lamb6h 23m Intermediate
1. Behavior-Driven Development
2. Cucumber Workflow
3. Regular Expressions Match
4. Additional Cucumber Concepts
5. Data Table and Scenario Outline
6. Cucumber Advance Features
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.