JarHostTest.HostTestListener

public class JarHostTest.HostTestListener
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.compatibility.common.tradefed.testtype.JarHostTest.HostTestListener


Detektor opakowania, który przekazuje wszystkie zdarzenia oprócz testRunStarted() i testRunEnded() do wbudowanego detektora. Każda klasa testu w pliku jar wywoła te zdarzenia, które HostTestListener przechowuje dla odbiorców w celu rejestrowania w konsoli i raportowania wyników.

Podsumowanie

Konstruktory publiczne

HostTestListener(ITestInvocationListener listener)

Metody publiczne

void testRunEnded(long elapsedTime, metrics)

Raportuje zakończenie testu.

void testRunStarted(String name, int numTests)

Raportuje rozpoczęcie testu.

Konstruktory publiczne

HostTestListener

public HostTestListener (ITestInvocationListener listener)

Parametry
listener ITestInvocationListener

Metody publiczne

testRunEnded

public void testRunEnded (long elapsedTime, 
                 metrics)

Raportuje zakończenie testu.

Parametry
elapsedTime long: czas upłynął, milisekundy zgłoszone przez urządzenie

metrics : pary klucz-wartość zgłoszone na końcu wykonania testu

testRunStarted

public void testRunStarted (String name, 
                int numTests)

Raportuje rozpoczęcie testu.

Parametry
name String: nazwa testu;

numTests int: łączna liczba testów w sesji testowej