UITestInterpreter 類別
執行使用者介面 (UI) 測試中的每個測試動作,並且使用 ActionInvoker 屬性的值解譯每個動作的結果。
繼承階層架構
System.Object
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 _
Implements IDisposable
public class UITestInterpreter : IDisposable
public ref class UITestInterpreter : IDisposable
type UITestInterpreter =
class
interface IDisposable
end
public class UITestInterpreter implements IDisposable
UITestInterpreter 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
UITestInterpreter | 初始化 UITestInterpreter 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
ActionInvoker | 取得或設定解譯這個測試的 UITestActionInvoker。 |
![]() |
PlaybackUITest | 取得正在被解譯的測試。 |
回頁首
方法
名稱 | 說明 | |
---|---|---|
![]() |
Cancel | 取消目前步驟或測試的解譯。 |
![]() |
Dispose() | 釋放資源。 |
![]() |
Dispose(Boolean) | 選擇性釋放資源。 |
![]() |
Equals | 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。 |
![]() |
ExecuteStep | 執行目前選取之動作清單中的目前步驟。 |
![]() |
ExecuteTest() | 執行目前測試。 |
![]() ![]() |
ExecuteTest(UITest) | 執行指定的測試。 |
![]() |
ExecuteTest(Int64, Int64) | 針對指定的動作範圍執行目前測試。 |
![]() ![]() |
ExecuteTest(UITest, Int64, Int64) | 針對指定的動作範圍執行指定的測試。 |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為特定型別的雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
HighlightElement | 反白顯示與目前動作相關聯的 UI 項目。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() |
MoveToFirstStep | 將目前動作設定為目前選取之動作清單中的第一個動作。 |
![]() |
MoveToLastStep | 將目前動作設定為目前選取之動作清單中的最後一個動作。 |
![]() |
MoveToNextStep | 將目前動作設定為目前選取之動作清單中的下一個動作。 |
![]() |
MoveToPreviousStep | 將目前動作設定為目前選取之動作清單中的上一個動作。 |
![]() |
MoveToStepNumber | 將目前動作設定為目前選取之動作清單中位於指定索引位置上的動作。 |
![]() |
RaiseWaitForThinkTimeEvent | 引發 InterpreterProgress 事件。 |
![]() |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
![]() |
Unhighlight | 從與目前動作相關聯的 UI 項目上移除反白顯示。 |
回頁首
事件
名稱 | 說明 | |
---|---|---|
![]() |
ActionCompleted | 當動作執行完成時引發。 |
![]() |
ActionListCompleted | 當動作清單中的所有動作都完成時引發。 |
![]() |
ActionListStarted | 在開始執行動作清單中的動作之前引發。 |
![]() |
ActionStarted | 在開始執行動作之前引發。 |
![]() |
InterpreterError | 當執行期間發生錯誤時引發。 |
![]() |
InterpreterProgress | 引發以報告測試執行的進度。 |
![]() |
InterpreterWarning | 當執行期間發生警告時引發。 |
![]() |
UITestCompleted | 在相關聯的測試完成之後引發。 |
![]() |
UITestStarted | 在測試開始執行之前引發。 |
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。