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 przeprowadzania testów plików wykonywalnych 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

Publiczne konstruktory

ExecutableTargetTest()

Metody publiczne

String findBinary(String binary)

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

boolean getCollectTestsOnly()
ITestDevice getDevice()

Przygotuj testowane urządzenie.

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."

Publiczne konstruktory

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.

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

Zgłasza
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

Zwroty
boolean

getDevice

public ITestDevice getDevice ()

Przygotuj testowane urządzenie.

Zwroty
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: test jest w trakcie realizacji.

Zgłasza
DeviceNotAvailableException

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: test jest w trakcie realizacji.

Zwroty
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: test jest w trakcie realizacji.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

Zwroty
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

Zwroty
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

Zwroty
boolean