DeviceTestSuite
  public
  
  
  
  class
  DeviceTestSuite
  
  
  
  
    extends TestSuite
  
  
  
  
  
      implements
      
        IDeviceTest, 
      
        IRemoteTest
      
  
  
| java.lang.Object | ||
| ↳ | junit.framework.TestSuite | |
| ↳ | com.android.tradefed.testtype.DeviceTestSuite | |
Pomocniczy pakiet testów JUnit, który zapewnia usługi IRemoteTest i IDeviceTest.
Podsumowanie
| Konstruktory publiczne | |
|---|---|
| 
      DeviceTestSuite()
       | |
| 
      DeviceTestSuite(Class<?> testClass)
       | |
| Metody publiczne | |
|---|---|
| 
        
        
        
        
        
        void | 
      addTestSuite(Class<T> testClass)
      Dodaje testy z danej klasy do zestawu | 
| 
        
        
        
        
        
        ITestDevice | 
      getDevice()
      Przygotuj urządzenie do testowania. | 
| 
        
        
        
        
        
        void | 
      run(TestInformation testInfo, ITestInvocationListener listener)
      Przeprowadza testy i przekazuje wyniki do odbiorcy. | 
| 
        
        
        
        
        
        void | 
      runTest(Test test, TestResult result)
      Zastępuje metodę nadrzędną, aby przekazać urządzenie do testu dołączonego | 
| 
        
        
        
        
        
        void | 
      setDevice(ITestDevice device)
      Wstrzyknij urządzenie testowe. | 
Konstruktory publiczne
DeviceTestSuite
public DeviceTestSuite ()
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
| Parametry | |
|---|---|
| testClass | Class | 
Metody publiczne
addTestSuite
public void addTestSuite (Class<T> testClass)
Dodaje testy z danej klasy do zestawu
| Parametry | |
|---|---|
| testClass | Class | 
getDevice
public ITestDevice getDevice ()
Przygotuj urządzenie do testowania.
| Zwroty | |
|---|---|
| ITestDevice | ITestDevice | 
home run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki do odbiorcy.
| Parametry | |
|---|---|
| testInfo | TestInformation: obiektTestInformationzawierający przydatne informacje do przeprowadzania testów. | 
| listener | ITestInvocationListener:ITestInvocationListenerwyników testu | 
| Rzuty | |
|---|---|
| DeviceNotAvailableException | |
runTest
public void runTest (Test test, 
                TestResult result)Zastępuje metodę nadrzędną, aby przekazać urządzenie do testu dołączonego
| Parametry | |
|---|---|
| test | Test | 
| result | TestResult | 
setDevice
public void setDevice (ITestDevice device)
Wstrzyknij urządzenie testowe.
| Parametry | |
|---|---|
| device | ITestDevice:ITestDevicedo użycia | 
