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

공개 메서드

가져오기 요약

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

테스트 실패

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

testRunStop

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