ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

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


Program do uruchamiania testów dla pliku wykonywalnego działającego na urządzeniu docelowym. Runner implementuje IDeviceTest, ponieważ plik binarny jest uruchamiany na urządzeniu.

Podsumowanie

Stałe

String DEVICE_LOST_ERROR

String ROOT_LOST_ERROR

Konstruktory publiczne

ExecutableTargetTest()

Metody publiczne

String findBinary(String binary)

Wyszukaj plik binarny, aby móc go uruchomić.

boolean getCollectTestsOnly()
ITestDevice getDevice()

Przygotuj urządzenie testowe.

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

Uruchamia plik binarny w podanej ścieżce.

void setDevice(ITestDevice device)

Wstrzyknij testowane urządzenie.

FailureDescription shouldAbortRun(TestDescription description)

Sprawdź, czy testRun powinien zakończyć się wcześniej.

Metody chronione

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

Sprawdź wynik polecenia testowego.

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

Stałe

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

Stała wartość: „Urządzenie zostało zgubione przed %s; przerywam działanie”.

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

Constant Value: "Root access was lost prior to %s; aborting run."

Konstruktory publiczne

ExecutableTargetTest

public ExecutableTargetTest ()

Metody publiczne

findBinary

public String findBinary (String binary)

Wyszukaj plik binarny, aby móc go uruchomić.

Parametry
binary String: ścieżka do pliku binarnego lub po prostu jego nazwa.

Zwraca
String Ścieżka do pliku binarnego lub wartość null, jeśli nie znaleziono pliku.

Zgłasza
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

Zwraca
boolean

getDevice

public ITestDevice getDevice ()

Przygotuj urządzenie testowe.

Zwraca
ITestDevice ITestDevice

runBinary

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

Uruchamia plik binarny w podanej ścieżce.

Parametry
binaryPath String: ścieżka pliku binarnego.

listener ITestInvocationListener: odbiorca, do którego należy zgłosić wyniki.

description TestDescription: trwający test.

Zgłasza
DeviceNotAvailableException
IOException

setDevice

public void setDevice (ITestDevice device)

Wstrzyknij testowane urządzenie.

Parametry
device ITestDevice: ITestDevice, którego chcesz użyć.

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

Sprawdź, czy testRun powinien zakończyć się wcześniej.

Parametry
description TestDescription: trwający test.

Zwraca
FailureDescription FailureDescription, jeśli pętla wykonania ma zostać zakończona.

Metody chronione

checkCommandResult

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

Sprawdź wynik polecenia testowego.

Parametry
result CommandResult: wynik testu polecenia CommandResult

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: trwający test.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

Zwraca
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

Zwraca
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

Zwraca
boolean