Edit

Share via


TestPlanHttpClientBase.GetSuitesByTestCaseIdAsync Method

Definition

[Preview API] Find the list of all test suites in which a given test case is present. This is helpful if you need to find out which test suites are using a test case, when you need to make changes to a test case.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.TestManagement.TestPlanning.WebApi.TestSuite>> GetSuitesByTestCaseIdAsync (int testCaseId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetSuitesByTestCaseIdAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.TestManagement.TestPlanning.WebApi.TestSuite>>
override this.GetSuitesByTestCaseIdAsync : int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.VisualStudio.Services.TestManagement.TestPlanning.WebApi.TestSuite>>

Parameters

testCaseId
Int32

ID of the test case for which suites need to be fetched.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to