ITest호출

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)

TradeFed가 결국 종료된다는 것을 TestInvocation 에 알립니다.

default void setClearcutClient (ClearcutClient client)

메트릭을 보고하기 위해 클리어컷 클라이언트를 전달합니다.

공개 메소드

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 입니다.

던지기
DeviceNotAvailableException 장치와의 통신이 끊긴 경우
던질 수 있는

통지 호출 강제 중지됨

public void notifyInvocationForceStopped (String message, 
                ErrorIdentifier errorId)

TradeFed가 중지하도록 요청되었음을 TestInvocation 에 알립니다.

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

errorId ErrorIdentifier : 강제 정지와 관련된 식별자

알림호출이 중지됨

public void notifyInvocationStopped (String message)

TradeFed가 결국 종료된다는 것을 TestInvocation 에 알립니다.

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

setClearcutClient

public void setClearcutClient (ClearcutClient client)

메트릭을 보고하기 위해 클리어컷 클라이언트를 전달합니다.

매개변수
client ClearcutClient