PrettyTestEventLogger

public class PrettyTestEventLogger
extends Object implements ITestInvocationListener

java.lang.オブジェクト
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 : テストを識別します