Get trial

English

Automated Data Warehouse Testing with AnalyticsCreator

AnalyticsCreator allows developers to create and execute data warehouse test cases by defining sample input data and expected results. Tests are executed through SQL stored procedures, with differences between expected and actual data recorded in execution logs. Multiple tests can be run together, and test procedures can be included selectively during synchronisation and deployment.
Duration: 13:35 Level: intermediate Platform: AnalyticsCreator, Microsoft SQL Server For: Data Engineers, BI Developers, Data Warehouse Architects, QA Teams

Questions Answered

  • How can I create automated test cases in AnalyticsCreator?
  • How are input data and expected results defined for data warehouse testing?
  • How does AnalyticsCreator detect differences between expected and actual data?
  • Can multiple data warehouse test cases be executed together?
  • How can sample test data be generated using iterators and variables?
Platform shown AnalyticsCreator
Related tooling SQL Server, Northwind Sample Database, SQL Stored Procedures

Key takeaways

  • Integrated test case management: Test cases are defined and maintained within the AnalyticsCreator data warehouse project.
  • Controlled test input: Developers can create representative input datasets for selected import tables.
  • Expected result validation: Test cases compare defined expected results with the actual data generated by warehouse processing.
  • Detailed difference analysis: Mismatched values and unexpected rows can be identified for investigation.
  • Execution history: Test runs are recorded in logs, allowing developers to review previous outcomes.
  • Multiple test execution: Several test cases can be selected and executed together.
  • Generated test data: Iterators and variables support the creation of multiple sample records without defining each row manually.
  • Stored procedure execution: Test cases are implemented through SQL stored procedures, allowing execution from AnalyticsCreator or through external SQL execution workflows.
  • Deployment control: Test procedures can be included selectively during synchronisation and deployment, supporting dedicated development and testing environments.
  • Repeatable validation: Saved test cases can be rerun after changes to transformation logic or data warehouse structures.

Transcript

I will present the new test functionality of AnalyticsCreator.

You can create different test cases and use them to test your data warehouse model.

Here you can see the data warehouse model. In this model, I created one test case, which you can see here.

This test case contains input data, which is the data for some import tables, and expected data, which is the data we expect to have after all data processing is finished.

Therefore, we define input data, we define expected data, then we execute the data processing and compare the expected data with the actual data after processing.