TestHttpClientBase.GetTestResultsAsync 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
| GetTestResultsAsync(String, Int32, Nullable<ResultDetails>, Nullable<Int32>, Nullable<Int32>, IEnumerable<TestOutcome>, Object, CancellationToken) |
[Preview API] Get test results for a test run. |
| GetTestResultsAsync(Guid, Int32, Nullable<ResultDetails>, Nullable<Int32>, Nullable<Int32>, IEnumerable<TestOutcome>, Object, CancellationToken) |
[Preview API] Get test results for a test run. |
GetTestResultsAsync(String, Int32, Nullable<ResultDetails>, Nullable<Int32>, Nullable<Int32>, IEnumerable<TestOutcome>, Object, CancellationToken)
[Preview API] Get test results for a test run.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>> GetTestResultsAsync(string project, int runId, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.ResultDetails> detailsToInclude = null, Nullable<int> skip = null, Nullable<int> top = null, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.TestManagement.WebApi.TestOutcome> outcomes = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetTestResultsAsync : string * int * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.ResultDetails> * Nullable<int> * Nullable<int> * seq<Microsoft.TeamFoundation.TestManagement.WebApi.TestOutcome> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
Parameters
- project
- String
Project ID or project name
- runId
- Int32
Test run ID of test results to fetch.
- detailsToInclude
- Nullable<ResultDetails>
Details to include with test results. Default is None. Other values are Iterations and WorkItems.
Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
- outcomes
- IEnumerable<TestOutcome>
Comma separated list of test outcomes to filter test results.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
GetTestResultsAsync(Guid, Int32, Nullable<ResultDetails>, Nullable<Int32>, Nullable<Int32>, IEnumerable<TestOutcome>, Object, CancellationToken)
[Preview API] Get test results for a test run.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>> GetTestResultsAsync(Guid project, int runId, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.ResultDetails> detailsToInclude = null, Nullable<int> skip = null, Nullable<int> top = null, System.Collections.Generic.IEnumerable<Microsoft.TeamFoundation.TestManagement.WebApi.TestOutcome> outcomes = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetTestResultsAsync : Guid * int * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.ResultDetails> * Nullable<int> * Nullable<int> * seq<Microsoft.TeamFoundation.TestManagement.WebApi.TestOutcome> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
Parameters
- project
- Guid
Project ID
- runId
- Int32
Test run ID of test results to fetch.
- detailsToInclude
- Nullable<ResultDetails>
Details to include with test results. Default is None. Other values are Iterations and WorkItems.
Number of test results to return. Maximum is 1000 when detailsToInclude is None and 200 otherwise.
- outcomes
- IEnumerable<TestOutcome>
Comma separated list of test outcomes to filter test results.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.