実行可能ホストテスト

public class ExecutableHostTest
extends ExecutableBaseTest

java.lang.オブジェクト
com.android.tradefed.testtype.binary.ExecutableBaseTest
com.android.tradefed.testtype.binary.ExecutableHostTest


ホスト上で実行される実行可能ファイルのテスト ランナー。ホスト バイナリがデバイスと通信する可能性があるため、ランナーはIDeviceTestを実装します。受信したデバイスがStubDeviceではない場合、シリアルは使用されるバイナリに渡されます。

まとめ

パブリックコンストラクター

ExecutableHostTest ()

パブリックメソッド

String findBinary (String binary)

バイナリを検索して実行できるようにします。

void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)

実際に指定されたパスでバイナリを実行します。

パブリックコンストラクター

実行可能ホストテスト

public ExecutableHostTest ()

パブリックメソッド

バイナリを見つける

public String findBinary (String binary)

バイナリを検索して実行できるようにします。

パラメーター
binary String : バイナリのパス、または単にバイナリ名。

戻り値
Stringバイナリへのパス。見つからない場合は null。

ランバイナリ

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

実際に指定されたパスでバイナリを実行します。

パラメーター
binaryPath String : バイナリのパス。

listener ITestInvocationListener : 結果を報告するリスナー。

description TestDescription : 進行中のテスト。

投げる
DeviceNotAvailableException