ExecutableTargetTest
public
class
ExecutableTargetTest
extends ExecutableBaseTest
implements
IDeviceTest
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
| ↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest | |
Narzędzie do testowania plików wykonywalnych na urządzeniu docelowym. Runner implementuje IDeviceTest, ponieważ binarny plik wykonywalny działa na urządzeniu.
Podsumowanie
Fieldsem | |
|---|---|
public
static
final
String |
DEVICE_LOST_ERROR
|
public
static
final
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 do testowania. |
void
|
runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)
Uruchomić plik binarny na podanej ścieżce. |
void
|
setDevice(ITestDevice device)
Wstrzyknij urządzenie testowe. |
FailureDescription
|
shouldAbortRun(TestDescription description)
Sprawdź, czy testRun powinien zakończyć się przedwcześnie. |
Chronione metody | |
|---|---|
void
|
checkCommandResult(CommandResult result, ITestInvocationListener listener, TestDescription description)
Sprawdź wynik polecenia testowego. |
boolean
|
doesRunBinaryGenerateTestResults()
|
boolean
|
doesRunBinaryGenerateTestRuns()
|
boolean
|
getSkipBinaryCheck()
|
Fieldsem
DEVICE_LOST_ERROR
public static final String DEVICE_LOST_ERROR
ROOT_LOST_ERROR
public static final String ROOT_LOST_ERROR
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 nazwa pliku binarnego. |
| Zwroty | |
|---|---|
String |
Ścieżka do pliku binarnego lub wartość null, jeśli plik nie został znaleziony. |
| Rzuty | |
|---|---|
DeviceNotAvailableException |
|
getCollectTestsOnly
public boolean getCollectTestsOnly ()
| Zwroty | |
|---|---|
boolean |
|
getDevice
public ITestDevice getDevice ()
Przygotuj urządzenie do testowania.
| Zwroty | |
|---|---|
ITestDevice |
ITestDevice |
runBinary
public void runBinary (String binaryPath,
ITestInvocationListener listener,
TestDescription description)Uruchomić plik binarny na podanej ścieżce.
| Parametry | |
|---|---|
binaryPath |
String: ścieżka pliku binarnego. |
listener |
ITestInvocationListener: odbiorca, do którego mają być wysyłane wyniki. |
description |
TestDescription: trwający test. |
| Rzuty | |
|---|---|
DeviceNotAvailableException |
|
setDevice
public void setDevice (ITestDevice device)
Wstrzyknij urządzenie testowe.
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice do użycia |
shouldAbortRun
public FailureDescription shouldAbortRun (TestDescription description)
Sprawdź, czy testRun powinien zakończyć się przedwcześnie.
| Parametry | |
|---|---|
description |
TestDescription: trwający test. |
| Zwroty | |
|---|---|
FailureDescription |
FailureDescription, jeśli pętla działania ma zostać zakończona. |
Chronione metody
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 ()
| Zwroty | |
|---|---|
boolean |
|
doesRunBinaryGenerateTestRuns
protected boolean doesRunBinaryGenerateTestRuns ()
| Zwroty | |
|---|---|
boolean |
|
getSkipBinaryCheck
protected boolean getSkipBinaryCheck ()
| Zwroty | |
|---|---|
boolean |
|