ExecutableHostTest
public class ExecutableHostTest
extends ExecutableBaseTest
implements IDeviceTest ,IBuildReceiver
java.lang.Object | ||
↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
↳ | com.android.tradefed.testtype.binary.ExecutableHostTest |
ホストで実行されている実行可能ファイルのテストランナー。ホストバイナリがデバイスと通信する可能性があるため、ランナーはIDeviceTest
実装します。受信したデバイスがStubDevice
でない場合、シリアルは使用するバイナリに渡されます。
概要
パブリックコンストラクター | |
---|---|
ExecutableHostTest () |
パブリックメソッド | |
---|---|
String | findBinary (String binary) バイナリを検索して実行できるようにします。 |
final ITestDevice | getDevice () テスト対象のデバイスを入手します。 |
void | runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description) 実際には、指定されたパスでバイナリを実行します。 |
final void | setBuild ( IBuildInfo buildInfo) |
final void | setDevice ( ITestDevice device) テスト対象のデバイスを注入します。 |
パブリックコンストラクター
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 |
setDevice
public final void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice :使用するITestDevice |