Test Case Results
Retrieve historical test case execution results and submit new test run outcomes with pass/fail status and metrics for data quality monitoring using the Collate REST API.
GET
GET /v1/dataQuality/testCases/testCaseResults/{fqn}
Test Case Results
Retrieve test case execution results or add new results programmatically. Each result includes a status, timestamp, and detailed result values.Get Test Case Results
Fully qualified name (FQN) returned when creating the test case. URL-encode it when necessary.
duration, the time the run took in milliseconds, and, for a run that an error aborted, errorDetails. See Add a Test Case Result for both fields.
Add a Test Case Result
UsePOST /v1/dataQuality/testCases/testCaseResults/{fqn} to add a new test result.
Fully qualified name (FQN) returned when creating the test case. URL-encode it when necessary.
Body Parameters
Details of the error that aborted the run. Collate shows them in the Execution error section of the Run Details card.
GET /v1/dataQuality/testCases/testCaseResults/{fqn}
Returns
Get results returns a list of test case result objects for the requested FQN and time range. Add result returns the test case result object that was created.Response
Delete a Test Case Result
UseDELETE /v1/dataQuality/testCases/testCaseResults/{fqn}/{timestamp} to delete a single test case result. fqn is the test case’s fully qualified name and timestamp is the result’s timestamp in milliseconds. The request returns the updated test case.
The caller needs Delete on either the table the test case belongs to or the test case itself. Callers with neither permission receive 403.