



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




1. Data - Mapping In software applications, data often travels back and forth from the GUI (Graphical User- Interface) to the backend Data Base and vice versa. So, these are the aspects to check for:
4. Data-Quality Testing The purpose of Data-Quality tests is to verify the accuracy and quality of the data. Data profiling is widely used to identify data quality issues in production systems once the application has been live for some time. However, the goal of database testing is to automate the data quality checks in the testing phase. Duplicate Data Checks Look for duplicate rows with same unique key column or a unique combination of columns as per business requirement. Example: Business requirement says that a combination of First Name, Last Name, Place and Data of Birth should be unique. Data Validation Rules Many database fields can contain a range of values that cannot be enumerated. However, there are reasonable constraints or rules that can be applied to detect situations where the data is clearly wrong. Instances of fields containing values violating the validation rules defined represent a quality gap that can impact Data migrations, ETL processing in Data Warehouses. Example: Date of birth (DOB). This is defined as the DATE datatype and can assume any valid date. However, a DOB in the future, or more than 1 5 0 years in the past are probably invalid. Also, the date of birth of the child is should not be greater than that of their parents. 5. Reference-Data Testing Many database fields can only contain limited set of enumerated(listed) values. Instances of fields containing values not found in the valid set represent a quality gap that can impact processing. Verify that data conforms to reference data standards
Data model standards dictate that the values in certain columns should adhere to the values in a domain. Example: Values in the country_code column should have a valid country code from a Country Code domain. Query: SELECT DISTINCT country_code FROM address EXCEPT SELECT country_code FROM country Compare domain values across environments One of the challenges in maintaining reference data is to verify that all the reference data values from the development environments has been migrated properly to the test and production environments. Example: Compare Country_codes between development, staging and production environments.
6. Database Performance/Load Testing Normally development environments do not have enough data for performance / load testing of the database. This could be because the project has just started and the database only has small amount of test data. The application can behave differently with different volumes of data. Setting up realistic test data using larger volume of test data using data generation tools. 7. Transactions When testing Transactions, it is very important to make sure that they satisfy the ACID properties.