名前MangleListener
public abstract class NameMangleListener
extends Object
implements ITestInvocationListener
java.lang.オブジェクト |
↳ | com.android.tradefed.result.NameMangleListener |
結果が報告されるときにテスト メソッド、クラス、およびパッケージ名を変換するプロキシ リスナー。
まとめ
パブリックコンストラクター
名前MangleListener
public NameMangleListener (ITestInvocationListener listener)
パラメーター |
---|
listener | ITestInvocationListener |
パブリックメソッド
get概要
public TestSummary getSummary ()
呼び出し終了
public void invocationEnded (long elapsedTime)
呼び出し失敗
public void invocationFailed (Throwable cause)
呼び出し開始
public void invocationStarted (IInvocationContext context)
パラメーター |
---|
context | IInvocationContext |
テスト仮定失敗
public void testAssumptionFailure (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
テスト終了
public void testEnded (TestDescription test,
testMetrics)
パラメーター |
---|
test | TestDescription |
testMetrics | |
テスト失敗
public void testFailed (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
テスト無視されました
public void testIgnored (TestDescription test)
パラメーター |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
テスト実行終了
public void testRunEnded (long elapsedTime,
runMetrics)
パラメーター |
---|
elapsedTime | long |
runMetrics | |
テスト実行失敗
public void testRunFailed (String errorMessage)
パラメーター |
---|
errorMessage | String |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount)
パラメーター |
---|
runName | String |
testCount | int |
テスト実行停止
public void testRunStopped (long elapsedTime)
テスト開始
public void testStarted (TestDescription test)
パラメーター |
---|
test | TestDescription |
保護されたメソッド
マングルテスト実行名
protected String mangleTestRunName (String name)
このメソッドはtestRunStarted(String, int)
コールバックに渡されるすべてのテスト実行名に対して実行されます。このメソッドは、構築中に指定されたダウンストリームITestInvocationListener
に渡される、おそらく異なるテスト実行名を返す必要があります。
実装では、元の実行名を変更しないように注意する必要があります。
デフォルトの実装では、受信したテスト実行名が変更されずに渡されます。