Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test cases my Murtaza for AgeRanger Debitsuccess Test
Age Ranger - Test Scenarios:
Pre condition: Every person should have firts name, last name and an age.
TC_1.1 - Add a new person (Authentic): The purpose of this test case if to ensure a successul entry of a new person.
TC_1.2 - Add a new person (Invalid Fields): The purpose of this test case is to ensure that correct error message is displyed when User enter invalid details i.e. information in violation of business rules/functional specifications.
TC_1.3 - Add a new person (Blank Fields): The purpose of this test case is to ensure that User can't submit with blank empty fields.
Pre condition: Entries made are correct(as per business rules) and in sync with the DB table.
TC_2.1 - Display list of people on the webpage : The objective is to display a list of people in tandem with correct information.
TC_2.1 - Age group determination - The objective is to categorize a person based on their age group (as per business rules)
TC_3.1 - Search by name: System should return relevant information when searched by first or last name.
TC_3.2 - Predictive Search: The purpose of this test case is to verify that predictive search works where applicable.
TC_4.1 - Edit: The objective is to verify that a User can Edit an existing person.
TC_5.1 - Delete : The objective is to verify that a User can delete a person from the list.
TC_1.1 - Run the GET request (Try it out) in Swagger UI to fetch your results:
[
{
"Id": 0,
"FirstName": "string",
"LastName": "string",
"Age": 0,
"AgeGroup": "string"
}
]
Check the Reponse Code is 200 (OK).
Verify the results in the Response Body.
The results in the response body should match the ones on the webpage.
TC_2.1 : POST (Authentic) - Add a new person using Post Request (Valid Fields)
Enter the code below and Hit "Try it out"
{
"Id": 1886,
"FirstName": "Alexander",
"LastName": "Max",
"Age": 0,
"AgeGroup": "Toddler"
}
Check that HTTP Status Code is 204
Verify that Alexander Max is added as a New Person
TC_2.2 : POST (Incomplete fields) - Verify that invalid fields return appripirate error message (Last Name can't be blank).
Run the code below:
{
"Id": 1886,
"FirstName": "Alexander",
"LastName": "",
"Age": 0,
"AgeGroup": "string"
}
Check that HTTP Status Code is 500
Verify the message under Response Body "Last Name cannot be blank"
TC_2.3 : POST (Blank fields) - The purpose is to to Verify that blank fields can't be added and system returns correct error message.
Run the code below:
{
"Id": 0,
"FirstName": "",
"LastName": "",
"Age": 0,
"AgeGroup": "string"
}
Check that the HTTP Status Code is 500
Verify the message under Response Body "First Name cannot be blank"
TC_3.1 : PUT (Authentic) - Update the person (Id 1886) using PUT Request (Valid Fields)
Run the code below:
{
"Id": 1886,
"FirstName": "Alexander",
"LastName": "Maximus",
"Age": 0,
"AgeGroup": "string"
}
Check that the HTTP Status Code is 204
Verify that Id 1886 is updated as Alexander Maximus
TC_3.2 : PUT (Invalid fields) - The purpose is to to Verify that invalid fields can't be updated and system returns correct error message.
Run the code below:
{
"Id": 1886,
"FirstName": "Alexander",
"LastName": "",
"Age": 0,
"AgeGroup": "string"
}
Check that HTTP Status Code is 500
Verify the message under Response Body "Last Name cannot be blank"
TC_3.3 : PUT (Blank fields) - The purpose is to to Verify that existing record can't be updated with blank fields.
Run the code below:
{
"Id": 0,
"FirstName": "",
"LastName": "",
"Age": 0,
"AgeGroup": "string"
}
Check that the HTTP Status Code is 500
Verify the message under Response Body "First Name cannot be blank"
TC_4.1 - DELETE (Authentic)
TC_4.1 - DELETE (Invalid)
TC_5.1 - Run the GET request (Try it out) in Swagger UI to fetch GetAllAgeGroups results:
Run the Code below:
[
{
"Id": 0,
"MinAge": 0,
"MaxAge": 0,
"Description": "string"
}
]
Check that the Response Code is 200.
Verify the reults under the Response Body.
The results in the response body should match the ones on the webpage.