TestHttpClientBase.GetTestCasesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetTestCasesAsync(Guid, Int32, Int32, Object, CancellationToken) |
[Preview API] Get all test cases in a suite. |
| GetTestCasesAsync(String, Int32, Int32, Object, CancellationToken) |
[Preview API] Get all test cases in a suite. |
GetTestCasesAsync(Guid, Int32, Int32, Object, CancellationToken)
[Preview API] Get all test cases in a suite.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>> GetTestCasesAsync(Guid project, int planId, int suiteId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestCasesAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>>
override this.GetTestCasesAsync : Guid * int * int * 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 suites.
- suiteId
- Int32
ID of the suite to get.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetTestCasesAsync(String, Int32, Int32, Object, CancellationToken)
[Preview API] Get all test cases in a suite.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>> GetTestCasesAsync(string project, int planId, int suiteId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestCasesAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.SuiteTestCase>>
override this.GetTestCasesAsync : string * int * int * 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 suites.
- suiteId
- Int32
ID of the suite to get.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.