이름MangleListener

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)

이 메소드는 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

공개 메소드

getSummary

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

보호된 방법

mangle테스트 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

mangleTestRunName

protected String mangleTestRunName (String name)

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

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

기본 구현은 수정되지 않은 상태로 들어오는 테스트 실행 이름을 전달합니다.

매개변수
name String

보고
String