Edit

TestHttpClientBase.GetTestCaseByIdAsync Method

Definition

Overloads

GetTestCaseByIdAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get a specific test case in a test suite with test case id.

GetTestCaseByIdAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get a specific test case in a test suite with test case id.

GetTestCaseByIdAsync(Guid, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get a specific test case in a test suite with test case id.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase> GetTestCaseByIdAsync(Guid project, int planId, int suiteId, int testCaseIds, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestCaseByIdAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>
override this.GetTestCaseByIdAsync : Guid * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>

Parameters

project
Guid

Project ID

planId
Int32

ID of the test plan that contains the suites.

suiteId
Int32

ID of the suite that contains the test case.

testCaseIds
Int32

ID of the test case to get.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestCaseByIdAsync(String, Int32, Int32, Int32, Object, CancellationToken)

[Preview API] Get a specific test case in a test suite with test case id.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase> GetTestCaseByIdAsync(string project, int planId, int suiteId, int testCaseIds, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestCaseByIdAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>
override this.GetTestCaseByIdAsync : string * int * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>

Parameters

project
String

Project ID or project name

planId
Int32

ID of the test plan that contains the suites.

suiteId
Int32

ID of the suite that contains the test case.

testCaseIds
Int32

ID of the test case to get.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to