Skip to main content

createCase

client.autoTesting.createCase(data: CreateTestCaseRequest): Promise<TestCase>

Creates a new test case.

Defines an individual test scenario with steps, expected outcomes, and validation criteria.

Parameters​

ParameterTypeRequiredDescription
dataCreateTestCaseRequestYesThe test case creation payload

Returns​

Promise<TestCase> — A promise that resolves to the newly created TestCase

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.autoTesting.createCase(/* CreateTestCaseRequest */);
console.log(result);