Docsity

Data Engineer's Data Analysis & Database Testing PDF, Study Guides, Projects, Research of Information Technology

Toggle sidebar
bg1
Data Analysis & Database Testing
This professional tutorial is specifically designed to train you on the industry trends in
data engineering, data analytics, database QA testing, data analysis, data migration, and
Extract, Transform, Load (ETL) test case design for data warehouses. It covers all
essential aspects of database management systems, data integration, data modeling, and
related quality assurance methodologies, including the necessary checks and procedures.
You can follow the various methods described to create the necessary test cases for
database testing and data management. These strategies apply to data processing, data
analysis, and testing across all types of databases, as well as in Extract, Load, and
Transform (ELT) processes.
The following are the steps to do in Database Quality Analysis & Data Testing.
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/ front-end forms are mapped consistently with the
corresponding fields in the DB table. Normally this mapping information is defined in
the requirements documents.
pf3
pf4
pf5

Partial preview of the text

Download Data Engineer's Data Analysis & Database Testing PDF and more Study Guides, Projects, Research Information Technology in PDF only on Docsity!

Data Analysis & Database Testing

This professional tutorial is specifically designed to train you on the industry trends in

data engineering, data analytics, database QA testing, data analysis, data migration, and

Extract, Transform, Load (ETL) test case design for data warehouses. It covers all

essential aspects of database management systems, data integration, data modeling, and

related quality assurance methodologies, including the necessary checks and procedures.

You can follow the various methods described to create the necessary test cases for

database testing and data management. These strategies apply to data processing, data

analysis, and testing across all types of databases, as well as in Extract, Load, and

Transform (ELT) processes.

The following are the steps to do in Database Quality Analysis & Data Testing.

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/ front-end 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 CRUD (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 Verify that the length of database columns is as per the data model design specifications. Example: Data Model specification for the ‘last_name’ column is of length 5 0 but the corresponding database table column is only 3 0 characters long. Index / Constraint Check Verify that proper indexes and constraints are defined on the database tables as per the design specifications.
  1. Verify that the columns that cannot be null have the ‘NOT NULL’ constraint.
  2. Verify that the unique key and foreign key columns are indexed as per the requirement

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.