DeviceTestSuite
public class DeviceTestSuite
TestSuite'i extends TestSuite
implements IDeviceTest , IRemoteTest
java.lang.Nesne | ||
↳ | junit.framework.TestSuite | |
↳ | com.android.tradefed.testtype.DeviceTestSuite |
IRemoteTest
ve IDeviceTest
hizmetlerini sağlayan yardımcı JUnit test paketi.
Özet
Kamu inşaatçıları | |
---|---|
DeviceTestSuite (Class<?> testClass) | |
DeviceTestSuite () |
Genel yöntemler | |
---|---|
void | addTestSuite (Class testClass) Verilen sınıftan testleri takıma ekler |
ITestDevice | getDevice () Cihazı teste tabi tutun. |
void | run ( TestInformation testInfo, ITestInvocationListener listener) Testleri çalıştırır ve sonucu dinleyiciye bildirir. |
void | runTest (Test test, TestResult result) Cihazda dahil edilen teste geçmek için ana yöntemi geçersiz kılar |
void | setDevice ( ITestDevice device) Test edilen cihazı enjekte edin. |
Kamu inşaatçıları
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
parametreler | |
---|---|
testClass | Class |
DeviceTestSuite
public DeviceTestSuite ()
Genel yöntemler
addTestSuite
public void addTestSuite (Class testClass)
Verilen sınıftan testleri takıma ekler
parametreler | |
---|---|
testClass | Class |
koşmak
public void run (TestInformation testInfo, ITestInvocationListener listener)
Testleri çalıştırır ve sonucu dinleyiciye bildirir.
parametreler | |
---|---|
testInfo | TestInformation : Testleri çalıştırmak için faydalı bilgiler içeren TestInformation nesnesi. |
listener | ITestInvocationListener : test sonuçlarının ITestInvocationListener |
atar | |
---|---|
DeviceNotAvailableException |
runTest
public void runTest (Test test, TestResult result)
Cihazda dahil edilen teste geçmek için ana yöntemi geçersiz kılar
parametreler | |
---|---|
test | Test |
result | TestResult |
setCihaz
public void setDevice (ITestDevice device)
Test edilen cihazı enjekte edin.
parametreler | |
---|---|
device | ITestDevice : kullanılacak ITestDevice |