DeviceTestSuite
  public
  
  
  
  class
  DeviceTestSuite
  
  
  
  
    extends TestSuite
  
  
  
  
  
      implements
      
        IDeviceTest, 
      
        IRemoteTest
      
  
  
| java.lang.Object | ||
| ↳ | junit.framework.TestSuite | |
| ↳ | com.android.tradefed.testtype.DeviceTestSuite | |
IRemoteTest サービスと IDeviceTest サービスを提供するヘルパー JUnit テストスイート。
概要
| パブリック コンストラクタ | |
|---|---|
| 
      DeviceTestSuite()
       | |
| 
      DeviceTestSuite(Class<?> testClass)
       | |
| パブリック メソッド | |
|---|---|
| 
        
        
        
        
        
        void | 
      addTestSuite(Class<T> testClass)
      指定されたクラスのテストがスイートに追加されます。 | 
| 
        
        
        
        
        
        ITestDevice | 
      getDevice()
      テスト対象デバイスを入手します。 | 
| 
        
        
        
        
        
        void | 
      run(TestInformation testInfo, ITestInvocationListener listener)
      テストを実行し、結果をリスナーに報告します。 | 
| 
        
        
        
        
        
        void | 
      runTest(Test test, TestResult result)
      親メソッドをオーバーライドして、デバイスを含まれるテストに渡します | 
| 
        
        
        
        
        
        void | 
      setDevice(ITestDevice device)
      テスト対象デバイスを挿入します。 | 
パブリック コンストラクタ
DeviceTestSuite
public DeviceTestSuite ()
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
| パラメータ | |
|---|---|
| testClass | Class | 
パブリック メソッド
addTestSuite
public void addTestSuite (Class<T> testClass)
指定されたクラスのテストがスイートに追加されます。
| パラメータ | |
|---|---|
| testClass | Class | 
ホームラン
public void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
| testInfo | TestInformation: テストの実行に役立つ情報が含まれるTestInformationオブジェクト。 | 
| listener | ITestInvocationListener: テスト結果のITestInvocationListener | 
| 例外 | |
|---|---|
| DeviceNotAvailableException | |
runTest
public void runTest (Test test, 
                TestResult result)親メソッドをオーバーライドして、デバイスを含まれるテストに渡す
| パラメータ | |
|---|---|
| test | Test | 
| result | TestResult | 
setDevice
public void setDevice (ITestDevice device)
テスト対象デバイスを挿入します。
| パラメータ | |
|---|---|
| device | ITestDevice: 使用するITestDevice | 
