DeviceTestSuite

public class DeviceTestSuite
extends TestSuite implements IDeviceTest , IRemoteTest

java.lang.Object
junit.framework.TestSuite
com.android.tradefed.testtype.DeviceTestSuite


IRemoteTestおよびIDeviceTestサービスを提供するヘルパー JUnit テスト スイート。

まとめ

パブリック コンストラクター

DeviceTestSuite (Class<?> testClass)
DeviceTestSuite ()

公開メソッド

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 (Class<?> testClass)

パラメーター
testClass Class

DeviceTestSuite

public DeviceTestSuite ()

公開メソッド

addTestSuite

public void addTestSuite (Class<T> testClass)

指定されたクラスのテストをスイートに追加します

パラメーター
testClass Class

getDevice

public ITestDevice getDevice ()

テスト対象のデバイスを取得します。

戻り値
ITestDevice ITestDevice

走る

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