Docsity

SQL, Databases and DBMS QA Testing, Study Guides, Projects, Research of Information Technology

Toggle sidebar
bg1
Database Testing
This professional article is meant to teach you about Advanced Database QA Testing,
Data Analysis, Data Migration and Extract, Transform, Load (ETL) Test Case designing
for Data Warehouses. Things to know about Database Management Systems (DBMS),
challenges and its Quality Assurance approach and necessary checks /steps to take.
You can follow the various methods described to create the required Test Cases for
Database Testing. These strategies can be used for Data Analysis and testing all Types of
Databases and in Extract, Transform, and Load (ETL) processes. The following are the
tests to do in Database Quality Assurance Testing. This was used in the project works of
International Institute of Information Technology and created based on the inputs of an
MNC’s lead architects.
pf3
pf4
pf5

Partial preview of the text

Download SQL, Databases and DBMS QA Testing and more Study Guides, Projects, Research Information Technology in PDF only on Docsity!

Database Testing

This professional article is meant to teach you about Advanced Database QA Testing,

Data Analysis, Data Migration and Extract, Transform, Load (ETL) Test Case designing

for Data Warehouses. Things to know about Database Management Systems (DBMS),

challenges and its Quality Assurance approach and necessary checks /steps to take.

You can follow the various methods described to create the required Test Cases for

Database Testing. These strategies can be used for Data Analysis and testing all Types of

Databases and in Extract, Transform, and Load (ETL) processes. The following are the

tests to do in Database Quality Assurance Testing. This was used in the project works of

International Institute of Information Technology and created based on the inputs of an

MNC’s lead architects.

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:

  • Check whether the fields in the UI/ frontend forms are mapped consistently with the corresponding fields in the DB table. Normally this mapping information is defined in the requirements documents.
  • Whenever a certain action is performed at the front-end of an application, a corresponding CURD (Create, Retrieve, Update and Delete) action gets invoked at the back end. A tester will have to check if the right action is invoked and whether the invoked action in itself is successful or not. 2. Meta-data Testing The purpose of Meta-data Testing is to verify that the DB table definitions conform to the data model and the application’s design specifications. Data-Type Check Verify that the table and column data type definitions are as per the data model design specifications. Example : Data Model column data type is INT but the database column data type is STRING (or VARCHAR). Data-Length Check

Data Integrity Check These addresses keyed relationships of entities within a domain. The goal of these checks is to identify orphan records in child entity with a foreign key to the parent entity.

  • Count of records with null foreign-key values in the child table.
  • Count of invalid foreign-key values in the child table that do not have a corresponding primary key in the parent table. 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 challenge 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.

8. User Privileges, Triggers, Stored procedures Check DB Users and their various permissions, Triggers and Stored procedures are functioning properly according to the business requirements.