実行可能ターゲットテスト

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.オブジェクト
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)

テストコマンドの結果を確認します。

boolean getSkipBinaryCheck ()

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

実行可能ターゲットテスト

public ExecutableTargetTest ()

パブリックメソッド

バイナリを見つける

public String findBinary (String binary)

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

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

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

投げる
DeviceNotAvailableException

デバイスの取得

public ITestDevice getDevice ()

テスト対象のデバイスを取得します。

戻り値
ITestDevice ITestDevice

ランバイナリ

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

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

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

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

description TestDescription : 進行中のテスト。

投げる
DeviceNotAvailableException

セットデバイス

public void setDevice (ITestDevice device)

テスト対象のデバイスを注入します。

パラメーター
device ITestDevice : 使用するITestDevice

保護されたメソッド

checkコマンド結果

protected void checkCommandResult (CommandResult result, 
                ITestInvocationListener listener, 
                TestDescription description)

テストコマンドの結果を確認します。

パラメーター
result CommandResult : コマンドのテスト結果CommandResult

listener ITestInvocationListener : ITestInvocationListener

description TestDescription : 進行中のテスト。

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

戻り値
boolean