PrettyTestEventLogger

public class PrettyTestEventLogger
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.testtype.host.PrettyTestEventLogger


デバッグを容易にするために、イベントを照合してログに記録するロガー。検索しやすいように、ホスト側とデバイス側のログを厳密に一致させます。

まとめ

パブリック コンストラクター

PrettyTestEventLogger ( devices) PrettyTestEventLogger ( devices)

公開メソッド

void testEnded ( TestDescription test, testMetrics) testEnded ( TestDescription test, testMetrics)

個々のテスト ケースの実行終了を報告します。

void testFailed ( TestDescription test, String trace)

個々のテスト ケースの失敗を報告します。

void testStarted ( TestDescription test)

個々のテスト ケースの開始を報告します。

パブリック コンストラクター

PrettyTestEventLogger

public PrettyTestEventLogger ( devices)

パラメーター
devices

公開メソッド

テスト終了

public void testEnded (TestDescription test, 
                 testMetrics)

個々のテスト ケースの実行終了を報告します。

testFailed(TestDescription, FailureDescription)が呼び出されなかった場合、このテストは成功しました。また、テスト ケースの実行中に発行された可能性のあるキー/値メトリックも返します。

パラメーター
test TestDescription : テストを識別します

testMetrics : 発行されたメトリックのERROR(/Map)

テスト失敗

public void testFailed (TestDescription test, 
                String trace)

個々のテスト ケースの失敗を報告します。

testStarted と testEnded の間で呼び出されます。

パラメーター
test TestDescription : テストを識別します

trace String : 失敗のスタック トレース

テスト開始

public void testStarted (TestDescription test)

個々のテスト ケースの開始を報告します。古いインターフェースでは、可能な限りtestStarted(com.android.tradefed.result.TestDescription)を使用する必要があります。

パラメーター
test TestDescription : テストを識別します