Join Shashi Shekhar for an in-depth discussion in this video Cucumber tags: Maven test with tags, part of Cucumber Essential Training.
- [Instructor] How about we do tag filtering from Maven? … So for example, if I run mvn test, … it's going to use the filtering … that is applied in our test runner file. … And it's going tot run two scenarios … and those two scenarios are the same … as the one that we ran last time. … I'm going to clear the screen … and see if I can override that filtering … and use a different filter. … So let's go ahead and use Maven … and apply different type of tag filtering … and override what is in the test runner file. … So I'm going to tag here mvn test, cucumber.options, … and apply a filter based on a specific tag. … So how about we use tag of @RegularTest, … @RegularTest. … Let's see what cucumber does now. … Looks like it ran two scenarios. … Let's see why it ran those two scenarios. … So if we look at our feature file … we notice that @RegularTest appears … in two different scenarios and that's what Maven ran. … All the conditions, especially with … respect to using and and or, … they all work perfectly fine in Maven, …
- 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.