Test Case Writing Process and Test Data Generation
Jennifer Ugo
AI Automation Consultant | AI Chatbot Developer | Founder | Transforming Businesses Through Intelligent Automations
Let's start with; What is Test Data?
This is documented Data that is basically used to test the software program.
Test Data is divided into 2 sub categories
Positive Data - data which is generally given to the system to generate expected results.
Negative Data - data which is used to test exceptional, unexpected and extreme conditions.
Example to test the following code - 'z=x+y'.
Positive data: x = 3, y = 4
Negative Data: x = -9, y = 0.000000000004
Guidelines for Test Data creation
Certain guidelines are followed worldwide for test data generation. It is important to follow these guidelines in order to test the complete product functionality:
1. No data: Run your Test Cases on blank or default data. See if proper error messages are generated.
2. Valid data set: Create it to check if the application is functioning as per requirements and valid input data is properly saved in database or files.
3. Invalid data set: Prepare invalid data set to check application behaviour for negative values, alphanumeric string inputs.
4. Illegal data format: Make one data set of illegal data format. The system should not accept data in invalid or illegal format. Also, check proper error messages are generated.
5. Boundary Condition dataset: Dataset containing out of range data. Identify application boundary cases and prepare a data set that will cover lower as well as upper boundary conditions.
6. The dataset for performance, load and stress testing: This data set should be large in volume. This way, creating separate datasets for each Test Condition will ensure complete test coverage.
4 Levels of Test Case Writing
Important factors involved in writing Test Cases
How to write Test Cases?