InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener
| java.lang.Object |
| ↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
Subclasses diretas conhecidas| TextResultReporter | Um repórter de resultados de teste que encaminha os resultados para a impressora de resultados de texto JUnit. |
|
Uma classe que escuta eventos ITestInvocationListener e os encaminha para um TestListener .
Resumo
Construtores públicos
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
| Parâmetros |
|---|
junitListener | TestListener |
Métodos públicos
obter Resumo
public TestSummary getSummary ()
invocaçãoEnded
public void invocationEnded (long elapsedTime)
| Parâmetros |
|---|
elapsedTime | long |
invocaçãoFailed
public void invocationFailed (Throwable cause)
| Parâmetros |
|---|
cause | Throwable |
invocaçãoiniciada
public void invocationStarted (IInvocationContext context)
| Parâmetros |
|---|
context | IInvocationContext |
testeAssunçãoFalha
public void testAssumptionFailure (TestDescription testId,
String trace)| Parâmetros |
|---|
testId | TestDescription |
trace | String |
teste finalizado
public void testEnded (TestDescription test,
testMetrics)| Parâmetros |
|---|
test | TestDescription |
testMetrics | |
teste falhou
public void testFailed (TestDescription testId,
String trace)| Parâmetros |
|---|
testId | TestDescription |
trace | String |
testeIgnorado
public void testIgnored (TestDescription test)
| Parâmetros |
|---|
test | TestDescription |
public void testLog (String dataName,
LogDataType logData,
InputStreamSource dataStream)| Parâmetros |
|---|
dataName | String |
logData | LogDataType |
dataStream | InputStreamSource |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)| Parâmetros |
|---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (String errorMessage)
| Parâmetros |
|---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)| Parâmetros |
|---|
runName | String |
testCount | int |
testRunStopped
public void testRunStopped (long elapsedTime)
| Parâmetros |
|---|
elapsedTime | long |
teste iniciado
public void testStarted (TestDescription test)
| Parâmetros |
|---|
test | TestDescription |
Métodos protegidos
getJUnitListener
protected TestListener getJUnitListener ()