Test pliku wykonywalnego
public class ExecutableTargetTest
extends ExecutableBaseTest
implements IDeviceTest
java.lang.Object | ||
com.android.tradefed.testtype.binary.ExecutableBaseTest | ||
com.android.tradefed.testtype.binary.ExecutableTargetTest |
Biegacz testowy pod kątem wykonywalnego biegu na tarczy. Program uruchamiający implementuje IDeviceTest
od czasu uruchomienia binarnego na urządzeniu.
Streszczenie
Konstruktorzy publiczni | |
---|---|
ExecutableTargetTest () |
Metody publiczne | |
---|---|
String | findBinary (String binary) Wyszukaj plik binarny, aby móc go uruchomić. |
ITestDevice | getDevice () Pobierz testowane urządzenie. |
void | runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description) Właściwie uruchom plik binarny na podanej ścieżce. |
void | setDevice ( ITestDevice device) Wstrzyknąć testowane urządzenie. |
Metody chronione | |
---|---|
void | checkCommandResult ( CommandResult result, ITestInvocationListener listener, TestDescription description) Sprawdź wynik polecenia testowego. |
Konstruktorzy publiczni
Test pliku wykonywalnego
public ExecutableTargetTest ()
Metody publiczne
znajdź binarny
public String findBinary (String binary)
Wyszukaj plik binarny, aby móc go uruchomić.
Parametry | |
---|---|
binary | String : ścieżka pliku binarnego lub po prostu nazwa pliku binarnego. |
Zwroty | |
---|---|
String | Ścieżka do pliku binarnego lub null, jeśli nie znaleziono. |
Rzuty | |
---|---|
DeviceNotAvailableException |
pobierzUrządzenie
public ITestDevice getDevice ()
Pobierz testowane urządzenie.
Zwroty | |
---|---|
ITestDevice | ITestDevice |
runBinary
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
Właściwie uruchom plik binarny w podanej ścieżce.
Parametry | |
---|---|
binaryPath | String : ścieżka pliku binarnego. |
listener | ITestInvocationListener : odbiornik, w którym należy zgłosić wyniki. |
description | TestDescription : test w toku. |
Rzuty | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
Wstrzyknąć testowane urządzenie.
Parametry | |
---|---|
device | ITestDevice : ITestDevice do użycia |
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 w toku. |