DeviceTestSuite
public class DeviceTestSuite
extends TestSuite
implements IDeviceTest , IRemoteTest
java.lang.Object | ||
junit.framework.TestSuite | ||
com.android.tradefed.testtype.DeviceTestSuite |
Zestaw testów Helper JUnit, który zapewnia usługi IRemoteTest
i IDeviceTest
.
Streszczenie
Konstruktorzy publiczni | |
---|---|
DeviceTestSuite (Class<?> testClass) | |
DeviceTestSuite () |
Metody publiczne | |
---|---|
void | addTestSuite (Class testClass) Dodaje testy z danej klasy do pakietu |
ITestDevice | getDevice () Pobierz testowane urządzenie. |
void | run ( TestInformation testInfo, ITestInvocationListener listener) Uruchamia testy i raportuje wyniki słuchaczowi. |
void | runTest (Test test, TestResult result) Zastępuje metodę nadrzędną, aby przekazać urządzenie do dołączonego testu |
void | setDevice ( ITestDevice device) Wstrzyknąć testowane urządzenie. |
Konstruktorzy publiczni
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
Parametry | |
---|---|
testClass | Class |
DeviceTestSuite
public DeviceTestSuite ()
Metody publiczne
addTestSuite
public void addTestSuite (Class testClass)
Dodaje testy z danej klasy do pakietu
Parametry | |
---|---|
testClass | Class |
pobierzUrządzenie
public ITestDevice getDevice ()
Pobierz testowane urządzenie.
Zwroty | |
---|---|
ITestDevice | ITestDevice |
biegać
public void run (TestInformation testInfo, ITestInvocationListener listener)
Uruchamia testy i raportuje wyniki słuchaczowi.
Parametry | |
---|---|
testInfo | TestInformation : obiekt TestInformation zawierający przydatne informacje do uruchamiania testów. |
listener | ITestInvocationListener : ITestInvocationListener wyników testów |
Rzuty | |
---|---|
DeviceNotAvailableException |
runTest
public void runTest (Test test, TestResult result)
Zastępuje metodę nadrzędną, aby przekazać urządzenie do dołączonego testu
Parametry | |
---|---|
test | Test |
result | TestResult |
setDevice
public void setDevice (ITestDevice device)
Wstrzyknąć testowane urządzenie.
Parametry | |
---|---|
device | ITestDevice : ITestDevice do użycia |