LogError メソッド (Agent)

クラス

Agent

処理

テストの実行中に書き出される TrueLog ファイルに、エラー メッセージとスクリーンショットを記録します。

構文

C#
LogError (message, [screenshotMode]);
VB
LogError (message, [screenshotMode])
変数 説明
message TrueLog ファイルに書き出すテキスト(エラー メッセージなど)。String
screenshotMode 省略可能: 完全なデスクトップ、アクティブなアプリケーション、アクティブなウィンドウのスクリーンショットのどれを記録するかを定義します。デフォルトでは、完全なデスクトップのスクリーンショットが記録されます。Enum

// C# code
LogError ("*** Error: Expected Message Box did not appear.");
'VB .NET code
LogError ("*** Error: Expected Message Box did not appear.")