NameMangleListener
public abstract class NameMangleListener
extends Object
implements ITestInvocationListener
java.lang.Object | |
↳ | 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) このメソッドは、 |
String | mangleTestRunName (String name) このメソッドは、 |
パブリックコンストラクター
NameMangleListener
public NameMangleListener (ITestInvocationListener listener)
パラメーター | |
---|---|
listener | ITestInvocationListener |
パブリックメソッド
getSummary
public TestSummary getSummary ()
戻り値 | |
---|---|
TestSummary |
invocationEnded
public void invocationEnded (long elapsedTime)
パラメーター | |
---|---|
elapsedTime | long |
invocationFailed
public void invocationFailed (Throwable cause)
パラメーター | |
---|---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
パラメーター | |
---|---|
context | IInvocationContext |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
パラメーター | |
---|---|
test | TestDescription |
trace | String |
testEnded
public void testEnded (TestDescription test,testMetrics)
パラメーター | |
---|---|
test | TestDescription |
testMetrics |
testFailed
public void testFailed (TestDescription test, String trace)
パラメーター | |
---|---|
test | TestDescription |
trace | String |
testIgnored
public void testIgnored (TestDescription test)
パラメーター | |
---|---|
test | TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
パラメーター | |
---|---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
パラメーター | |
---|---|
elapsedTime | long |
runMetrics |
testRunFailed
public void testRunFailed (String errorMessage)
パラメーター | |
---|---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName, int testCount)
パラメーター | |
---|---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
パラメーター | |
---|---|
elapsedTime | long |
testStarted
public void testStarted (TestDescription test)
パラメーター | |
---|---|
test | TestDescription |
保護されたメソッド
mangleTestId
protected TestDescription mangleTestId (TestDescription test)
このメソッドは、すべての上で実行されるTestDescription
に渡され、S testStarted(com.android.tradefed.result.TestDescription)
testFailed(com.android.tradefed.result.TestDescription, String)
、およびITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap)
コールバック。このメソッドは、構築中に指定されたダウンストリームITestInvocationListener
渡される可能性のある異なるTestDescription
を返す必要があります。
実装では、元のTestDescription
変更しないように注意する必要があります。
デフォルトの実装では、着信識別子が変更されずに渡されます。
パラメーター | |
---|---|
test | TestDescription |
戻り値 | |
---|---|
TestDescription |
mangleTestRunName
protected String mangleTestRunName (String name)
このメソッドは、 testRunStarted(String, int)
コールバックに渡されるすべてのテスト実行名で実行されます。このメソッドは、構築中に指定されたダウンストリームITestInvocationListener
渡される可能性のある異なるテスト実行名をITestInvocationListener
必要があります。
パラメーター | |
---|---|
name | String |
戻り値 | |
---|---|
String |