DeviceTestSuite

public class DeviceTestSuite
extends TestSuite implements IDeviceTest , IRemoteTest

java.lang.Object
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<T> testClass)

Verilen sınıftaki testleri süite 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<T> testClass)

Verilen sınıftaki testleri süite ekler

Parametreler
testClass Class

cihaz al

public ITestDevice getDevice ()

Cihazı teste tabi tutun.

İadeler
ITestDevice ITestDevice

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 yararlı 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