InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
Sottoclassi dirette conosciute TextResultReporter | Un reporter dei risultati del test che inoltra i risultati alla stampante dei risultati di testo JUnit. |
|
Una classe che ascolta gli eventi ITestInvocationListener
e li inoltra a TestListener
.
Riepilogo
Costruttori pubblici
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
Parametri |
---|
junitListener | TestListener |
Metodi pubblici
getSummary
public TestSummary getSummary ()
invocationEnded
public void invocationEnded (long elapsedTime)
Parametri |
---|
elapsedTime | long |
invocazioneFailed
public void invocationFailed (Throwable cause)
Parametri |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parametri |
---|
context | IInvocationContext |
testAssunzioneFailure
public void testAssumptionFailure (TestDescription testId,
String trace)
Parametri |
---|
testId | TestDescription |
trace | String |
testEnded
public void testEnded (TestDescription test,
testMetrics)
Parametri |
---|
test | TestDescription |
testMetrics | |
prova non riuscita
public void testFailed (TestDescription testId,
String trace)
Parametri |
---|
testId | TestDescription |
trace | String |
testIgnorato
public void testIgnored (TestDescription test)
Parametri |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType logData,
InputStreamSource dataStream)
Parametri |
---|
dataName | String |
logData | LogDataType |
dataStream | InputStreamSource |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parametri |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (String errorMessage)
Parametri |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)
Parametri |
---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
Parametri |
---|
elapsedTime | long |
testAvviato
public void testStarted (TestDescription test)
Parametri |
---|
test | TestDescription |
Metodi protetti
getJUnitListener
protected TestListener getJUnitListener ()