Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. Repositories
  4. XML Data Source
  5. Tests for XML Data Sources
  6. Connections
  7. Expressions
  8. Table Pairs
  9. Tests for Table Pairs
  10. Single-Table Constraints
  11. Tests for Single-Table Constraints
  12. Examples of Tests from Spreadsheets
  13. SQL Views
  14. Lookup Views
  15. Join Views
  16. Aggregate Views
  17. Business Intelligence and Reporting Tools Reports
  18. Dashboards
  19. DVOCmd Command Line Program
  20. Troubleshooting
  21. Appendix A: Datatype Reference
  22. Appendix B: Reporting Views
  23. Appendix C: Metadata Import Syntax
  24. Appendix D: Jasper Reports
  25. Appendix E: 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.

0 COMMENTS

We’d like to hear from you!