Skip to main content

Test Cases

A Test Case is an instance of a test definition applied to a specific table or column with concrete parameter values. Test cases produce test results when executed.
A test case links a test definition (the validation logic) to a specific entity (table or column) via an entity link, with parameter values that configure the check.
Test cases reference their target entity using an entity link string:
LevelFormatExample
Table<#E::table::tableFQN><#E::table::sample_data.ecommerce_db.shopify.dim_address>
Column<#E::table::tableFQN::columns::colName><#E::table::sample_data.ecommerce_db.shopify.dim_address::columns::shop_id>

Fully Qualified Name

The FQN format for a test case depends on the level:
# Table-level test case
sample_data.ecommerce_db.shopify.dim_address.testCaseName

# Column-level test case
sample_data.ecommerce_db.shopify.dim_address.shop_id.testCaseName

Test Case Lifecycle

  1. Create — Define a test case with a test definition, entity link, and parameter values.
  2. Execute — The test case runs (via a test suite execution or manually) and produces a result.
  3. Review — View test results with status (Success, Failed, Aborted) and result values.

API Endpoints

MethodEndpointDescription
POST/v1/dataQuality/testCasesCreate a test case
GET/v1/dataQuality/testCasesList test cases
GET/v1/dataQuality/testCases/{id}Get by ID
GET/v1/dataQuality/testCases/name/{fqn}Get by FQN
PATCH/v1/dataQuality/testCases/{id}Update by ID
DELETE/v1/dataQuality/testCases/{id}Delete by ID
GET/v1/dataQuality/testCases/{id}/versionsList versions
GET/v1/dataQuality/testCases/{id}/testCaseResultGet test results
PUT/v1/dataQuality/testCases/{id}/testCaseResultAdd test result