Edit

TestHttpClientBase.QueryTestRunsAsync Method

Definition

Overloads

QueryTestRunsAsync(String, DateTime, DateTime, Nullable<TestRunState>, IEnumerable<Int32>, Nullable<Boolean>, Nullable<TestRunPublishContext>, IEnumerable<Int32>, IEnumerable<Int32>, String, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, String, Nullable<Int32>, String, Object, CancellationToken)

[Preview API] Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.

QueryTestRunsAsync(Guid, DateTime, DateTime, Nullable<TestRunState>, IEnumerable<Int32>, Nullable<Boolean>, Nullable<TestRunPublishContext>, IEnumerable<Int32>, IEnumerable<Int32>, String, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, String, Nullable<Int32>, String, Object, CancellationToken)

[Preview API] Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.

QueryTestRunsAsync(String, DateTime, DateTime, Nullable<TestRunState>, IEnumerable<Int32>, Nullable<Boolean>, Nullable<TestRunPublishContext>, IEnumerable<Int32>, IEnumerable<Int32>, String, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, String, Nullable<Int32>, String, Object, CancellationToken)

[Preview API] Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>> QueryTestRunsAsync(string project, DateTime minLastUpdatedDate, DateTime maxLastUpdatedDate, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> state = null, System.Collections.Generic.IEnumerable<int> planIds = null, Nullable<bool> isAutomated = null, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> publishContext = null, System.Collections.Generic.IEnumerable<int> buildIds = null, System.Collections.Generic.IEnumerable<int> buildDefIds = null, string branchName = null, System.Collections.Generic.IEnumerable<int> releaseIds = null, System.Collections.Generic.IEnumerable<int> releaseDefIds = null, System.Collections.Generic.IEnumerable<int> releaseEnvIds = null, System.Collections.Generic.IEnumerable<int> releaseEnvDefIds = null, string runTitle = null, Nullable<int> top = null, string continuationToken = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryTestRunsAsync : string * DateTime * DateTime * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> * seq<int> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> * seq<int> * seq<int> * string * seq<int> * seq<int> * seq<int> * seq<int> * string * Nullable<int> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>
override this.QueryTestRunsAsync : string * DateTime * DateTime * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> * seq<int> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> * seq<int> * seq<int> * string * seq<int> * seq<int> * seq<int> * seq<int> * string * Nullable<int> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>

Parameters

project
String

Project ID or project name

minLastUpdatedDate
DateTime

Minimum Last Modified Date of run to be queried (Mandatory).

maxLastUpdatedDate
DateTime

Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).

state
Nullable<TestRunState>

Current state of the Runs to be queried.

planIds
IEnumerable<Int32>

Plan Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

isAutomated
Nullable<Boolean>

Automation type of the Runs to be queried.

publishContext
Nullable<TestRunPublishContext>

PublishContext of the Runs to be queried.

buildIds
IEnumerable<Int32>

Build Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

buildDefIds
IEnumerable<Int32>

Build Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

branchName
String

Source Branch name of the Runs to be queried.

releaseIds
IEnumerable<Int32>

Release Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseDefIds
IEnumerable<Int32>

Release Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseEnvIds
IEnumerable<Int32>

Release Environment Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseEnvDefIds
IEnumerable<Int32>

Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

runTitle
String

Run Title of the Runs to be queried.

top
Nullable<Int32>

Number of runs to be queried. Limit is 100

continuationToken
String

continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

QueryTestRunsAsync(Guid, DateTime, DateTime, Nullable<TestRunState>, IEnumerable<Int32>, Nullable<Boolean>, Nullable<TestRunPublishContext>, IEnumerable<Int32>, IEnumerable<Int32>, String, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, IEnumerable<Int32>, String, Nullable<Int32>, String, Object, CancellationToken)

[Preview API] Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>> QueryTestRunsAsync(Guid project, DateTime minLastUpdatedDate, DateTime maxLastUpdatedDate, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> state = null, System.Collections.Generic.IEnumerable<int> planIds = null, Nullable<bool> isAutomated = null, Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> publishContext = null, System.Collections.Generic.IEnumerable<int> buildIds = null, System.Collections.Generic.IEnumerable<int> buildDefIds = null, string branchName = null, System.Collections.Generic.IEnumerable<int> releaseIds = null, System.Collections.Generic.IEnumerable<int> releaseDefIds = null, System.Collections.Generic.IEnumerable<int> releaseEnvIds = null, System.Collections.Generic.IEnumerable<int> releaseEnvDefIds = null, string runTitle = null, Nullable<int> top = null, string continuationToken = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member QueryTestRunsAsync : Guid * DateTime * DateTime * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> * seq<int> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> * seq<int> * seq<int> * string * seq<int> * seq<int> * seq<int> * seq<int> * string * Nullable<int> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>
override this.QueryTestRunsAsync : Guid * DateTime * DateTime * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunState> * seq<int> * Nullable<bool> * Nullable<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunPublishContext> * seq<int> * seq<int> * string * seq<int> * seq<int> * seq<int> * seq<int> * string * Nullable<int> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>

Parameters

project
Guid

Project ID

minLastUpdatedDate
DateTime

Minimum Last Modified Date of run to be queried (Mandatory).

maxLastUpdatedDate
DateTime

Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).

state
Nullable<TestRunState>

Current state of the Runs to be queried.

planIds
IEnumerable<Int32>

Plan Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

isAutomated
Nullable<Boolean>

Automation type of the Runs to be queried.

publishContext
Nullable<TestRunPublishContext>

PublishContext of the Runs to be queried.

buildIds
IEnumerable<Int32>

Build Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

buildDefIds
IEnumerable<Int32>

Build Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

branchName
String

Source Branch name of the Runs to be queried.

releaseIds
IEnumerable<Int32>

Release Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseDefIds
IEnumerable<Int32>

Release Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseEnvIds
IEnumerable<Int32>

Release Environment Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

releaseEnvDefIds
IEnumerable<Int32>

Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids (limit no. of ids 10).

runTitle
String

Run Title of the Runs to be queried.

top
Nullable<Int32>

Number of runs to be queried. Limit is 100

continuationToken
String

continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to