共用方式為


ITestPlan.QueryTestPoints 方法 (String, String)

尋找並傳回所有測試點,這些測試點屬於這個測試計劃,且符合提供的點查詢和欄位值子查詢。

命名空間:  Microsoft.TeamFoundation.TestManagement.Client
組件:  Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

語法

'宣告
Function QueryTestPoints ( _
    pointQueryText As String, _
    testCaseFieldText As String _
) As ITestPointCollection
ITestPointCollection QueryTestPoints(
    string pointQueryText,
    string testCaseFieldText
)
ITestPointCollection^ QueryTestPoints(
    String^ pointQueryText, 
    String^ testCaseFieldText
)
abstract QueryTestPoints : 
        pointQueryText:string * 
        testCaseFieldText:string -> ITestPointCollection 
function QueryTestPoints(
    pointQueryText : String, 
    testCaseFieldText : String
) : ITestPointCollection

參數

  • pointQueryText
    型別:System.String
    WIQLstring,會尋找測試點物件。
  • testCaseFieldText
    型別:System.String
    WIQL string,藉由查看具有特定值或範圍的欄位,以尋找測試案例。

傳回值

型別:Microsoft.TeamFoundation.TestManagement.Client.ITestPointCollection
測試點的集合。

備註

這可用於這個查詢的特定工作項目查詢語言 (WIQL) 欄位:SuiteId ConfigurationId TestCaseId PointState AreaPath RecursiveSuiteId:查詢是以開始 RecursiveSuiteId 的套件階層架構的所有點。

.NET Framework 安全性

請參閱

參考

ITestPlan 介面

QueryTestPoints 多載

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestPointCollection

ITestPoint