Share via


ITestRunHelper.Query Method (String, Boolean)

Queries the server to find all test runs matching the given query. Also provides an option for including statistics.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Function Query ( _
    queryText As String, _
    includeStats As Boolean _
) As IEnumerable(Of ITestRun)
IEnumerable<ITestRun> Query(
    string queryText,
    bool includeStats
)
IEnumerable<ITestRun^>^ Query(
    String^ queryText, 
    bool includeStats
)
abstract Query : 
        queryText:string * 
        includeStats:bool -> IEnumerable<ITestRun> 
function Query(
    queryText : String, 
    includeStats : boolean
) : IEnumerable<ITestRun>

Parameters

  • queryText
    Type: String

    WIQL query to execute.

  • includeStats
    Type: Boolean

    Include statistics associated with the test run.

Return Value

Type: IEnumerable<ITestRun>
List of test runs.

.NET Framework Security

See Also

Reference

ITestRunHelper Interface

Query Overload

Microsoft.TeamFoundation.TestManagement.Client Namespace