WykonywalnyTargetTest
public class ExecutableTargetTest
extends ExecutableBaseTest
implements IDeviceTest
java.lang.Obiekt | ||
↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest |
Test runner dla pliku wykonywalnego działającego w miejscu docelowym. Runner implementuje IDeviceTest
od uruchomienia binarnego na urządzeniu.
Streszczenie
Konstruktory publiczne | |
---|---|
ExecutableTargetTest () |
Metody publiczne | |
---|---|
String | findBinary (String binary) Wyszukaj plik binarny, aby móc go uruchomić. |
ITestDevice | getDevice () Przetestuj urządzenie. |
void | runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description) Właściwie uruchom plik binarny na podanej ścieżce. |
void | setDevice ( ITestDevice device) Wstrzyknij testowane urządzenie. |
Metody chronione | |
---|---|
void | checkCommandResult ( CommandResult result, ITestInvocationListener listener, TestDescription description) Sprawdź wynik polecenia testowego. |
Konstruktory publiczne
WykonywalnyTargetTest
public ExecutableTargetTest ()
Metody publiczne
znajdź plik 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 została znaleziona. |
Rzuty | |
---|---|
DeviceNotAvailableException |
pobierzUrządzenie
public ITestDevice getDevice ()
Przetestuj urządzenie.
Zwroty | |
---|---|
ITestDevice | ITestDevice |
uruchomBinarny
public void runBinary (String binaryPath, ITestInvocationListener listener, TestDescription description)
Właściwie uruchom plik binarny na podanej ścieżce.
Parametry | |
---|---|
binaryPath | String : Ścieżka pliku binarnego. |
listener | ITestInvocationListener : Odbiornik, w którym mają być zgłaszane wyniki. |
description | TestDescription : Test w toku. |
Rzuty | |
---|---|
DeviceNotAvailableException |
ustaw urządzenie
public void setDevice (ITestDevice device)
Wstrzyknij testowane urządzenie.
Parametry | |
---|---|
device | ITestDevice : ITestDevice do użycia |
Metody chronione
SprawdźWynikPolecenia
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. |