Testing for DW/Bi-Current State and a peep into the future

Source: Internet
Author: User

Testing for DW/Bi-Current State and a peep into the future
By Arun sundararaman
Published July 17,200 7

Summary:This article discusses the various aspects associated with testing for data warehouses and business intelligence.

Just as with any other software application involving different technologies (such as the mainframe, Java or Microsoft ), testing is a very crucial phase in the software development lifecycle for Data Warehouse/Business Intelligence (DW/Bi) projects. testing for DW/Bi carries unique challenges and requires specialized approaches. however, the testing function for this highly dynamic technology area is at a very nascent stage of maturity. this article discusses the various aspects associated with testing for DW/Bi.

Testing for DW/Bi

Why and how is testing for DW/Bi different from testing for other technologies? Part of the answer lies in definition of what constitutes DW/Bi.

BI may be defined as "the result of in-depth analysis of detailed business data; between des database and application technologies as well as analysis practices. "1 Bi is a broad category of application programs and technologies for gathering, storing, analyzing and providing access to data to help enterprise users make better business decisions.

A dw is a collection of data designed to support management demo-making. according to Bill inmon, a DW is a "subject-oriented, integrated, time-variant, nonvolatile collection of data in support of demo-- making. "DWS tend to have these distinguishing features:

    • Use a subject-oriented dimen1_data model,
    • Contain publishable data from potentially multiple sources, and
    • Contain integrated reporting tools.

A typical DW/Bi project can be viewed as comprising two broad components: Constructing the DW using extract, transform, load (ETL) technologies and presenting of the same for analysis purposes with Online Analytical Processing (OLAP) technologies.

 

Figure 1: DW/Bi project components

The success of a DW/Bi program lies in meeting its key objective of ensuring data accuracy (DW construction) and providing a single version of the truth through flexibility in analysis/reporting (presentation ). this presentation layer is often extended by features such as flexibility and enhanced visualization.

It is a common best practice for any DW/Bi initiative to define the level of data accuracy expected (also known as tolerance level) from the dw; needless to say, this varies from application to application. for example, in a DW for sales analysis, accuracy of approximately 95 percent is acceptable; whereas, in the case of a DW for fraud analysis in a stock exchange, the accuracy levels expected cocould be higher than 99 percent.

It is pertinent to note here that any testing activity has to be focused on the program's key objective and ensuring that this objective is met by the application. in order to achieve these critical success factors (e.g ., data accuracy and consistency in reporting/analysis), data in a typical DW architecture passes through several steps of structured lidation.

Figure 2: Data Validation lidation in a DW Architecture

Data passes through several processes of church startup ss the varous layers depicted in figure 2. the root cause for data inconsistency and/or inaccuracy can occur in any of these layers, resulting in an adverse impact to the program's primary objective. examples of data errors include:

    • Large Volume of duplicate data or incomplete data extracted from source systems
    • Incorrect cleansing (e.g., use of incorrect codes)
    • Incorrect aggregation techniques resulting either in the Cartesian Product or data being dropped due to incorrect join conditions
    • Incorrect mapping of dimensions in the cube
    • Combination of any or all of the above.

Unlike other applications where testing is focused on user interfaces, due to the criticality of data, multiple phases of data transformation and potential areas for introduction of data consistency or accuracy issues, testing for DW/Bi has to be more detail-oriented; moreover, it callfor a thorough understanding of ETL and OLAP concepts and the underlying technologies on the part of the testers.

Challenges

There are running challenges to the development of the specialized skills required for DW/Bi testing:

  • unwillingness on the part of DW developers. Any IT professional planning to build a career in this exciting field aims to be an expert ETL developer, OLAP specialist, dimen1_data modeler or dw effecect; DW tester doesn' t even make the list of desirable roles. this is true, by and large, of specified sionals within ss the globe and not necessarily a local factor applicable only to certain countries. the general perception that only such roles carry premium rates in the job/Consulting Market (and worse, sometimes a perception that only such roles get to face the technical challenges associated with a DW/Bi project ), has left the DW/Bi project team with very few takers for the challenging and critical role of tester.
  • lack of awareness. As a general practice, testers plan their career in such a way that they specialize and equip themselves with technical skills for the tools involved in test execution (e.g ., winrunner, silktest) and/or test management (e.g ., qualitycenter), with very little endeavor to develop skills in the underlying technology. A good understanding of ETL/OLAP tools and technologies is an essential skill for DW/Bi testing and, so far, testers have not developed a keen interest in this skill.
  • absence of tools. the DW/Bi marketplace is flooded with logging tools and vendors, each attempting to replace the other in the three layers of DW/bi: database, ETL and OLAP. there are no popular ETL/OLAP testing tools in the market that offer features for automated testing or functional testing. in the absence of such tools, it is highly impractical to achieve tool-based requirements traceability throughout the lifecycle or impact analysis. of course, some of the advanced ETL tools offer add-on products that provide insights into their metadata (e.g ., metastage) and provide impact analysis within the ETL function, but their usability for traceability is yet to be encoded ed.
  • Lack of standard approach/methodology.While standard methodologies exist for testing as a whole, there seems to be no industry-wide view on the suggested approach and/or methodology for DW/Bi testing. an ideal methodology shocould include a test strategy, a test plan and test cases that cover thorough testing of the varous phases of data movement (see Figure 2 .) creating Test Cases and test data that provide adequate coverage to each of the phases is very critical for ensuring a comprehensive quality assurance (QA) of the DW. A sample/suggested template to track data as it progresses through the phases is given in figure 3.

