JarHostTest.HostTestListener
public
class
JarHostTest.HostTestListener
extends ResultForwarder
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.compatibility.common.tradefed.testtype.JarHostTest.HostTestListener | |
testRunStarted() と testRunEnded() を除くすべてのイベントを 埋め込みリスナーに転送するラッパー リスナー。jar 内の各テストクラスはこれらのイベントを呼び出しますが、 HostTestListener はコンソール ロギングと結果レポートのためにリスナーからこれらのイベントを保留します。
概要
パブリック コンストラクタ | |
|---|---|
HostTestListener(ITestInvocationListener listener)
|
|
パブリック メソッド | |
|---|---|
void
|
testRunEnded(long elapsedTime, Map<String, String> metrics)
|
void
|
testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> metrics)
テスト実行の終了を報告します。 |
void
|
testRunStarted(String name, int numTests)
テスト実行の開始を報告します。 |
パブリック コンストラクタ
HostTestListener
public HostTestListener (ITestInvocationListener listener)
| パラメータ | |
|---|---|
listener |
ITestInvocationListener |
パブリック メソッド
testRunEnded
public void testRunEnded (long elapsedTime,
Map<String, String> metrics)| パラメータ | |
|---|---|
elapsedTime |
long |
metrics |
Map |
testRunEnded
public void testRunEnded (long elapsedTime,
HashMap<String, MetricMeasurement.Metric> metrics)テスト実行の終了を報告します。FIXME: 型が異なる 2 つの Map<> インターフェースを使用することはできないため、 ここでは HashMap を使用する必要があります。
| パラメータ | |
|---|---|
elapsedTime |
long: デバイスから報告された経過時間(ミリ秒) |
metrics |
HashMap: Metric を使用してテスト実行の終了時に報告される Key-Value ペア。 |
testRunStarted
public void testRunStarted (String name,
int numTests)テスト実行の開始を報告します。
| パラメータ | |
|---|---|
name |
String: テスト実行名 |
numTests |
int: テスト実行のテストの合計数 |