






















Testing for DW/BI - Current State and a Peep into the Future
Published July 17, 2007
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.
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; includes 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 decision-making. According to Bill Inmon, a DW is a "subject-oriented, integrated, time-variant, nonvolatile collection of data in support of decision-making." DWs tend to have these distinguishing features:

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 could 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 consolidation.

Figure 2: Data Consolidation in a DW Architecture
Data passes through several processes of churning across the various 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:
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 calls for a thorough understanding of ETL and OLAP concepts and the underlying technologies on the part of the testers.
There are many challenges to the development of the specialized skills required for DW/BI testing:

Figure 3: Test Case Tracking Template
Listed below are some initiatives that can provide the much-needed boost to this critical function.
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 would be comprised of assets/job aids that facilitate efficient planning and execution of DW/BI testing, such as:
In its current state, the DW/BI landscape is flooded with many 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 technologies.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 across different architectural 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 as:
However, the market is expected to witness, in the next couple of years, a large consolidation exercise likely to leave a handful of large technology players offering end-to-end technical solutions. Such a consolidation 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 intellectual 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 various 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 could 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 contacted at arun.sundararaman@accenture.com.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。