Edit

TestResultsHttpClient.QueryTestRunsAsync2 Method

Definition

Overloads

QueryTestRunsAsync2(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.

public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.Services.WebApi.IPagedList<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>> QueryTestRunsAsync2(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 QueryTestRunsAsync2 : 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<Microsoft.VisualStudio.Services.WebApi.IPagedList<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>
override this.QueryTestRunsAsync2 : 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<Microsoft.VisualStudio.Services.WebApi.IPagedList<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.

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.

buildDefIds
IEnumerable<Int32>

Build Definition Ids of the Runs to be queried, comma seperated list of valid ids.

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.

releaseDefIds
IEnumerable<Int32>

Release Definition Ids of the Runs to be queried, comma seperated list of valid ids.

releaseEnvIds
IEnumerable<Int32>

Release Environment Ids of the Runs to be queried, comma seperated list of valid ids.

releaseEnvDefIds
IEnumerable<Int32>

Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Task<Microsoft.VisualStudio.Services.WebApi.IPagedList<TestRun>>

Implements

Applies to

QueryTestRunsAsync2(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.

public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.Services.WebApi.IPagedList<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>> QueryTestRunsAsync2(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 QueryTestRunsAsync2 : 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<Microsoft.VisualStudio.Services.WebApi.IPagedList<Microsoft.TeamFoundation.TestManagement.WebApi.TestRun>>
override this.QueryTestRunsAsync2 : 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<Microsoft.VisualStudio.Services.WebApi.IPagedList<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.

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.

buildDefIds
IEnumerable<Int32>

Build Definition Ids of the Runs to be queried, comma seperated list of valid ids.

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.

releaseDefIds
IEnumerable<Int32>

Release Definition Ids of the Runs to be queried, comma seperated list of valid ids.

releaseEnvIds
IEnumerable<Int32>

Release Environment Ids of the Runs to be queried, comma seperated list of valid ids.

releaseEnvDefIds
IEnumerable<Int32>

Release Environment Definition Ids of the Runs to be queried, comma seperated list of valid ids.

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.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Task<Microsoft.VisualStudio.Services.WebApi.IPagedList<TestRun>>

Implements

Applies to