Data Warehouse Testing Solutions

Increasingly, businesses are focusing on the collection and organization of data for strategic decision-making. The ability to review historical trends and monitor near real-time operational data has become a key competitive advantage. SQA Solution provides practical recommendations for testing extract, transform, and load (ETL) applications based on years of experience testing data warehouses in the financial services and consumer retailing areas.

Request a Quote

Increasingly, businesses are focusing on the collection and organization of data for strategic decision-making. The ability to review historical trends and monitor near real-time operational data has become a key competitive advantage. SQA Solution provides practical recommendations for testing extract, transform, and load (ETL) applications based on years of experience testing data warehouses in the financial services and consumer retailing areas.

There is a significantly escalating cost connected with discovering software defects later on in the development lifecycle. In data warehousing, this can be worsened due to the added expense of utilizing incorrect data in making important business decisions. Given the importance of early detection of software defects, here are some general goals of testing an ETL application:

  • Data completeness. Ensures that all expected data is loaded.
  • Data transformation. Ensures that all data is transformed correctly according to business rules and/or design specifications.
  • Data quality. Makes sure that the ETL software accurately rejects, substitutes default values, fixes or disregards, and reports incorrect data.
  • Scalability and performance. Makes sure that data loads and queries are executed within anticipated time frames and that the technical design is scalable.
  • Integration testing. Ensures that the ETL process functions well with other upstream and downstream processes.
  • User-acceptance testing. Makes sure that the solution satisfies your current expectations and anticipates your future expectations.
  • Regression testing. Makes sure that current functionality stays intact whenever new code is released.

Data Completeness

One of the most basic tests of data completeness is to verify that all data loads correctly into the data warehouse. This includes validating that all records, fields, and the full contents of each field are loaded. Strategies to consider include:

  • Comparing record counts between source data, data loaded to the warehouse, and rejected records.
  • Comparing unique values of key fields between source data and data loaded to the warehouse. This is a valuable technique that points out a variety of possible data errors without doing a full validation on all fields.
  • Utilizing a data profiling tool that shows the range and value distributions of fields in a data set. This can be employed during testing and in production to compare source and target data sets and point out any data anomalies from source systems that may be missed even when the data movement is correct.
  • Populating the entire contents of every field to verify that no truncation takes place during any step in the procedure. For example, if the source data field is a string(30) ensure it is tested with 30 characters.
  • Testing the boundaries of each field to find any database limitations. For example, for a decimal(3) field include values of -99 and 999, and for date fields include the entire range of dates expected. Depending on the type of database and how it is indexed, it is possible that the range of values the database accepts may be too small.

Data Transformation

Validating that data is modified properly according to business rules is the most intricate component of testing an ETL application with considerable transformation logic. One technique is to select several sample records and “stare and compare” to verify data transformations manually. This is often beneficial but calls for manual testing steps and testers who understand the ETL logic. A combination of automated data profiling and automated data movement validations is a better long-term strategy. Here are some simple automated data movement techniques:

  • Create a spreadsheet of scenarios of input data and expected results and validate these with the business customer. This is an excellent requirements elicitation step during design and could also be used as part of testing.
  • Create test data that includes all scenarios. Utilize an ETL developer to automate the entire process of populating data sets with the scenario spreadsheet to permit versatility and mobility for the reason that scenarios are likely to change.
  • Utilize data profiling results to compare range and submission of values in each field between target and source data.
  • Validate accurate processing of ETL-generated fields; for example, surrogate keys.
  • Validate that the data types within the warehouse are the same as specified in the data model or design.
  • Create data scenarios between tables that test referential integrity.
  • Validate parent-to-child relationships in the data. Create data scenarios that test the management of orphaned child records.

Data Quality

SQA Solution defines data quality as “how the ETL system deals with data rejection, replacement, correction, and notification without changing any of the data.” To achieve success in testing data quality, we incorporate many data scenarios. Typically, data quality rules are defined during design, for example:

  • Reject the record if a certain decimal field has non-numeric data.
  • Substitute null if a certain decimal field has non-numeric data.
  • Validate and correct the state field if necessary based on the ZIP code.
  • Compare the product code to values in a lookup table. If there is no match, load anyway; however, report this to our clients.

Depending upon the data quality rules of the software we are testing, specific scenarios to test could involve duplicate records, null key values, or invalid data types. Review the detailed test scenarios with business clients and technical designers to ensure that all are on the same page. Data quality rules applied to the data will usually be invisible to the users once the application is in production; users will only see what’s loaded into the database. For this reason, it is important to ensure that what is done with invalid data is reported to the clients. Our data quality reports provide beneficial information that in some cases uncovers systematic issues with the source data itself. At times, it may be beneficial to populate the “before” data in the database for clients to view.

