ITestInvocation

public interface ITestInvocation

com.android.tradefed.invoker.ITestInvocation


1つのTradeFederationテスト呼び出しを処理します。

概要

ネストされたクラス

class ITestInvocation.ExitInformation

呼び出しの終了情報を表します。

パブリックメソッド

default ITestInvocation.ExitInformation getExitInfo ()

指定された呼び出しの終了情報。

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

テスト呼び出しを実行します。

default void notifyInvocationStopped (String message, ErrorIdentifier errorId)

通知TestInvocation TradeFedが停止に要求されたことを。

パブリックメソッド

getExitInfo

public ITestInvocation.ExitInformation getExitInfo ()

指定された呼び出しの終了情報。

戻り値
ITestInvocation.ExitInformation

呼び出す

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

テスト呼び出しを実行します。

パラメーター
metadata IInvocationContextIInvocationContextテストを実行します。

config IConfigurationIConfigurationこのテスト実行の。

rescheduler IReschedulerIRescheduler 、他のリソース(単数または複数)上で実行するための呼び出しの部分を再スケジューリングするための

extraListeners ITestInvocationListenerITestInvocationListener Sに通知するために、中のものに加えて、 config

投げる
DeviceNotAvailableExceptionデバイスとの通信が失われた場合
Throwable

notifyInvocationStopped

public void notifyInvocationStopped (String message, 
                ErrorIdentifier errorId)

通知TestInvocation TradeFedが停止に要求されたことを。

パラメーター
message String :呼び出しの停止に関連付けられたメッセージ

errorId ErrorIdentifier