ExecutableTargetTest
public class ExecutableTargetTest
extends ExecutableBaseTest
implements IDeviceTest
java.lang.Object | ||
↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest |
ターゲットで実行されている実行可能ファイルのテスト ランナー。バイナリはデバイス上で実行されるため、ランナーはIDeviceTest
を実装します。
まとめ
パブリック コンストラクター | |
---|---|
ExecutableTargetTest () |
公開メソッド | |
---|---|
String | findBinary (String binary) バイナリを検索して実行できるようにします。 |
ITestDevice | getDevice () テスト対象のデバイスを取得します。 |
void | runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description) 指定されたパスでバイナリを実際に実行します。 |
void | setDevice ( ITestDevice device) テスト対象のデバイスを注入します。 |
保護されたメソッド | |
---|---|
void | checkCommandResult ( CommandResult result, ITestInvocationListener listener, TestDescription description) テストコマンドの結果を確認してください。 |
パブリック コンストラクター
ExecutableTargetTest
public ExecutableTargetTest ()
公開メソッド
findBinary
public String findBinary (String binary)
バイナリを検索して実行できるようにします。
パラメーター | |
---|---|
binary | String : バイナリのパスまたは単にバイナリ名。 |
戻り値 | |
---|---|
String | バイナリへのパス、または見つからない場合は null。 |
スロー | |
---|---|
DeviceNotAvailableException |
runBinary
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
指定されたパスでバイナリを実際に実行します。
パラメーター | |
---|---|
binaryPath | String : バイナリのパス。 |
listener | ITestInvocationListener : 結果を報告するリスナー。 |
description | TestDescription : 進行中のテスト。 |
スロー | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice : 使用するITestDevice |
保護されたメソッド
checkCommandResult
protected void checkCommandResult (CommandResult result, ITestInvocationListener listener, TestDescription description)
テストコマンドの結果を確認してください。
パラメーター | |
---|---|
result | CommandResult : コマンドCommandResult のテスト結果 |
listener | ITestInvocationListener : ITestInvocationListener |
description | TestDescription : 進行中のテスト。 |