Blog

Data Warehouse Testing, ETL Testing, and BI Testing: What’s the Difference?

Author:

Wayne Yaddow

Data migration / integration / ETL consultant

Date: Oct. 29, 2018

Editor’s note: Wayne Yaddow is an independent consultant with over 20 years’ experience leading data migration/integration/ETL testing projects at organizations including J.P. Morgan Chase, Credit Suisse, Standard and Poor’s, AIG, Oppenheimer Funds, IBM, and Achieve3000. Additionally, Wayne has taught IIST (International Institute of Software Testing) courses on data warehouse, ETL, and data integration testing. He continues to lead numerous ETL testing and coaching projects on a consulting basis. You can contact him at wyaddow@gmail.com.

When referring to business intelligence quality assurance, we often discover that the terms data warehouse (DWH) testing and ETL Testing are used interchangeably as though they are one and the same.

Data warehouses can be defined as a collection of data that may include all of an organization’s data. They came into existence due to more focus from senior management on data as well as data-driven decision making (business intelligence). Historical collections of online transaction processing (OLTP) data, combined with continuous updating of current data for analysis and forecasting, is implemented to support management decisions. Since many organizational decisions depend on the data warehouse, the data should be of the highest quality.

To ensure that organizations make smart, accurate decisions, testing should be planned and executed very efficiently to avoid erroneous data being pumped into the database—then ultimately obfuscating senior management’s decision-making process.

This article summarizes three testing strategies often associated with business intelligence quality assurance: ETL testing, data warehouse/BI infrastructure testing, and BI application/report testing. In doing so, it aims to clarify distinctions among these three primary categories of testing. Considerable research has proven how these strategies increase productivity and ensure accurate data flow into the final warehouse and BI reports. Following these approaches is a reliable way to prevent data-integrity issues from undermining the business value of the data warehouse.

What is ETL Testing?

ETL testing is a sub-component of overall DWH testing. A data warehouse is essentially built using data extractions, data transformations, and data loads. ETL processes extract data from sources, transform the data according to BI reporting requirements, then load the data to a target data warehouse. Figure 1 shows the general components involved in the ETL process.

ETL process graph

Figure 1: ETL testing for data staging, data cleansing, and DWH loads

After selecting data from the sources, ETL procedures resolve problems in the data, convert data into a common model appropriate for research and analysis, and write the data to staging and cleansing areas—then finally to the target data warehouse. Among the four components presented in Figure 1, the design and implementation of the ETL process requires the largest effort in the development life cycle. ETL’s processes present many challenges, such as extracting data from multiple heterogeneous sources involving different data models, detecting and fixing a wide variety of errors/issues in data, then transforming the data into different formats that match the requirements of the target data warehouse.

A data warehouse keeps data gathered and integrated from different sources and stores the large number of records needed for long-term analysis. Implementations of data warehouses use various data models (such as dimensional or normalized models), and technologies (such as DBMS, Data Warehouse Appliance (DWA), and cloud data warehouse appliances).

ETL testing includes different types of testing for its three different processes (extract, transform, load).

Data Extraction Testing Examples

Data extraction tests might check that:

  1. Data extraction code is granted security access to each source system
  2. Updating of extract audit logs and time stamping is accomplished
  3. Data can be extracted from each required source field
  4. All extraction logic for each source system works as required
  5. Source to extraction destination is working in terms of completeness and accuracy
  6. All extractions are completed within the expected timeframe

Data Transformation Testing Examples

Data transformation tests might check that:

  1. Transaction processes are transforming the data according to the expected rules and logic
  2. One-time transformation for historical initial loads are working
  3. Detailed and aggregated data sets are created successfully
  4. Transaction audit logs and time stamping are recorded
  5. There is no data loss or corruption of data during transformations
  6. Transformations are completed within the expected timeframe

Data Loading Testing Examples

Data loading testing might check that:

  1. There is no data loss or corruption during the loading process
  2. All transformations during loading work as expected
  3. Data sets in staging to loading destination work without data loss
  4. Incremental data loads work with change data capture
  5. Transaction audit logs and time stamping are recorded
  6. Loads are completed within the expected timeframe

What is DWH/BI Infrastructure Testing?

Several components of DWH development and test are not usually components of the ETL tool or stored procedures that may be used in the ETL process – therefore, testing these processes will be accomplished independent of ETL tests.

For example, this includes use of tools to profile data sources for format and content issues, checks for missing source data/records, DWH security, etc. These categories of testing can be considered “DWH infrastructure verifications.”

“DWH/BI infrastructure” generally consists of:

  • Hardware components including storage and memory
  • Operating systems
  • Utilities that support ETLs and BI applications
  • Change data capture (CDC) operations
  • Network and network software
  • OLTP databases
  • Data cleansing tools
  • Metadata application servers
  • OLAP data for BI reports
  • Automated testing tools
  • The database management systems (DBMSs)
  • …more

DWH/BI infrastructure components must be tested for (among other things) scalability, security, reliability, and performance (e.g., with load and stress tests). DWH/BI infrastructure as a whole supports data warehouse data movement as shown in Figure 2.

 

Data warehouse data movement graphic

Figure 2: The data warehouse infrastructure supports all DWH, ETL, and BI Functions

Data warehouse infrastructure basically supports a data warehousing environment with the aid of many technologies.

What is BI Application/Report Testing?

Front-end BI applications are often desktop, web, and/or mobile applications and reports. They include analysis and decision support tools, and online analytical processing (OLAP) report generators. These applications make it easy for end-users to construct complex queries for requesting information from data warehouses—without requiring sophisticated programming skills.

End user reporting is a major component of any business intelligence project. The report code may execute aggregate SQL queries against the data stored in data marts and/or the operational DW tables, then display results in the required format (either in a web browser or on a client application interface).

For each type of report, there are several types of tests to be considered:

  • Verify cross-field and cross report values
  • Verify cross-references within reports
  • Verify initialization of reports
  • Verify input from user options and related output
  • Verify SQL queries used to extract data for reports
  • Verify internal and user-defined sorts
  • Verify that there are no invalid data report fields
  • Verify maximum and minimum field values
  • Verify valid merging of data
  • … much more

Test Categories for DWH, ETL and BI Report Testing

The following graphic lists categories of tests that should be considered for DWH and BI report testing. From this list, those planning DWH/ETL/BI tests can select and prioritized the types of testing they will/should perform during each phase of testing during a project.

DWH and BI report testing categories graphic

[See Full-Sized Graphic]

Author:

Wayne Yaddow

Data migration / integration / ETL consultant

Date: Oct. 29, 2018

Related resources