共用方式為


TestManagementService.QueryTestRuns Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns a list of test runs that is found by executing the provided query.

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

Syntax

'Declaration
Public Function QueryTestRuns ( _
    queryText As String _
) As IEnumerable(Of ITestRun)
public IEnumerable<ITestRun> QueryTestRuns(
    string queryText
)
public:
virtual IEnumerable<ITestRun^>^ QueryTestRuns(
    String^ queryText
) sealed
abstract QueryTestRuns : 
        queryText:string -> IEnumerable<ITestRun> 
override QueryTestRuns : 
        queryText:string -> IEnumerable<ITestRun> 
public final function QueryTestRuns(
    queryText : String
) : IEnumerable<ITestRun>

Parameters

  • queryText
    Type: String

    A Work Item Query Language (WIQL) query to execute.

Return Value

Type: IEnumerable<ITestRun>
A list of test runs that match the query.

Implements

ITestManagementService.QueryTestRuns(String)

.NET Framework Security

See Also

Reference

TestManagementService Class

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestRun