Data Warehousing and Data Science

7 July 2010

Top 10 Tips: Cube Testing

Filed under: Analysis Services — Vincent Rainardi @ 10:21 pm
  1. Make sure that the high level totals are correct. Test double counting. Randomly sample the “leaf level data”, comparing it with the operational system. Accuracy is the most important thing in cube testing.
  2. Give your cube to 3 key users for functionality testing. They understand the business more than you, and it’s them who will be using the cube, not you. Choose users who are familiar with both the BI tool and the data.
  3. To test the query performance, submit complex queries with sub totals, with many attributes in rows/columns/background. Warm cache. Obtain execution duration using Profiler. Consider a) tailoring the aggregations to improve slow queries, b) having snapshot fact tables in DW to support cube performance, c) moving the large attributes into the same dimension.
  4. Stress test using VS Team Suite. It simulates many users querying the cubes simultaneously.  Lower cost alternative is to create an ADOMD app that submits MDX queries.
  5. For BAU change requests, e.g. additional attributes, compare the changed cube in UAT with the Prod cube. Verify that they produce the same high level numbers.
  6. Test processing the cube and time it. If you use a scheduler software use it in testing. If the cube processing is monitored, check that the alert is working. If you do dimension process update + cube process default, check that a) you don’t miss any dimension, b) no issue with collation (upper/lower case) when the data is updated, and c) query performance is good. Using incremental processing could half the processing time.
  7. If you have proactive cache, test the response lead time by changing the underlying source data that is being monitored. If it’s schedule polling the lead time should match the polling interval.
  8. Test the calculated measures, named sets and scoping assignments by random sampling of a few cases with different data nature. Compare with manual calculation.
  9. Test the actions (URLs, reports, drillthrough). Make sure they open the correct URL/reports and provide the correct drillthrough numbers. Also test KPIs.
  10. Test the security. Use white box method. On SSMS, access the cube as different users, check if they can only see the dimensions and members they are allowed to see. Also test from the BI tool, using a test domain account, included as a member of the cube role.

There is very little public information about cube testing. I told my colleague he could write a book about cube testing as the gap is too big. Gap between need and supply I mean. The only ref I found is Thomas Ivarsson’s. Hope this top 10 tips help fills the gap. I’m aware that cube testing is a subject where different people has different opinions.

As usual I welcome any comments and questions at

1 Comment »

  1. good

    Comment by salam — 26 August 2013 @ 5:55 am | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: