名前MangleListener

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

java.lang.オブジェクト
com.android.tradefed.result.NameMangleListener


結果が報告されるときにテスト メソッド、クラス、およびパッケージ名を変換するプロキシ リスナー。

まとめ

パブリックコンストラクター

NameMangleListener (ITestInvocationListener listener)

パブリックメソッド

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

保護されたメソッド

TestDescription mangleTestId (TestDescription test)

このメソッドは、 testStarted(com.android.tradefed.result.TestDescription)testFailed(com.android.tradefed.result.TestDescription, String) 、およびITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) TestDescription ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap)コールバック。

String mangleTestRunName (String name)

このメソッドはtestRunStarted(String, int)コールバックに渡されるすべてのテスト実行名に対して実行されます。

パブリックコンストラクター

名前MangleListener

public NameMangleListener (ITestInvocationListener listener)

パラメーター
listener ITestInvocationListener

パブリックメソッド

get概要

public TestSummary getSummary ()

戻り値
TestSummary

呼び出し終了

public void invocationEnded (long elapsedTime)

パラメーター
elapsedTime long

呼び出し失敗

public void invocationFailed (Throwable cause)

パラメーター
cause Throwable

呼び出し開始

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)

パラメーター
elapsedTime long

テスト開始

public void testStarted (TestDescription test)

パラメーター
test TestDescription

保護されたメソッド

マングルテストID

protected TestDescription mangleTestId (TestDescription test)

このメソッドは、 testStarted(com.android.tradefed.result.TestDescription)testFailed(com.android.tradefed.result.TestDescription, String) 、およびITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) TestDescription ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap)コールバック。このメソッドは、構築中に指定されたダウンストリームITestInvocationListenerに渡される、おそらく異なるTestDescriptionを返す必要があります。

実装では、元のTestDescriptionを変更しないように注意する必要があります。

デフォルトの実装では、受信した識別子を変更せずに渡します。

パラメーター
test TestDescription

戻り値
TestDescription

マングルテスト実行名

protected String mangleTestRunName (String name)

このメソッドはtestRunStarted(String, int)コールバックに渡されるすべてのテスト実行名に対して実行されます。このメソッドは、構築中に指定されたダウンストリームITestInvocationListenerに渡される、おそらく異なるテスト実行名を返す必要があります。

実装では、元の実行名を変更しないように注意する必要があります。

デフォルトの実装では、受信したテスト実行名が変更されずに渡されます。

パラメーター
name String

戻り値
String