TestResultsHttpClientBase.CreateTestRunAsync 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
| CreateTestRunAsync(RunCreateModel, Guid, Object, CancellationToken) |
[Preview API] |
| CreateTestRunAsync(RunCreateModel, String, Object, CancellationToken) |
[Preview API] |
CreateTestRunAsync(RunCreateModel, Guid, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> CreateTestRunAsync(Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel testRun, Guid project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
override this.CreateTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
Parameters
- testRun
- RunCreateModel
- project
- Guid
Project ID
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
CreateTestRunAsync(RunCreateModel, String, Object, CancellationToken)
[Preview API]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> CreateTestRunAsync(Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel testRun, string project, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CreateTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
override this.CreateTestRunAsync : Microsoft.TeamFoundation.TestManagement.WebApi.RunCreateModel * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
Parameters
- testRun
- RunCreateModel
- project
- String
Project ID or project name
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.