KUnitModuleTest
public
class
KUnitModuleTest
extends ExecutableTargetTest
| java.lang.Object | |||
| ↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | ||
| ↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest | ||
| ↳ | com.android.tradefed.testtype.binary.KUnitModuleTest | ||
Narzędzie do testowania modułów testów KUnit na urządzeniu.
Podsumowanie
Fieldsem | |
|---|---|
public
static
final
String |
KUNIT_DEBUGFS_PATH
|
public
static
final
String |
KUNIT_RESULTS_FMT
|
Konstruktory publiczne | |
|---|---|
KUnitModuleTest()
|
|
Metody publiczne | |
|---|---|
String
|
findBinary(String binary)
Wyszukaj plik binarny, aby móc go uruchomić. |
boolean
|
getCollectTestsOnly()
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy. |
void
|
runBinary(String modulePath, ITestInvocationListener listener, TestDescription description)
Uruchomić plik binarny na podanej ścieżce. |
Chronione metody | |
|---|---|
boolean
|
doesRunBinaryGenerateTestResults()
|
|
getAllTestCommands()
Zmień kolumnę mBinaryPaths na mTestCommands, aby zachować spójność. |
Fieldsem
KUNIT_DEBUGFS_PATH
public static final String KUNIT_DEBUGFS_PATH
KUNIT_RESULTS_FMT
public static final String KUNIT_RESULTS_FMT
Konstruktory publiczne
KUnitModuleTest
public KUnitModuleTest ()
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 |
|
home run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy.
| Parametry | |
|---|---|
testInfo |
TestInformation: obiekt TestInformation zawierający przydatne informacje do przeprowadzania testów. |
listener |
ITestInvocationListener: ITestInvocationListener wyników testu |
| Rzuty | |
|---|---|
DeviceNotAvailableException |
|
runBinary
public void runBinary (String modulePath,
ITestInvocationListener listener,
TestDescription description)Uruchomić plik binarny na podanej ścieżce.
| Parametry | |
|---|---|
modulePath |
String: ścieżka pliku binarnego. |
listener |
ITestInvocationListener: odbiorca, do którego mają być wysyłane wyniki. |
description |
TestDescription: trwający test. |
| Rzuty | |
|---|---|
DeviceNotAvailableException |
|
Chronione metody
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
| Zwroty | |
|---|---|
boolean |
|
getAllTestCommands
protectedgetAllTestCommands ()
Zmień kolumnę mBinaryPaths na mTestCommands, aby zachować spójność.
| Zwroty | |
|---|---|
|
MapERROR(/LinkedHashMap)<string, string=""> z testCommands.</string,> |