IRemoteTest

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


結果をITestInvocationListenerに直接報告するテスト。

これには JUnit に比べて次の利点があります。

  • リモート テストの結果を JUnit Test オブジェクトから不必要にマーシャリングおよびアンマーシャリングする必要がないため、Android デバイス上でリモートで実行されたテストの結果をレポートするのが簡単になります。
  • テスト指標のレポートをサポートします

まとめ

パブリックメソッド

default void run ( ITestInvocationListener listener)

このメソッドは廃止されました。代わりにrun(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener)を使用してください。

default void run ( TestInformation testInfo, ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

パブリックメソッド

走る

public void run (ITestInvocationListener listener)

このメソッドは廃止されました。
代わりにrun(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener)を使用してください。

テストを実行し、結果をリスナーに報告します。

パラメーター
listener ITestInvocationListener : テスト結果のITestInvocationListener

投げる
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

走る

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

パラメーター
testInfo TestInformation : テストを実行するために役立つ情報を含むTestInformationオブジェクト。

listener ITestInvocationListener : テスト結果のITestInvocationListener

投げる
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException