ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableTargetTest


ターゲットで実行される実行可能ファイルのテストランナー。バイナリはデバイスで実行されるため、ランナーは IDeviceTest を実装します。

概要

フィールド

public static final String DEVICE_LOST_ERROR

public static final String ROOT_LOST_ERROR

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

ExecutableTargetTest()

パブリック メソッド

String findBinary(String binary)

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

boolean getCollectTestsOnly()
ITestDevice getDevice()

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

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

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

void setDevice(ITestDevice device)

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

FailureDescription shouldAbortRun(TestDescription description)

testRun を早期に終了する必要があるかどうかを確認します。

保護されたメソッド

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

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

boolean doesRunBinaryGenerateTestResults()
boolean doesRunBinaryGenerateTestRuns()
boolean getSkipBinaryCheck()

フィールド

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

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

ExecutableTargetTest

public ExecutableTargetTest ()

パブリック メソッド

findBinary

public String findBinary (String binary)

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

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

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

例外
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

戻り値
boolean

getDevice

public ITestDevice getDevice ()

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

戻り値
ITestDevice ITestDevice

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

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

testRun を早期に終了する必要があるかどうかを確認します。

パラメータ
description TestDescription: 進行中のテスト。

戻り値
FailureDescription 実行ループを終了する必要がある場合の FailureDescription。

保護されたメソッド

checkCommandResult

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

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

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

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: 進行中のテスト。

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

戻り値
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

戻り値
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

戻り値
boolean