TestHttpClientBase.AddTestResultsToTestRunAsync 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
| AddTestResultsToTestRunAsync(TestCaseResult[], Guid, Int32, Object, CancellationToken) |
[Preview API] Add test results to a test run. |
| AddTestResultsToTestRunAsync(TestCaseResult[], String, Int32, Object, CancellationToken) |
[Preview API] Add test results to a test run. |
AddTestResultsToTestRunAsync(TestCaseResult[], Guid, Int32, Object, CancellationToken)
[Preview API] Add test results to a test run.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>> AddTestResultsToTestRunAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] results, Guid project, int runId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddTestResultsToTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
override this.AddTestResultsToTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] * Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
Parameters
- results
- TestCaseResult[]
List of test results to add.
- project
- Guid
Project ID
- runId
- Int32
Test run ID into which test results to add.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
AddTestResultsToTestRunAsync(TestCaseResult[], String, Int32, Object, CancellationToken)
[Preview API] Add test results to a test run.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>> AddTestResultsToTestRunAsync(Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] results, string project, int runId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member AddTestResultsToTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
override this.AddTestResultsToTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult[] * string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestCaseResult>>
Parameters
- results
- TestCaseResult[]
List of test results to add.
- project
- String
Project ID or project name
- runId
- Int32
Test run ID into which test results to add.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.