Edit

TestHttpClientBase.AddTestCasesToSuiteAsync Method

Definition

Overloads

AddTestCasesToSuiteAsync(Guid, Int32, Int32, String, Object, CancellationToken)

[Preview API] Add test cases to suite.

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

Parameters

project
Guid

Project ID

planId
Int32

ID of the test plan that contains the suite.

suiteId
Int32

ID of the test suite to which the test cases must be added.

testCaseIds
String

IDs of the test cases to add to the suite. Ids are specified in comma separated format.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

AddTestCasesToSuiteAsync(String, Int32, Int32, String, Object, CancellationToken)

[Preview API] Add test cases to suite.

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

Parameters

project
String

Project ID or project name

planId
Int32

ID of the test plan that contains the suite.

suiteId
Int32

ID of the test suite to which the test cases must be added.

testCaseIds
String

IDs of the test cases to add to the suite. Ids are specified in comma separated format.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to