デバイステストスイート
public class DeviceTestSuite
extends TestSuite
implements IDeviceTest , IRemoteTest
java.lang.オブジェクト | ||
↳ | 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) テスト対象のデバイスを注入します。 |
パブリックコンストラクター
デバイステストスイート
public DeviceTestSuite (Class<?> testClass)
パラメーター | |
---|---|
testClass | Class |
デバイステストスイート
public DeviceTestSuite ()
パブリックメソッド
テストスイートを追加
public void addTestSuite (Class<T> testClass)
指定されたクラスのテストをスイートに追加します
パラメーター | |
---|---|
testClass | Class |
走る
public void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
パラメーター | |
---|---|
testInfo | TestInformation : テストを実行するために役立つ情報を含むTestInformation オブジェクト。 |
listener | ITestInvocationListener : テスト結果のITestInvocationListener |
投げる | |
---|---|
DeviceNotAvailableException |
実行テスト
public void runTest (Test test, TestResult result)
親メソッドをオーバーライドしてデバイスを組み込みのテストに渡します
パラメーター | |
---|---|
test | Test |
result | TestResult |
セットデバイス
public void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice : 使用するITestDevice |