main-concepts

No menu items for this category
OpenMetadata Documentation

TestCase

Test case is a test definition to capture data quality tests against tables, columns, and other data assets.

  • id: Unique identifier of this table instance. Refer to ../type/basic.json#/definitions/uuid.
  • name: Name that identifies this test case. Refer to ../type/basic.json#/definitions/testCaseEntityName.
  • displayName (string): Display Name that identifies this test.
  • fullyQualifiedName: FullyQualifiedName same as name. Refer to ../type/basic.json#/definitions/fullyQualifiedEntityName.
  • description: Description of the testcase. Refer to ../type/basic.json#/definitions/markdown.
  • testDefinition: Test definition that this test case is based on. Refer to ../type/entityReference.json.
  • entityLink: Link to the entity that this test case is testing. Refer to ../type/basic.json#/definitions/entityLink.
  • entityFQN (string)
  • testSuite: Basic Test Suite that this test case belongs to. Refer to ../type/entityReference.json.
  • testSuites (array): Basic and Logical Test Suites this test case belongs to.
    • Items: Refer to ./testSuite.json.
  • parameterValues (array)
    • Items: Refer to #/definitions/testCaseParameterValue.
  • testCaseResult: Latest test case result obtained for this test case. Refer to ./basic.json#/definitions/testCaseResult.
  • testCaseStatus: Status of Test Case run. Refer to ./basic.json#/definitions/testCaseStatus.
  • version: Metadata version of the entity. Refer to ../type/entityHistory.json#/definitions/entityVersion.
  • owners: Owners of this Pipeline. Refer to ../type/entityReferenceList.json. Default: None.
  • createdBy (string): User who made the update.
  • updatedAt: Last update time corresponding to the new version of the entity in Unix epoch time milliseconds. Refer to ../type/basic.json#/definitions/timestamp.
  • updatedBy (string): User who made the update.
  • href: Link to the resource corresponding to this entity. Refer to ../type/basic.json#/definitions/href.
  • changeDescription: Change that lead to this version of the entity. Refer to ../type/entityHistory.json#/definitions/changeDescription.
  • incrementalChangeDescription: Change that lead to this version of the entity. Refer to ../type/entityHistory.json#/definitions/changeDescription.
  • deleted (boolean): When true indicates the entity has been soft deleted. Default: False.
  • computePassedFailedRowCount (boolean): Compute the passed and failed row count for the test case. Default: False.
  • incidentId: Reference to an ongoing Incident ID (stateId) for this test case. Refer to ../type/basic.json#/definitions/uuid.
  • failedRowsSample: Sample of failed rows for this test case. Refer to ../entity/data/table.json#/definitions/tableData.
  • inspectionQuery: SQL query to retrieve the failed rows for this test case. Refer to ../type/basic.json#/definitions/sqlQuery.
  • domains: Domains the test case belongs to. When not set, the test case inherits the domain from the table it belongs to. Refer to ../type/entityReferenceList.json.
  • useDynamicAssertion (boolean): If the test definition supports it, use dynamic assertion to evaluate the test case. Default: False.
  • tags (array): Tags for this test case. This is an inherited field from the parent entity and is not set directly on the test case. Default: [].
    • Items: Refer to ../type/tagLabel.json.
  • testCaseParameterValue (object): This schema defines the parameter values that can be passed for a Test Case.
    • name (string): name of the parameter. Must match the parameter names in testCaseParameterDefinition.
    • value (string): value to be passed for the Parameters. These are input from Users. We capture this in string and convert during the runtime.

Documentation file automatically generated at 2025-08-12 05:39:47.683420+00:00.