遠端測試

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


直接將結果回報給ITestInvocationListener的測試。

與 JUnit 相比,它具有以下優點。

  • 更容易報告在 Android 裝置上遠端執行的測試的結果,因為遠端測試的結果不需要從 JUnit Test 物件進行不必要的編組和取消編組。
  • 支援報告測試指標

概括

公共方法

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 TestInformationTestInformation物件包含執行測試的有用資訊。

listener ITestInvocationListener :測試結果的ITestInvocationListener

投擲
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException