Edit

TestHttpClientBase.GetTestRunByIdAsync Method

Definition

Overloads

GetTestRunByIdAsync(Guid, Int32, Object, CancellationToken)

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> GetTestRunByIdAsync(Guid project, int runId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunByIdAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
override this.GetTestRunByIdAsync : Guid * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>

Parameters

project
Guid

Project ID

runId
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestRunByIdAsync(String, Int32, Object, CancellationToken)

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> GetTestRunByIdAsync(string project, int runId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunByIdAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>
override this.GetTestRunByIdAsync : string * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>

Parameters

project
String

Project ID or project name

runId
Int32
userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestRunByIdAsync(Guid, Int32, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Get a test run by its ID.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> GetTestRunByIdAsync(Guid project, int runId, Nullable<bool> includeDetails = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetTestRunByIdAsync : Guid * int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>

Parameters

project
Guid

Project ID

runId
Int32

ID of the run to get.

includeDetails
Nullable<Boolean>

Defualt value is true. It includes details like run statistics,release,build,Test enviornment,Post process state and more

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestRunByIdAsync(String, Int32, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Get a test run by its ID.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun> GetTestRunByIdAsync(string project, int runId, Nullable<bool> includeDetails = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.GetTestRunByIdAsync : string * int * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>

Parameters

project
String

Project ID or project name

runId
Int32

ID of the run to get.

includeDetails
Nullable<Boolean>

Defualt value is true. It includes details like run statistics,release,build,Test enviornment,Post process state and more

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to