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)

void testFailed(TestDescription test, String trace)

void testIgnored(TestDescription test)

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

void 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에서 실행됩니다.

String mangleTestRunName(String name)

이 메서드는 testRunStarted(String, int) 콜백에 전달된 모든 테스트 실행 이름에서 실행됩니다.

공개 생성자

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를 수정하지 않도록 주의해야 합니다.

기본 구현은 수정되지 않은 상태로 수신 식별자를 전달합니다.

매개변수
test TestDescription

반환 값
TestDescription

mangleTestRunName

protected String mangleTestRunName (String name)

이 메서드는 testRunStarted(String, int) 콜백에 전달된 모든 테스트 실행 이름에서 실행됩니다. 이 메서드는 생성 중에 지정된 다운스트림 ITestInvocationListener에 전달될 수 있는 다른 테스트 실행 이름을 반환해야 합니다.

구현은 원래 실행 이름을 수정하지 않도록 주의해야 합니다.

기본 구현은 수정되지 않은 수신 테스트 실행 이름을 전달합니다.

매개변수
name String

반환 값
String