Skip to main content
Version: 4.7.34

Test cases - Get

Get a single test case for a given pipeline with getTestCase().

Example

typescript
const testCase = await getTestCase('0d180ab3-64b4-48e5-8e99-6e5a62303de3 ');
 
console.log('Case: ', testCase.name, testCase.id);

Arguments

id: string (UUID format)

Return value

Returns TestCase.

🛠️ TestCase

The TestCase type represents the structure of a test case. Below are the fields of the TestCase type.

id: string (UUID)

createdAt: string (ISO 8601)

archivedAt?: string (ISO 8601)

updatedAt: string (ISO 8601)

expectedOutputs?: object An object representing the expected outputs for the test case.

inputs: object An object containing input data for the test case.

name: string

pipelineId: string (UUID)

datasetId: string (UUID)