Verify that if the Dashboard Count field in the response is not an integer and contains special characters, decimals, or leading zeros, it should throw an error.

Status : passed

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 Dashboard 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 "Dashboard 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:

  1. Step 1: Send a GET request to /dashboard API endpoint.
  2. Step 2: Review the JSON response from the server that the "valueInteger" field under the "Dashboard_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 "Dashboard Count" value is invalid.

Actual Result

Review the JSON response from the server that the valueInteger field under the Dashboard_Count_Url extension contains a value that is not an integer (e.g., contains special characters, decimals, or leading zeros). passed 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