UITestInterpreter 類別
執行使用者介面 (UI) 測試中的每個測試動作,並且使用 ActionInvoker 屬性的值解譯每個動作的結果。
繼承階層架構
Object
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter
命名空間: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
組件: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (在 Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll 中)
語法
'宣告
Public Class UITestInterpreter _
Inherits UITestInterpreterCore
public class UITestInterpreter : UITestInterpreterCore
public ref class UITestInterpreter : public UITestInterpreterCore
type UITestInterpreter =
class
inherit UITestInterpreterCore
end
public class UITestInterpreter extends UITestInterpreterCore
UITestInterpreter 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
UITestInterpreter | 初始化 UITestInterpreter 類別的新執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
![]() |
ActionInvoker | 取得或設定解譯這個測試的 UITestActionInvoker。 (覆寫 UITestInterpreterCore.ActionInvoker。) |
![]() |
CurrentAction | 目前正在執行的動作。 (繼承自 UITestInterpreterCore)。 |
![]() |
PlaybackInProgress | 如果播放正在進行中,則為 true。 (繼承自 UITestInterpreterCore)。 |
![]() |
PlaybackUITest | 取得正在執行的 UITest。 (繼承自 UITestInterpreterCore)。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
Cancel | 取消目前步驟或測試的解譯。 (覆寫 UITestInterpreterCore.Cancel()。) |
![]() |
Dispose() | 處置物件。 (繼承自 UITestInterpreterCore)。 |
![]() |
Dispose(Boolean) | 選擇性釋放資源。 (覆寫 UITestInterpreterCore.Dispose(Boolean)。) |
![]() |
Equals | 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。 |
![]() |
ExecuteAction | 執行這個特定動作。這個動作會包含該動作的 UIObject 的 ID。這個 ID 是用來取得物件的 queryid,而且傳遞至輸入動作物件的叫用方法。叫用方法也需要 UITestActionInvoker 介面型別的物件。在這個案例中預設是實作 UITestActionInvoker 的 UITestPlayback 型別。 (覆寫 UITestInterpreterCore.ExecuteAction(UITestAction, UIMap)。) |
![]() |
ExecuteStep | 執行 (即解譯) 目前選取之 ActionList 的目前步驟。 (繼承自 UITestInterpreterCore)。 |
![]() |
ExecuteTest() | 執行 (即解譯) 目前 UITest 物件。 (繼承自 UITestInterpreterCore)。 |
![]() ![]() |
ExecuteTest(UITest) | 執行指定的測試。 |
![]() |
ExecuteTest(Int64, Int64) | 執行 (即解譯) 動作的目前 UITest 物件在指定的範圍。 (繼承自 UITestInterpreterCore)。 |
![]() ![]() |
ExecuteTest(UITest, Int64, Int64) | 針對指定的動作範圍執行指定的測試。 |
![]() |
Finalize | 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前實例 Type 的屬性。 (繼承自 Object)。 |
![]() |
HighlightElement | 反白顯示與目前動作相關聯的 UI 項目。 |
![]() |
IsExpectedExceptionFromActionExecution | 如果預期執行動作會產生指定的例外狀況,則傳回 true。 (覆寫 UITestInterpreterCore.IsExpectedExceptionFromActionExecution(Exception)。) |
![]() |
LogActionExecutionException | 記錄 SQM 資料為播放例外狀況。 (覆寫 UITestInterpreterCore.LogActionExecutionException(Exception)。) |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。 |
![]() |
MoveToFirstStep | 將目前動作指標移至目前選取之 ActionList 的第一個動作。 (繼承自 UITestInterpreterCore)。 |
![]() |
MoveToLastStep | 將目前動作指標移至目前選取之 ActionList 的最後一個動作。 (繼承自 UITestInterpreterCore)。 |
![]() |
MoveToNextStep | 將動作指標移至目前選取之 ActionList 的下一個動作。 (繼承自 UITestInterpreterCore)。 |
![]() |
MoveToPreviousStep | 將動作指標移至目前選取之 ActionList 的上一個動作。 (繼承自 UITestInterpreterCore)。 |
![]() |
MoveToStepNumber | 將目前動作指標移至目前選取之 ActionList 中的指定動作索引位置。 (繼承自 UITestInterpreterCore)。 |
![]() |
OnErrorHandledByUser | 在使用者處理動作執行錯誤之後呼叫。 這可用來追蹤記錄某些動作。 (覆寫 UITestInterpreterCore.OnErrorHandledByUser(UITestErrorEventArgs)。) |
![]() |
RaisePlaybackProgressEvent | 引發播放進度事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
RaiseWaitForThinkTimeEvent | 引發 InterpreterProgress 事件。 |
![]() |
ToString | 傳回代表目前物件的字串。 (繼承自 Object)。 |
![]() |
Unhighlight | 從與目前動作相關聯的 UI 項目上移除反白顯示。 |
回頁首
事件
名稱 | 描述 | |
---|---|---|
![]() |
ActionCompleted | 在執行 UITestAction 之後引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
ActionListCompleted | 在每個 ActionList 執行完成之後引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
ActionListStarted | 在每個 ActionList 之前的期間引發的事件開始。 (繼承自 UITestInterpreterCore)。 |
![]() |
ActionStarted | 在執行 UITestAction 之前引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
InterpreterError | 在解譯 UITest 期間發生錯誤時所引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
InterpreterProgress | 為了在解譯 UITest 期間更新進度所引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
InterpreterWarning | 在解譯 UITest 期間發生警告時所引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
UITestCompleted | 在 UITest 執行完成之後引發的事件。 (繼承自 UITestInterpreterCore)。 |
![]() |
UITestStarted | 在 UITest 開始之前的期間引發的事件。 (繼承自 UITestInterpreterCore)。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。