ModuleListener

public class ModuleListener
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
  com.android.tradefed.testtype.suite.ModuleListener


Detektor dołączany do każdego elementu (IRemoteTest) każdego modułu, aby zebrać listę: wyników.

Podsumowanie

Konstruktory publiczne

ModuleListener(ITestInvocationListener listener)

Konstruktor.

Metody publiczne

boolean hasLastAttemptFailed()

Wskazuje, czy ostatnia sesja ponowienia zakończyła się niepowodzeniem.

void logAssociation(String dataName, LogFile logFile)

void setAttemptIsolation(CurrentInvocation.IsolationGrade isolation)

Określa, czy próba ma być zgłaszana jako pojedyncza.

void setCollectTestsOnly(boolean collectTestsOnly)

Określa, czy zbieramy tylko testy.

void setMarkTestsSkipped(boolean skip)

Określa, czy oznaczyć wszystkie przypadki testowe jako pominięte.

void testAssumptionFailure(TestDescription test, String trace)
void testAssumptionFailure(TestDescription test, FailureDescription failure)
void testEnded(TestDescription test, long endTime, testMetrics)

void testEnded(TestDescription test, testMetrics)

void testFailed(TestDescription test, FailureDescription failure)

void testFailed(TestDescription test, String trace)

void testIgnored(TestDescription test)
void testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

void testRunEnded(long elapsedTime, runMetrics)

void testRunFailed(FailureDescription failure)

void testRunFailed(String errorMessage)

void testRunStarted(String name, int numTests, int attemptNumber)

void testRunStarted(String name, int numTests, int attemptNumber, long startTime)

void testStarted(TestDescription test, long startTime)

Konstruktory publiczne

ModuleListener

public ModuleListener (ITestInvocationListener listener)

Konstruktor.

Parametry
listener ITestInvocationListener

Metody publiczne

maOstatnia próba niepowodzeń

public boolean hasLastAttemptFailed ()

Wskazuje, czy ostatnia sesja ponowienia zakończyła się niepowodzeniem.

Zwroty
boolean

powiązanie_logowania

public void logAssociation (String dataName, 
                LogFile logFile)

Parametry
dataName String

logFile LogFile

setegIsolation.

public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

Określa, czy próba ma być zgłaszana jako pojedyncza.

Parametry
isolation CurrentInvocation.IsolationGrade

ustawZbierzTylkoTesty

public void setCollectTestsOnly (boolean collectTestsOnly)

Określa, czy zbieramy tylko testy.

Parametry
collectTestsOnly boolean

setMarkTestsPominięte

public void setMarkTestsSkipped (boolean skip)

Określa, czy oznaczyć wszystkie przypadki testowe jako pominięte.

Parametry
skip boolean

Niepowodzenie testuZałożenia Niepowodzeń

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parametry
test TestDescription

trace String

Niepowodzenie testuZałożenia Niepowodzeń

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parametry
test TestDescription

failure FailureDescription

testZakończony

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Parametry
test TestDescription

endTime long

testMetrics

testZakończony

public void testEnded (TestDescription test, 
                 testMetrics)

Parametry
test TestDescription

testMetrics

Niepowodzenie testu

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parametry
test TestDescription

failure FailureDescription

Niepowodzenie testu

public void testFailed (TestDescription test, 
                String trace)

Parametry
test TestDescription

trace String

testignorowany

public void testIgnored (TestDescription test)

Parametry
test TestDescription

dziennik testów

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

Zakończono bieg testowy

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametry
elapsedTime long

runMetrics

Niepowodzenie testu uruchomienia

public void testRunFailed (FailureDescription failure)

Parametry
failure FailureDescription

Niepowodzenie testu uruchomienia

public void testRunFailed (String errorMessage)

Parametry
errorMessage String

Uruchomiono test

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber)

Parametry
name String

numTests int

attemptNumber int

Uruchomiono test

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

Parametry
name String

numTests int

attemptNumber int

startTime long

testStarted (rozpoczęto test)

public void testStarted (TestDescription test, 
                long startTime)

Parametry
test TestDescription

startTime long