ITestInvocation

public interface ITestInvocation

com.android.tradefed.invoker.ITestInvocation


TradeFederation 테스트 호출 하나를 처리합니다.

요약

중첩된 클래스

class ITestInvocation.ExitInformation

호출의 종료 정보를 나타냅니다. 

공개 메서드

default ITestInvocation.ExitInformation getExitInfo()

지정된 호출의 종료 정보입니다.

abstract void invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)

테스트 호출을 실행합니다.

default void notifyInvocationForceStopped(String message, ErrorIdentifier errorId)

TradeFed 중지를 요청했음을 TestInvocation에 알립니다.

default void notifyInvocationStopped(String message)

TestInvocation에 TradeFed가 종료될 예정임을 알립니다.

default void setClearcutClient(ClearcutClient client)

측정항목을 보고하도록 clearcut 클라이언트를 전달합니다.

공개 메서드

getExitInfo

public ITestInvocation.ExitInformation getExitInfo ()

지정된 호출의 종료 정보입니다.

반환 값
ITestInvocation.ExitInformation

호출

public abstract void invoke (IInvocationContext metadata, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener... extraListeners)

테스트 호출을 실행합니다.

매개변수
metadata IInvocationContext: 테스트를 실행할 IInvocationContext입니다.

config IConfiguration: 이 테스트 실행의 IConfiguration입니다.

rescheduler IRescheduler: 다른 리소스에서 실행하기 위해 호출의 일부를 다시 예약하기 위한 IRescheduler

extraListeners ITestInvocationListener: config에 있는 ITestInvocationListener 외에도 알림을 보낼 ITestInvocationListener

생성 값
DeviceNotAvailableException 기기와의 통신이 끊어진 경우
Throwable

notifyInvocationForceStopped

public void notifyInvocationForceStopped (String message, 
                ErrorIdentifier errorId)

TradeFed 중지를 요청했음을 TestInvocation에 알립니다.

매개변수
message String: 호출 중지와 관련된 메시지

errorId ErrorIdentifier: 강제 종료와 연결된 식별자

notifyInvocationStopped

public void notifyInvocationStopped (String message)

TestInvocation에 TradeFed가 종료될 예정임을 알립니다.

매개변수
message String: 호출 중지와 관련된 메시지

setClearcutClient

public void setClearcutClient (ClearcutClient client)

측정항목을 보고하도록 clearcut 클라이언트를 전달합니다.

매개변수
client ClearcutClient