PassingTestFileReporter

public class PassingTestFileReporter
extends TestResultListener implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.result.TestResultListener
     ↳ com.android.tradefed.result.PassingTestFileReporter


ITestInvocationListener, który zapisuje listę przetestowanych przypadków testowych w pliku testowym.

Podsumowanie

Konstruktory publiczne

PassingTestFileReporter()

Metody publiczne

void invocationEnded(long elapsedTime)

Informuje, że wywołanie zostało zakończone (z powodu błędu lub pomyślnie).

void invocationStarted(IInvocationContext context)

Raportuje rozpoczęcie wywołania testu.

void testResult(TestDescription test, TestResult result)

Konstruktory publiczne

PassingTestFileReporter

public PassingTestFileReporter ()

Metody publiczne

invocationEnded

public void invocationEnded (long elapsedTime)

Informuje, że wywołanie zostało zakończone (z powodu błędu lub pomyślnie).

Będzie wywoływany automatycznie przez platformę TradeFederation.

Parametry
elapsedTime long: upłynął czas wywołania w ms

invocationStarted

public void invocationStarted (IInvocationContext context)

Raportuje rozpoczęcie wywołania testu.

Będzie wywoływany automatycznie przez platformę TradeFederation. Aby umożliwić raportowanie z kilku urządzeń, autorzy raportów muszą zastąpić tę metodę.

Parametry
context IInvocationContext: informacje o wywołaniu;

testResult

public void testResult (TestDescription test, 
                TestResult result)

Parametry
test TestDescription

result TestResult