Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. New Features and Behavior Changes
  4. Repositories
  5. XML Data Source
  6. Tests for XML Data Sources
  7. Connections
  8. Expressions
  9. Table Pairs
  10. Tests for Table Pairs
  11. Single-Table Constraints
  12. Tests for Single-Table Constraints
  13. Examples of Tests from Spreadsheets
  14. SQL Views
  15. Lookup Views
  16. Join Views
  17. Aggregate Views
  18. Business Intelligence and Reporting Tools Reports
  19. Dashboards
  20. DVOCmd Command Line Program
  21. Troubleshooting
  22. Datatype Reference
  23. Reporting Views
  24. Metadata Import Syntax
  25. Jasper Reports
  26. Glossary

Data Validation Option User Guide

Data Validation Option User Guide

Test Generation for a Table Pair from a Spreadsheet

Test Generation for a Table Pair from a Spreadsheet

You can generate tests for a table pair from a spreadsheet. Use a spreadsheet to define and generate all types of tests, including MIN, AVG, and SET_AinB.
You might also use a spreadsheet to define tests if you want to work offline. Or, you might use a spreadsheet to define tests if you are not a Data Validation Option user. For example, business analysts might need to create the test definitions because they are more familiar with the data.
To generate tests from a spreadsheet, compete the following steps:
  1. Export existing table-pair tests.
  2. Add tests to the spreadsheet.
  3. Import the tests from the spreadsheet.
  4. Resolve tests with errors.
Export table-pair tests to generate a spreadsheet that contains column headers, test metadata, and column metadata. If the table pair already has tests defined, the spreadsheet also contains existing test definitions.
You can find a spreadsheet template in the following Data Validation Option installation directory:
<Data Validation Option installation directory>\samples\TablePair-template.xlsx
After you generate the spreadsheet, you can add tests to the spreadsheet. For each test, enter the test properties in the spreadsheet. The spreadsheet contains restricted values for particular test properties based on the column and test metadata.
You can then import the tests from the spreadsheet into Data Validation Option. When you import tests from a spreadsheet, Data Validation Option lists and validates the test definitions, and shows any errors. For example, an error appears if you use the approximate operator on a string column in a test definition. You cannot apply the approximate operator on string columns. You must resolve the errors or remove the test before you can import the test definitions. To resolve errors, edit the test definition.
Data Validation Option generates a new test for each test definition specified in the spreadsheet. If you import a test that already exists, Data Validation Option generates a duplicate version of the test. Data Validation Option does not update existing tests or remove tests when you import tests from a spreadsheet.