Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.

IRemoteTest

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


Test, który zgłasza wyniki bezpośrednio do ITestInvocationListener .

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

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

Streszczenie

Metody publiczne

default void run ( ITestInvocationListener listener)

Ta metoda jest przestarzała. Zamiast tego użyj 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

biegać

public void run (ITestInvocationListener listener)

Ta metoda jest przestarzała.
Zamiast tego użyj 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

Rzuty
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

biegać

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Uruchamia testy i raportuje wyniki słuchaczowi.

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

listener ITestInvocationListener : ITestInvocationListener wyników testów

Rzuty
DeviceNotAvailableException