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 |
走る
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 |