Add Quick Tests from the Catalog

Prev Next

To add a test to a table or column from the Catalog, open the object's Tests tab, click Add Test, pick a quick test in the Test Wizard, fill in its values, and click Create Tests. You can run the new test and add it to a scheduled job before you close the wizard.

This is the way to add tests without writing SQL. Someone who knows Validatar writes the check once; anyone with access to the table can apply it.

What a quick test is

A quick test is a template test that has been made available in the Catalog. When you add it to a table, Validatar adds that table to the template's list of objects and creates a child test for it. The new test is an ordinary child test: it lives in the template's project and child folder, runs on its own and keeps its own history.

A template test is offered as a quick test when all of these are true:

  • It is Metadata Driven and uses Select Objects, with Enable Adding from Catalog ticked. See Select Tables and Columns for a Template Test (Metadata Driven).
  • Its Target Object Type matches what you are looking at: Table quick tests appear for tables, Column quick tests for columns.
  • Its data source is the data source of the table or column, and that data source is in the template's project.
  • You have the Create Tests permission on the template's project.

If the wizard says No available templates found, no template meets those conditions for this object yet. To offer one, build a template test that meets them: see Create a Template Test.

Before you start

  • Create & Edit Tests on the data source of the table or column, and Create Tests on the project that holds the quick test.
  • To run the test from the wizard, Run Tests on the data source.
  • To add it to a schedule, a job in that project. See Create a Job.

Add a quick test

  1. Click Catalog in the top navigation and open the table, for example Wholesale Distribution System > Sales > Customers. To find a table fast, see Explore Tables and Columns in the Catalog.

  2. Open the Tests tab. For a column, open the column first, then its Tests tab.

    The Tests tab for the Orders table, with Add Test and Recommend Table Tests outlined

  3. Click Add Test. The Test Wizard opens on the Select step, under the heading What can we check for you?

  4. Narrow the list if it is long: type in the search box, or tick filters on the left under New or Update, Quality Dimensions and Projects.

  5. Click a quick test to select it. The card expands to show its description, Severity Level and Project.

  6. Click Next.

The Quality Dimensions filter is the quickest way to close a gap. If a table's trust score is low on completeness, tick Completeness to see only the checks that cover it.

Configure

The Configure step, headed Let's get the details:, shows what the quick test needs from you. Only the parts that apply appear.

  1. Under Test Variables, enter a value for each variable the test uses. A variable with a default shows the default in grey; tick Override Default to set your own value for this table.
  2. Under Table Metadata (or Column Metadata), fill in the catalog fields the test reads, such as an expected value stored on the table. When you are adding the test to several objects at once, tick the box next to each field you want to set on all of them. Tick Certify Custom Field Values to mark the values as certified.
  3. Click Next.

Values you enter under Table Metadata are saved on the table in the Catalog, not only in the test.

The confirmation page lists the tests the wizard will make, each with its Action: Add test for a new one, Update test where this table already has the quick test.

Click Create Tests (Create Test when there is only one).

Run

The Run step confirms what was done, for example "All set, 1 test created!".

  1. Click Run in the Preview column to try the test. The result appears in the row. A preview run is not saved to the test's history.
  2. Click Run All To Repository to run the tests and keep their results. Set how many run in parallel next to it.

If the test is not what you wanted, click Undo Test Creation before you close the wizard.

Schedule

  1. Click Schedule Tests.
  2. Pick a job. The list shows Scheduled Jobs by default; switch to All Jobs to see the rest.
  3. Under How should the tests be added?, choose how the steps are added when there is more than one.
  4. Tick Go to job after adding steps if you want to open the job afterwards.
  5. Click Add To Schedule.

Then click Close.

Check that it worked

  • The table's Tests tab lists the new test, with its latest result if you ran it.
  • In Projects, the test is in the quick test's project, in the folder the template puts its child tests in. Its page names the template it came from.
  • The template's Metadata Selection list now includes the table.

Add the same test to many tables

On a data source or schema page in the Catalog, select several rows in the Tables grid (or the Columns grid, also on a table page) and click Add Test. The wizard works the same way and creates one test per selected object. The card of a quick test that some of them already have says so, and selecting it updates those.

The arrow on that Add Test button also offers Create Template Test. It asks for a project and folder, then starts a new template test with the selected objects already in its list.

Get recommendations from Validatar AI

When Validatar AI is on (Validatar Cloud, beta, contact sales to enable), the Tests tab of a table also has Recommend Table Tests, and a column's has Recommend Column Tests. The button opens the AI panel with a request for test recommendations for this object already filled in. It does not send on its own: read it, send it, and review the suggestions before you ask the AI to create any of them.

Do it with Validatar AI (Validatar Cloud, beta). Open the AI panel and ask: "Which quick tests can I add to the Sales.Customers table in the Wholesale Distribution System? Add the ones for completeness." Review what it creates before you run it. You can undo the change from the chat history.

Troubleshooting

Symptom Cause Fix
Add Test is greyed out in a Tables or Columns grid No rows are selected, or you do not have Create & Edit Tests on this data source Select rows; ask a data source admin for the permission
No available templates found No template test meets the quick test conditions for this object Check the conditions above, or ask the person who maintains your template tests
A quick test you expected is missing Its project does not include this data source, its target type is the other level, or you do not have Create Tests on its project Add the data source to the project, or ask a project admin for the permission
The new test is not in the folder you expected Quick tests go where the template puts its child tests Open the template's Child Test Configuration tab to see the folder

Related