ResultForwarder
  public
  
  
  
  class
  ResultForwarder
  
    extends Object
  
  
  
  
  
      implements
      
        ITestInvocationListener
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.result.ResultForwarder | 
Un ITestInvocationListener que reenvía los resultados de la invocación a una lista de otros objetos de escucha.
Resumen
| Constructores públicos | |
|---|---|
| 
      ResultForwarder(Crea un elemento  | |
| 
      ResultForwarder(ITestInvocationListener... listeners)
      Constructor de argumentos de variables alternativos para  | |
| Constructores protegidos | |
|---|---|
| 
      ResultForwarder()
      Crea un  | |
| Métodos públicos | |
|---|---|
| 
        
        
        
        
        
        TestSummary | 
      getSummary()
      
 | 
| 
        
        
        
        
        
        void | 
      invocationEnded(long elapsedTime)
      
 | 
| 
        
        
        
        
        
        void | 
      invocationFailed(FailureDescription failure)
      
 | 
| 
        
        
        
        
        
        void | 
      invocationFailed(Throwable cause)
      
 | 
| 
        
        
        
        
        
        void | 
      invocationStarted(IInvocationContext context)
      
 | 
| 
        
        
        
        
        
        void | 
      testAssumptionFailure(TestDescription test, String trace)
       | 
| 
        
        
        
        
        
        void | 
      testAssumptionFailure(TestDescription test, FailureDescription failure)
       | 
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, long endTime, 
 | 
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, 
 | 
| 
        
        
        
        
        
        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 | 
      testModuleEnded()
       | 
| 
        
        
        
        
        
        void | 
      testModuleStarted(IInvocationContext moduleContext)
       | 
| 
        
        
        
        
        
        void | 
      testRunEnded(long elapsedTime, 
 | 
| 
        
        
        
        
        
        void | 
      testRunFailed(FailureDescription failure)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunFailed(String errorMessage)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStarted(String runName, int testCount, int attemptNumber)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStarted(String runName, int testCount)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStopped(long elapsedTime)
      
 | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test, long startTime)
      
 | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test)
      
 | 
| Métodos protegidos | |
|---|---|
| 
        
        
        
        
        
         | 
      getListeners()
      Obtén la lista de objetos de escucha. | 
| 
        
        
        
        
        
        void | 
      setListeners(Establece los objetos de escucha después de la construcción. | 
| 
        
        
        
        
        
        void | 
      setListeners(ITestInvocationListener... listeners)
      Establece los objetos de escucha después de la construcción. | 
Constructores públicos
ResultForwarder
public ResultForwarder (listeners) 
Crea un elemento ResultForwarder.
| Parámetros | |
|---|---|
| listeners | : LosITestInvocationListenerreales a los que se reenvían los resultados | 
ResultForwarder
public ResultForwarder (ITestInvocationListener... listeners)
Constructor de argumentos de variables alternativos para ResultForwarder.
| Parámetros | |
|---|---|
| listeners | ITestInvocationListener: LosITestInvocationListenerreales a los que se reenvían los resultados | 
Constructores protegidos
ResultForwarder
protected ResultForwarder ()
Crea un ResultForwarder con la configuración de objeto de escucha diferido.  Solo está destinado a ser usado por subclases.
Métodos públicos
getSummary
public TestSummary getSummary ()
| Muestra | |
|---|---|
| TestSummary | |
invocationEnded
public void invocationEnded (long elapsedTime)
| Parámetros | |
|---|---|
| elapsedTime | long | 
invocationFailed
public void invocationFailed (FailureDescription failure)
| Parámetros | |
|---|---|
| failure | FailureDescription | 
invocationFailed
public void invocationFailed (Throwable cause)
| Parámetros | |
|---|---|
| cause | Throwable | 
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parámetros | |
|---|---|
| context | IInvocationContext | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, 
                String trace)| Parámetros | |
|---|---|
| test | TestDescription | 
| trace | String | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)| Parámetros | |
|---|---|
| test | TestDescription | 
| failure | FailureDescription | 
testEnded
public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics) 
| Parámetros | |
|---|---|
| test | TestDescription | 
| endTime | long | 
| testMetrics |  | 
testEnded
public void testEnded (TestDescription test, 
                 testMetrics) 
| Parámetros | |
|---|---|
| test | TestDescription | 
| testMetrics |  | 
testFailed
public void testFailed (TestDescription test, 
                FailureDescription failure)
| Parámetros | |
|---|---|
| test | TestDescription | 
| failure | FailureDescription | 
testFailed
public void testFailed (TestDescription test, 
                String trace)
| Parámetros | |
|---|---|
| test | TestDescription | 
| trace | String | 
testIgnored
public void testIgnored (TestDescription test)
| Parámetros | |
|---|---|
| test | TestDescription | 
testLog
public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)
| Parámetros | |
|---|---|
| dataName | String | 
| dataType | LogDataType | 
| dataStream | InputStreamSource | 
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| Parámetros | |
|---|---|
| moduleContext | IInvocationContext | 
testRunEnded
public void testRunEnded (long elapsedTime, 
                 runMetrics) 
| Parámetros | |
|---|---|
| elapsedTime | long | 
| runMetrics |  | 
testRunFailed
public void testRunFailed (FailureDescription failure)
| Parámetros | |
|---|---|
| failure | FailureDescription | 
testRunFailed
public void testRunFailed (String errorMessage)
| Parámetros | |
|---|---|
| errorMessage | String | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)
| Parámetros | |
|---|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount)
| Parámetros | |
|---|---|
| runName | String | 
| testCount | int | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)
| Parámetros | |
|---|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
| startTime | long | 
testRunStopped
public void testRunStopped (long elapsedTime)
| Parámetros | |
|---|---|
| elapsedTime | long | 
testStarted
public void testStarted (TestDescription test, 
                long startTime)
| Parámetros | |
|---|---|
| test | TestDescription | 
| startTime | long | 
testStarted
public void testStarted (TestDescription test)
| Parámetros | |
|---|---|
| test | TestDescription | 
Métodos protegidos
getListeners
protectedgetListeners () 
Obtén la lista de objetos de escucha. Solo está destinado a ser usado por subclases.
| Muestra | |
|---|---|
|  | La lista de ITestInvocationListener. | 
setListeners
protected void setListeners (listeners) 
Establece los objetos de escucha después de la construcción. Solo está destinado a ser usado por subclases.
| Parámetros | |
|---|---|
| listeners | : LosITestInvocationListenerreales a los que se reenvían los resultados | 
setListeners
protected void setListeners (ITestInvocationListener... listeners)
Establece los objetos de escucha después de la construcción. Solo está destinado a ser usado por subclases.
| Parámetros | |
|---|---|
| listeners | ITestInvocationListener: LosITestInvocationListenerreales a los que se reenvían los resultados | 