Scalability and Performance

As the amount of data in a data warehouse increases, ETL load times may also increase. Consequently, the efficiency of queries should be expected to decline. This could be mitigated by using a sound technical architecture and excellent ETL design. The goal of performance testing is to uncover any potential problems in the ETL design. The following strategies will help discover performance issues:

  • Load the database with maximum anticipated production volumes to make certain this amount of data can be loaded by the ETL process in the agreed-upon timeframe.
  • Compare these ETL loading times to loading times conducted with a reduced amount of data to anticipate possible issues with scalability.
  • Compare the ETL processing times component by component to indicate any regions of weakness.
  • Monitor the timing of the reject process and consider how large volumes of rejected data will be handled.
  • Perform simple and multiple join queries to validate query performance on large database volumes.
  • Work together with business clients to formulate test queries and overall performance requirements for every query.

Integration Testing

Typically, system testing only includes testing within the ETL application. The input and output of the ETL code constitute the endpoints for the system being tested. Integration testing demonstrates the way the software fits into the general flow of all upstream and downstream applications.

When designing integration test scenarios, we take into account how the overall process could possibly break. Subsequently, we focus on touch points between applications instead of within a single application. We take into account how process breakdowns at each and every step would be managed and how data would be restored or deleted if required.

Most difficulties discovered in the course of integration testing result from incorrect assumptions about the design of another application. Therefore, it is important to integrate tests with production-like data. Real production data is ideal, but depending on the contents of the data, there could be privacy or security concerns that require certain fields to be randomized before using it in a test environment.

As always, don’t forget the importance of good communication between the testing and design teams of all systems involved. To bridge this communication gap, it’s a good idea to bring team members from all systems together to help create test scenarios and talk about what might go wrong in production. Perform the complete process from start to finish in the exact same order and use the same dependencies, just as you would in production. Ideally, integration testing is a combined effort and not the sole responsibility of the team testing the ETL application via Data Warehouse Testing.

Some of our clients
client client client client client client client
Case Studies
SQA Solution's Approach to 21 CFR Part 11 Compliance in a Global Healthcare Corporation

A global healthcare corporation faced significant challenges in complying with 21 CFR Part 11, especially section 11.10

    Strategic SOP Development for Enhanced Infrastructure and Compliance for BioPharma

    Developing comprehensive SOPs in a biopharmaceutical context is fundamental for ensuring regulatory compliance, and maintaining high standards of quality and safety …

      What Our Clients Say

      SQA Solution and I have partnered on several roles within our Engineering group over the last year. She has been incredibly supportive of our growth strategy and has presented candidates that we’re highly experienced and qualified. I like to say that Katherine never wastes our time. She is a skilled recruiter and has a great balance in working with and for both the company and candidate.

      user photo
      Beth-Anne Sama
      Head of People at Jupiter Intelligence SHRM-SCP

      Alina with SQA Solution was a fantastic recruiter! Alina was very responsive to my emails and provided consistent updates throughout the interview and on-boarding process with Roche. I am grateful for Alina’s guidance and it is thanks to her that I am now a Project Coordinator for Roche Molecular Solutions. I would recommend anyone looking for a job to contact Alina!

      user photo
      Garrett Tom
      Project Manager II, PMO - Roche Molecular Solutions

      My favorite thing about Stan is that he is a great person, as well as a highly-skilled recruiter. So many other staffing agencies that I had contacted really made me feel like I was a handful of cooked spaghetti (a job seeker) to be thrown at the nearest wall (job req) they had around. I never got that impression from Stan.

      So of course he’s intelligent, and resourceful, and very savvy about the art of getting a candidate hired. He’s also creative, and enthusiastic, and he enjoys a good laugh. I respect his talents, and he’s likeable too. That’s an impressive combination!

      user photo
      Kimberly Dolim
      Research Scientist in Molecular Biology

      It is my pleasure to recommend Julia and SQA Solution as I’ve had the pleasure of partnering with her over the past on a variety of difference IT related contract/CTH opportunities. During her time with SQA Julia’s ability to juggle multiple job orders is refreshing and has made a dramatic difference in the productivity level of our partnership. She has the patience, organization and the ability to determine the job seekers needs as well as a client’s needs. She provided excellent customer service and also understood my background and gave me the opportunity to work with her. I wish her much success now and in the future

      user photo
      Lakhan Rajput
      Director/Co Founder at Skill Bird
      Seeking Top-Tier Testing Talent?
      Let's Discuss Your Project!