IRemoteTest

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


Test, który raportuje wyniki bezpośrednio do ITestInvocationListener .

Ma to następujące zalety w porównaniu z JUnit.

  • łatwiej jest raportować wyniki testu, który został uruchomiony zdalnie na urządzeniu z systemem Android, ponieważ wyniki zdalnego testu nie muszą być niepotrzebnie organizowane i usuwane z obiektów testowych JUnit.
  • obsługuje raportowanie metryk testowych

Streszczenie

Metody publiczne

default void run ( ITestInvocationListener listener)

Ta metoda jest przestarzała. Zamiast tego użyj funkcji run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener) .

default void run ( TestInformation testInfo, ITestInvocationListener listener)

Uruchamia testy i raportuje wyniki słuchaczowi.

Metody publiczne

uruchomić

public void run (ITestInvocationListener listener)

Ta metoda jest przestarzała.
Zamiast tego użyj funkcji run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener) .

Uruchamia testy i raportuje wyniki słuchaczowi.

Parametry
listener ITestInvocationListener : ITestInvocationListener wyników testów

Rzuca
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

uruchomić

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Uruchamia testy i raportuje wyniki słuchaczowi.

Parametry
testInfo TestInformation : Obiekt TestInformation zawierający informacje przydatne do uruchamiania testów.

listener ITestInvocationListener : ITestInvocationListener wyników testów

Rzuca
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException