Skip to main content
Version: 4.7.14

Test cases - Update

Update a single test case with updateTestCase().

Example

typescript
const caseId = await updateTestCase({
id: "550e8400-e29b-41d4-a716-446655440000",
name: "New test case name",
})
 
console.log("Case ID: ", caseId);

Arguments

payload

The payload argument is a JavaScript payload of the new test case payload (type UpdateTestCase).

info

The payload is merged with the existing test case payload. This means that you can update a single field of the test case without specifying the entire test case payload.

Return value

caseId: str (UUID)

Types

🛠️ UpdateTestCase

This type defines the structure for updating the properties of an existing test case. Below are the fields of the UpdateTestCase type.

id: string (UUID)

name: string

inputs?: object

expectedOutputs?: object

archived?: boolean