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,
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testIgnored(TestDescription test)
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testRunEnded(long elapsedTime,
|
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)
このメソッドは、testStarted(com.android.tradefed.result.TestDescription)
、testFailed(com.android.tradefed.result.TestDescription, String)
、ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap)
コールバックに渡されるすべての TestDescription
で実行されます。このメソッドは、コンストラクション時に指定されたダウンストリームの ITestInvocationListener
に渡される、異なる TestDescription
を返す必要があります。
実装では、元の TestDescription
を変更しないように注意する必要があります。
デフォルトの実装では、受信した ID を変更せずに渡します。
パラメータ | |
---|---|
test |
TestDescription |
戻り値 | |
---|---|
TestDescription |
mangleTestRunName
protected String mangleTestRunName (String name)
このメソッドは、testRunStarted(String, int)
コールバックに渡されるすべてのテスト実行名で実行されます。このメソッドは、コンストラクション時に指定されたダウンストリーム ITestInvocationListener
に渡される、異なるテスト実行名を返す必要があります。
実装では、元の実行名を変更しないように注意する必要があります。
デフォルトの実装では、受信したテスト実行名を変更せずに渡します。
パラメータ | |
---|---|
name |
String |
戻り値 | |
---|---|
String |