ExecutableHostTest

public class ExecutableHostTest
extends ExecutableBaseTest

java.lang.Object
   ↳ 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)

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

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

ExecutableHostTest

public ExecutableHostTest ()

パブリック メソッド

findBinary

public String findBinary (String binary)

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

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

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

runBinary

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

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

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

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

description TestDescription: 進行中のテスト。

例外
DeviceNotAvailableException