Join Shashi Shekhar for an in-depth discussion in this video Scenario outline: Running test, part of Cucumber Essential Training.
- [Narrator] The next step is going to be, … just outputting some of these values. … Let's go ahead and fix our outputs here. … So, this is expected value. … And this is system calculated value. … One last thing that I want to add here is, … an assert statement. … This statement will compare expected value … with the system calculated value, … and if both are equal our test would succeed. … Otherwise, it would fail. … So, I'm going to add statement like this. … And, I'm going to put the statement here. … Expected value equals … system calculated value. … Let me go ahead and add an import for this, … and our method implementation is done. … Let's go ahead and copy this code, … and paste it to the other overload, … for the final bill calculated amount. … Which is here. … I'm going to change this integer 'int1' parameter name, … to expected value. … This is coming from the scenario step. … Let's go ahead and run our test. … Looks like our test succeeded. … If I look at the output I see that the total of three …
- 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.