Figure 3: Test Case Tracking template

Expectations from the IT industry

Listed below are some initiatives that can provide the much-needed boost to this critical function.

    • promote awareness within the DW community that DW/Bi testing is a challenging Proposition requiring highly valued skills, thereby encouraging ETL and Bi developers to assume these roles. moreover, leading IT players with extensive experience in the DW/Bi area shocould promote well-defined career options and career progression plans to the ETL/OLAP developers and conventional testers.
    • invest in research to formalize methodologies covering the entire spectrum of DW/Bi testing in full detail.
    • invest in building assets, tools and Job aids to strengthen this function and provide productivity gains.
    • Develop training courses and course content to cross-train ETL/OLAP developers in testing nuances and testers in DW and ETL/OLAP tools and technology concepts.
    • build strong testing teams with complimentary skills.
Suggested Framework

It is essential to define a framework that carries the extent, scope and approach to DW/Bi testing. Figure 4 depicts a suggested framework.

Figure 4: a dw/Bi testing framework

The figure 4 Framework wocould be comprised of assets/job aids that facilitate efficient planning and execution of DW/Bi testing, such:

    • SQL queries against source and target databases (varying)
    • SQL queries to compare data at each stage of transformation (varying)
    • Custom-built, reusable test utilities (e.g., Excel macros) to populate data from source systems and reports, automate comparison and flash data errors. Such utilities have the following advantages:
      • Operation in human errors of omission in identifying data mismatches.
      • Productivity enhancement
      • Reusability into SS different stages and objects
    • Templates to track defects/test results (sample given in figure 3)
    • Test artifacts-test strategy, test plan and test cases; A common and largely re-usable templates of these documents can prove handy in gaining speed in initiating testing for new functional areas/reports/projects.
Future Expectations

In its current state, the DW/Bi landscape is flooded with limit small, medium and large tool vendors, each claiming to provide the best technology and/or solution for end-to-end DW/Bi implementation. with a few exceptions (e.g ., SAS in analytics, abinitio in ETL), tool vendors lack sight of the need for specialization in the three specific layers of DW/Bi (e.g ., database, ETL and OLAP ). as a result, every vendor is trying a combination of strategies-mergers and acquisitions or expanding into other territories, to gain space into every spectrum of DW/Bi. coupled with this, there is a sheer lack of standards and inter-changeability in the use of metadata, underlying ETL code or OLAP definitions.

The common warehouse metamodel (CWM) is a specification that describes metadata interchange among data warehousing, business intelligence, knowledge management and portal definition ies.2

However, the CWM is far from adoption, in the real and true sense, by any of the popular tool vendors. use of an industry-standard metadata format and its exchange between SS different specified tural layers is extremely restricted; it is best achieved only within the specific family of tools from the same vendor.

The above challenges have also contributed to factors such:

    • Absence of any independent tool vendor venturing to build and offer DW testing tools.
    • Lack of standards (Metadata Exchange) that do not encourage leading testing tool vendors (e.g., Mercury Interactive) to foray into this space.
    • Even the existing pure ETL/Bi tool vendors have been focused only on loading lidation and/or entry into either of the areas, without focusing on the need to build testing tools.

however, the market is expected to witness, in the next couple of years, A large compliance lidation exercise likely to leave a handful of large technology players offering end-to-end technical solutions. such a validation lidation is expected to facilitate adoption of metadata standards and also bring about the much-needed focus on developing complementary tools and technologies, the most critical of them being tools for DW/Bi testing, independent of the vendor/ETL/OLAP tools. such development is also likely to spin off parallel thoughts among the IT services providers; large IT services firms are expected to focus their innovation in evolving DW/Bi testing methodologies and best practices, leveraging the use of these tools.

In summary, the criticality and importance of DW/Bi testing can never be overemphasized. testing for DW/Bi is a niche skill that demands a good blend of ETL/OLAP technical skills (or the least a good understanding of them) and thorough testing skills. unlike other technologies, there are no tools currently available that can be used for DW/Bi testing. in the absence of such tools, it is essential to define and develop a framework for DW/Bi testing that comprehensively covers the varous layers and stages of data transformation. it services firms need to encourage their work force to adopt this as a preferred skill and promote ways to advance these skills. consolidation of ETL/OLAP tool vendors cocould prove to be the beginning for development of DW/Bi testing tools.

References:

1. http://it.csumb.edu/departments/data/glossary.html

2. http://www.omg.org/technology/cwm/

Arun sundararaman is a leading practitioner of data warehousing and has been managing large, enterprise DW projects involving design, development and Implementation for clients in different industries in the US and the UK for the past seven years. he currently leads the healthcare payer informatics capability at Accenture, Chennai, and can be contactedArun.sundararaman@accenture.com.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.