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 notifyInvocationForceStopped (String message, ErrorIdentifier errorId)

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

default void notifyInvocationStopped (String message)

TradeFed が最終的にシャットダウンすることをTestInvocationに通知します。

公開メソッド

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 s

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

notifyInvocationForceStopped

public void notifyInvocationForceStopped (String message, 
                ErrorIdentifier errorId)

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

パラメーター
message String : 呼び出しの停止に関連するメッセージ

errorId ErrorIdentifier : 強制停止に関連付けられた識別子

notifyInvocationStopped

public void notifyInvocationStopped (String message)

TradeFed が最終的にシャットダウンすることをTestInvocationに通知します。

パラメーター
message String : 呼び出しの停止に関連するメッセージ