deleteTestCase

Deletes a test case from the project based on number or summary. You can also delete all related test runs. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
testCaseNumber long Number of the test case to delete. Set as 0 to search by summary.
summary string Summary of the test case to delete. If the summary matches more than one test case, the operation fails. This field is ignored unless testCaseNumber is 0.
bDeleteAssociatedTestRuns boolean Indicates if all related test runs should be deleted.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

ttsdk.deleteTestCase(cookie, 0, "Test case summary", true);