forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BAEL-3445] Added Background examples to Cucumber examples (eugenp#8319)
- Loading branch information
Showing
4 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...-modules/testing-libraries/src/test/resources/features/book-store-with-background.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Book Store With Background | ||
Background: The Book Store | ||
Given I have the following books in the store | ||
| The Devil in the White City | Erik Larson | | ||
| The Lion, the Witch and the Wardrobe | C.S. Lewis | | ||
| In the Garden of Beasts | Erik Larson | | ||
|
||
Scenario: Find books by author | ||
When I search for books by author Erik Larson | ||
Then I find 2 books | ||
|
||
Scenario: Find books by author, but isn't there | ||
When I search for books by author Marcel Proust | ||
Then I find 0 books | ||
|
||
Scenario: Find book by title | ||
When I search for a book titled The Lion, the Witch and the Wardrobe | ||
Then I find a book | ||
|
||
Scenario: Find book by title, but isn't there | ||
When I search for a book titled Swann's Way | ||
Then I find no book |
32 changes: 32 additions & 0 deletions
32
...dules/testing-libraries/src/test/resources/features/book-store-without-background.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: Book Store Without Background | ||
Scenario: Find books by author | ||
Given I have the following books in the store | ||
| The Devil in the White City | Erik Larson | | ||
| The Lion, the Witch and the Wardrobe | C.S. Lewis | | ||
| In the Garden of Beasts | Erik Larson | | ||
When I search for books by author Erik Larson | ||
Then I find 2 books | ||
|
||
Scenario: Find books by author, but isn't there | ||
Given I have the following books in the store | ||
| The Devil in the White City | Erik Larson | | ||
| The Lion, the Witch and the Wardrobe | C.S. Lewis | | ||
| In the Garden of Beasts | Erik Larson | | ||
When I search for books by author Marcel Proust | ||
Then I find 0 books | ||
|
||
Scenario: Find book by title | ||
Given I have the following books in the store | ||
| The Devil in the White City | Erik Larson | | ||
| The Lion, the Witch and the Wardrobe | C.S. Lewis | | ||
| In the Garden of Beasts | Erik Larson | | ||
When I search for a book titled The Lion, the Witch and the Wardrobe | ||
Then I find a book | ||
|
||
Scenario: Find book by title, but isn't there | ||
Given I have the following books in the store | ||
| The Devil in the White City | Erik Larson | | ||
| The Lion, the Witch and the Wardrobe | C.S. Lewis | | ||
| In the Garden of Beasts | Erik Larson | | ||
When I search for a book titled Swann's Way | ||
Then I find no book |