PrettyTestEventLogger
public
class
PrettyTestEventLogger
extends Object
implements
ITestInvocationListener
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.host.PrettyTestEventLogger |
イベントを照合してログに記録し、デバッグを容易にするロガー。検索を容易にするため、ホスト側とデバイス側のログは厳密に一致します。
概要
パブリック コンストラクタ | |
|---|---|
PrettyTestEventLogger(
|
|
パブリック メソッド | |
|---|---|
void
|
testEnded(TestDescription test,
個々のテストケースの実行終了を報告します。 |
void
|
testFailed(TestDescription test, FailureDescription failure)
個々のテストケースの失敗を報告します。 |
void
|
testFailed(TestDescription test, String trace)
個々のテストケースの失敗を報告します。 |
void
|
testRunEnded(long elapsedTimeMillis,
テスト実行の終了を報告します。 |
void
|
testRunStarted(String runName, int testCount)
テスト実行の開始を報告します。 |
void
|
testStarted(TestDescription test)
個々のテストケースの開始を報告します。 |
パブリック コンストラクタ
PrettyTestEventLogger
public PrettyTestEventLogger (devices, boolean methodLevelLogging)
| パラメータ | |
|---|---|
devices |
|
methodLevelLogging |
boolean |
パブリック メソッド
testEnded
public void testEnded (TestDescription test,testMetrics)
個々のテストケースの実行終了を報告します。
testFailed(TestDescription, FailureDescription) が呼び出されなかった場合、このテストは合格です。テストケースの実行中に生成された Key-Value 指標も返します。
| パラメータ | |
|---|---|
test |
TestDescription: テストを識別します |
testMetrics |
: 出力された指標の ERROR(/Map) |
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
個々のテストケースの失敗を報告します。
testStarted と testEnded の間に呼び出されます。
| パラメータ | |
|---|---|
test |
TestDescription: テストを識別します |
failure |
FailureDescription: 失敗とそのコンテキストを説明する FailureDescription。 |
testFailed
public void testFailed (TestDescription test, String trace)
個々のテストケースの失敗を報告します。
testStarted と testEnded の間に呼び出されます。
| パラメータ | |
|---|---|
test |
TestDescription: テストを識別します |
trace |
String: 失敗のスタック トレース |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics) テスト実行の終了を報告します。
| パラメータ | |
|---|---|
elapsedTimeMillis |
long: デバイスが報告した経過時間(ミリ秒単位) |
runMetrics |
: テスト実行の最後にレポートされる Key-Value ペア |
testRunStarted
public void testRunStarted (String runName,
int testCount)テスト実行の開始を報告します。
| パラメータ | |
|---|---|
runName |
String: テスト実行名 |
testCount |
int: テスト実行のテストの合計数 |
testStarted
public void testStarted (TestDescription test)
個々のテストケースの開始を報告します。古いインターフェース。可能な限り testStarted(com.android.tradefed.result.TestDescription) を使用する必要があります。
| パラメータ | |
|---|---|
test |
TestDescription: テストを識別します |