BoundaryValueTesting, NullCaseTesting, NegativeTesting (1336,1339)
BoundaryValueTesting, NullCaseTesting, NegativeTesting (1336,1339)
Negative testing
Null Case testing
• Database Interactions:
• If the software interacts with a database, verify how it handles situations where null
values are stored or retrieved.
• Check for appropriate handling of null constraints in database schema.
• API Testing:
• For APIs, test how they respond to requests with null parameters or missing data.
• Confirm that the API returns meaningful responses or error codes.
• User Interfaces:
• Check the user interface for clear and user-friendly messages when required data
is missing or null.
• Verify that the UI elements behave as expected in the absence of data.
Aspects Considered in Null Case testing
Integration Testing:
In integration testing, ensure that null values are appropriately handled
when different components or systems interact with each other.
Examples of Null Case Testing
• Scenario 1: A function calculates the average of an array of numbers.
• Null Case Testing: Call the function with a null array. Confirm that the function
handles the null array appropriately, avoiding any runtime errors and providing a
meaningful response (e.g., returning an error code or a default value).