Uzaktan Test

public interface IRemoteTest

com.android.tradefed.testtype.IRemoteTest


Sonuçları doğrudan bir ITestInvocationListener bildiren bir test.

Bunun bir JUnit'e göre aşağıdaki avantajları vardır.

  • Bir uzaktan testin sonuçlarının JUnit Test nesnelerinden gereksiz yere sıralanması ve sıralanması gerekmediğinden, bir Android cihazında uzaktan çalıştırılan bir testin sonuçlarını raporlamak daha kolaydır.
  • test ölçümlerini raporlamayı destekler

Özet

Genel yöntemler

default void run ( ITestInvocationListener listener)

Bu yöntem kullanımdan kaldırıldı. Bunun yerine run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener) kullanın.

default void run ( TestInformation testInfo, ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

Genel yöntemler

koşmak

public void run (ITestInvocationListener listener)

Bu yöntem kullanımdan kaldırıldı.
Bunun yerine run(com.android.tradefed.invoker.TestInformation, com.android.tradefed.result.ITestInvocationListener) kullanın.

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

parametreler
listener ITestInvocationListener : test sonuçlarının ITestInvocationListener

Atar
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

koşmak

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

parametreler
testInfo TestInformation : Testleri çalıştırmak için yararlı bilgiler içeren TestInformation nesnesi.

listener ITestInvocationListener : test sonuçlarının ITestInvocationListener

Atar
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException