Test pliku wykonywalnego

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

Obiekt Java.lang.Object
com.android.tradefed.testtype.binary.ExecutableBaseTest
com.android.tradefed.testtype.binary.ExecutableTargetTest


Tester uruchamiający pliki wykonywalne na celu. Biegacz implementuje IDeviceTest od czasu uruchomienia pliku binarnego na urządzeniu.

Streszczenie

Konstruktorzy publiczni

ExecutableTargetTest ()

Metody publiczne

String findBinary (String binary)

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

ITestDevice getDevice ()

Oddaj urządzenie do testu.

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

Właściwie uruchom plik binarny pod podaną ścieżką.

void setDevice ( ITestDevice device)

Wstrzyknij testowane urządzenie.

Metody chronione

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

Sprawdź wynik polecenia testowego.

boolean getSkipBinaryCheck ()

Konstruktorzy publiczni

Test pliku wykonywalnego

public ExecutableTargetTest ()

Metody publiczne

znajdźBinary

public String findBinary (String binary)

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

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

Zwroty
String Ścieżka do pliku binarnego lub wartość null, jeśli nie została znaleziona.

Rzuca
DeviceNotAvailableException

pobierz urządzenie

public ITestDevice getDevice ()

Oddaj urządzenie do testu.

Zwroty
ITestDevice ITestDevice

uruchomBinarny

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

Właściwie uruchom plik binarny pod podaną ścieżką.

Parametry
binaryPath String : Ścieżka pliku binarnego.

listener ITestInvocationListener : słuchacz, w którym należy zgłosić wyniki.

description TestDescription : Test w toku.

Rzuca
DeviceNotAvailableException

ustaw urządzenie

public void setDevice (ITestDevice device)

Wstrzyknij testowane urządzenie.

Parametry
device ITestDevice : ITestDevice do użycia

Metody chronione

sprawdźWynik polecenia

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 w toku.

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

Zwroty
boolean