-
-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a check to ensure that tags are correctly written
- Loading branch information
Showing
9 changed files
with
225 additions
and
7 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
26 changes: 26 additions & 0 deletions
26
...ugin/src/test/resources/bad_tags_example/bad_tag_in_example/login_with_empty_tags.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,26 @@ | ||
@singlebrowser | ||
@authentication | ||
Feature: Login's all good | ||
|
||
@test | ||
@smoke | ||
Scenario: Colin logs in with Colin's valid credentials | ||
Given Colin is on the login page | ||
When Colin logs in with valid credentials | ||
Then he should be presented the product catalog | ||
|
||
@test | ||
Scenario Outline: Login's with invalid credentials for <username> | ||
Given Colin is on the login page | ||
When Colin attempts to login with the following credentials: | ||
| username | password | | ||
| <username> | <password> | | ||
Then he should be presented with the error message <message> | ||
@issue: | ||
Examples: | ||
| username | password | message | | ||
| standard_user | wrong_password | Username and password do not match any user in this service | | ||
| unknown_user | secret_sauce | Username and password do not match any user in this service | | ||
| unknown_user | wrong_password | Username and password do not match any user in this service | | ||
| locked_out_user | secret_sauce | Sorry, this user has been locked out | | ||
|
28 changes: 28 additions & 0 deletions
28
...ugin/src/test/resources/bad_tags_example/bad_tag_in_feature/login_with_empty_tags.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,28 @@ | ||
@singlebrowser | ||
@authentication | ||
@issue: | ||
Feature: Login's all good | ||
|
||
Rule: Customers needs to provide valid credentials to access the site | ||
|
||
@test | ||
@smoke | ||
Example: Colin logs in with Colin's valid credentials | ||
Given Colin is on the login page | ||
When Colin logs in with valid credentials | ||
Then he should be presented the product catalog | ||
|
||
@test | ||
Scenario Outline: Login's with invalid credentials for <username> | ||
Given Colin is on the login page | ||
When Colin attempts to login with the following credentials: | ||
| username | password | | ||
| <username> | <password> | | ||
Then he should be presented with the error message <message> | ||
Examples: | ||
| username | password | message | | ||
| standard_user | wrong_password | Username and password do not match any user in this service | | ||
| unknown_user | secret_sauce | Username and password do not match any user in this service | | ||
| unknown_user | wrong_password | Username and password do not match any user in this service | | ||
| locked_out_user | secret_sauce | Sorry, this user has been locked out | | ||
|
28 changes: 28 additions & 0 deletions
28
.../test/resources/bad_tags_example/bad_tag_in_nested_scenario/login_with_empty_tags.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,28 @@ | ||
@singlebrowser | ||
@authentication | ||
@issue: | ||
Feature: Login's all good | ||
|
||
Rule: Customers needs to provide valid credentials to access the site | ||
|
||
@test | ||
@smoke | ||
Example: Colin logs in with Colin's valid credentials | ||
Given Colin is on the login page | ||
When Colin logs in with valid credentials | ||
Then he should be presented the product catalog | ||
|
||
@test | ||
Scenario Outline: Login's with invalid credentials for <username> | ||
Given Colin is on the login page | ||
When Colin attempts to login with the following credentials: | ||
| username | password | | ||
| <username> | <password> | | ||
Then he should be presented with the error message <message> | ||
Examples: | ||
| username | password | message | | ||
| standard_user | wrong_password | Username and password do not match any user in this service | | ||
| unknown_user | secret_sauce | Username and password do not match any user in this service | | ||
| unknown_user | wrong_password | Username and password do not match any user in this service | | ||
| locked_out_user | secret_sauce | Sorry, this user has been locked out | | ||
|
28 changes: 28 additions & 0 deletions
28
...plugin/src/test/resources/bad_tags_example/bad_tag_in_rules/login_with_empty_tags.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,28 @@ | ||
@singlebrowser | ||
@authentication | ||
Feature: Login's all good | ||
|
||
@issue: | ||
Rule: Customers needs to provide valid credentials to access the site | ||
|
||
@test | ||
@smoke | ||
Example: Colin logs in with Colin's valid credentials | ||
Given Colin is on the login page | ||
When Colin logs in with valid credentials | ||
Then he should be presented the product catalog | ||
|
||
@test | ||
Scenario Outline: Login's with invalid credentials for <username> | ||
Given Colin is on the login page | ||
When Colin attempts to login with the following credentials: | ||
| username | password | | ||
| <username> | <password> | | ||
Then he should be presented with the error message <message> | ||
Examples: | ||
| username | password | message | | ||
| standard_user | wrong_password | Username and password do not match any user in this service | | ||
| unknown_user | secret_sauce | Username and password do not match any user in this service | | ||
| unknown_user | wrong_password | Username and password do not match any user in this service | | ||
| locked_out_user | secret_sauce | Sorry, this user has been locked out | | ||
|
26 changes: 26 additions & 0 deletions
26
...gin/src/test/resources/bad_tags_example/bad_tag_in_scenario/login_with_empty_tags.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,26 @@ | ||
@singlebrowser | ||
@authentication | ||
Feature: Login's all good | ||
|
||
@test | ||
@smoke | ||
@issue: | ||
Scenario: Colin logs in with Colin's valid credentials | ||
Given Colin is on the login page | ||
When Colin logs in with valid credentials | ||
Then he should be presented the product catalog | ||
|
||
@test | ||
Scenario Outline: Login's with invalid credentials for <username> | ||
Given Colin is on the login page | ||
When Colin attempts to login with the following credentials: | ||
| username | password | | ||
| <username> | <password> | | ||
Then he should be presented with the error message <message> | ||
Examples: | ||
| username | password | message | | ||
| standard_user | wrong_password | Username and password do not match any user in this service | | ||
| unknown_user | secret_sauce | Username and password do not match any user in this service | | ||
| unknown_user | wrong_password | Username and password do not match any user in this service | | ||
| locked_out_user | secret_sauce | Sorry, this user has been locked out | | ||
|
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