-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added json file processor for the test data. (#17)
* Added json process for the test data. * refactor the test data processor * update the readme doc * update readme doc --------- Co-authored-by: Mahmudul Hassan <[email protected]>
- Loading branch information
Showing
7 changed files
with
159 additions
and
16 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[ | ||
{ | ||
"testCaseId": "TC-1", | ||
"testCaseDescription": "Correct username and correct password should redirect to 'Products' page", | ||
"username": "standard_user", | ||
"password": "secret_sauce", | ||
"errorMessage": "" | ||
}, | ||
{ | ||
"testCaseId": "TC-1", | ||
"testCaseDescription": "Correct username and correct password should redirect to 'Products' page", | ||
"username": "problem_user", | ||
"password": "secret_sauce", | ||
"errorMessage": "" | ||
}, | ||
{ | ||
"testCaseId": "TC-1", | ||
"testCaseDescription": "Correct username and correct password should redirect to 'Products' page", | ||
"username": "performance_glitch_user", | ||
"password": "secret_sauce", | ||
"errorMessage": "" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Incorrect username and correct password should produce errorMessage", | ||
"username": "username", | ||
"password": "secret_sauce", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Correct username and incorrect password should produce errorMessage", | ||
"username": "standard_user", | ||
"password": "password", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Correct username and incorrect password should produce errorMessage", | ||
"username": "locked_out_user", | ||
"password": "password", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Correct username and incorrect password should produce errorMessage", | ||
"username": "problem_user", | ||
"password": "password", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Correct username and incorrect password should produce errorMessage", | ||
"username": "performance_glitch_user", | ||
"password": "password", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Incorrect username and incorrect password should produce errorMessage", | ||
"username": "demo_username", | ||
"password": "demo_password", | ||
"errorMessage": "Epic sadface: Username and password do not match any user in this service" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Blank username should produce errorMessage", | ||
"username": "", | ||
"password": "demo_password", | ||
"errorMessage": "Epic sadface: Username is required" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Blank password should produce errorMessage", | ||
"username": "demo_username", | ||
"password": "", | ||
"errorMessage": "Epic sadface: Password is required" | ||
}, | ||
{ | ||
"testCaseId": "TC-2", | ||
"testCaseDescription": "Should produce errorMessage for locked out user", | ||
"username": "locked_out_user", | ||
"password": "secret_sauce", | ||
"errorMessage": "Epic sadface: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"testCaseId": "TC-1", | ||
"testCaseDescription": "Logging out should redirect to login page", | ||
"username": "standard_user", | ||
"password": "secret_sauce", | ||
"url": "https://www.saucedemo.com/" | ||
} | ||
] |