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 |
パブリックメソッド
testEnded
public void testEnded (TestDescription test,testMetrics)
個々のテストケースの実行終了を報告します。
testFailed(TestDescription, String)
が呼び出されなかった場合、このテストは合格です。また、テストケースの実行中に発行された可能性のあるキー/値メトリックも返します。
パラメーター | |
---|---|
test | TestDescription :テストを識別します |
testMetrics | ERROR(/Map) |
testFailed
public void testFailed (TestDescription test, String trace)
個々のテストケースの失敗を報告します。
testStartedとtestEndedの間で呼び出されます。
パラメーター | |
---|---|
test | TestDescription :テストを識別します |
trace | String :失敗のスタックトレース |
testStarted
public void testStarted (TestDescription test)
個々のテストケースの開始を報告します。古いインターフェースでは、可能な限りtestStarted(com.android.tradefed.result.TestDescription)
使用する必要があります。
パラメーター | |
---|---|
test | TestDescription :テストを識別します |