Verify that if the System Count field in the response is not an integer and contains special characters, decimals, or leading zeros, it should throw an error.
Status : failed
Start Time : 15-12-2024 08:45:11
End Time : 15-12-2024 08:45:13
Duration : 1.50 seconds
Title : Verify that if the System Count field in the response is not an integer and contains special characters, decimals, or leading zeros, it should throw an error.
Created By : arun-ramanan@netspective.in
Created At : 2024-12-15
Priority : High
Description
This test case is designed to verify the behavior of the API when the "System_count" field in the response is provided with non-integer values, such as special characters, decimals, or leading zeros. The API should throw a 400 Bad Request error when the field contains invalid data.
Pre-Conditions:
- The API endpoint
/dashboard
should be functional. - The API should be accessible and return a valid JSON response.
Test Steps:
- Step 1: Send a GET request to
/dashboard
API endpoint. - Step 2: Review the JSON response from the server that the "valueInteger" field under the "System_count_Url" extension contains a value that is not an integer (e.g., contains special characters, decimals, or leading zeros).
Expected Result:
- The response should contain a 400 Bad Request status code.
- An error message should be provided indicating that the "System_count" value is invalid.
Actual Result
Review the JSON response from the server that the `valueInteger` field under the `System_count_Url` extension contains a value that is not an integer (e.g., contains special characters, decimals, or leading zeros). | failed | 15-12-2024 08:45:13 | 15-12-2024 08:45:13 |
Send a **GET** request to the `/dashboard` endpoint. | passed | 15-12-2024 08:45:11 | 15-12-2024 08:45:13 |