ResultForwarder
  public
  
  
  
  class
  ResultForwarder
  
    extends Object
  
  
  
  
  
      implements
      
        ITestInvocationListener
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.result.ResultForwarder | 
ITestInvocationListener yang meneruskan hasil pemanggilan ke daftar pemroses lain.
Ringkasan
| Konstruktor publik | |
|---|---|
| 
      ResultForwarder(Buat  | |
| 
      ResultForwarder(ITestInvocationListener... listeners)
      Konstruktor arg variabel alternatif untuk  | |
| Konstruktor yang dilindungi | |
|---|---|
| 
      ResultForwarder()
      Buat  | |
| Metode publik | |
|---|---|
| 
        
        
        
        
        
        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)
      
 | 
| Metode yang dilindungi | |
|---|---|
| 
        
        
        
        
        
         | 
      getListeners()
      Mendapatkan daftar pemroses. | 
| 
        
        
        
        
        
        void | 
      setListeners(Tetapkan pemroses setelah pembuatan. | 
| 
        
        
        
        
        
        void | 
      setListeners(ITestInvocationListener... listeners)
      Tetapkan pemroses setelah pembuatan. | 
Konstruktor publik
ResultForwarder
public ResultForwarder (listeners) 
Buat ResultForwarder.
| Parameter | |
|---|---|
| listeners | :ITestInvocationListenersebenarnya yang akan meneruskan hasil | 
ResultForwarder
public ResultForwarder (ITestInvocationListener... listeners)
Konstruktor arg variabel alternatif untuk ResultForwarder.
| Parameter | |
|---|---|
| listeners | ITestInvocationListener:ITestInvocationListenersebenarnya yang akan meneruskan hasil | 
Konstruktor yang dilindungi
ResultForwarder
protected ResultForwarder ()
Buat ResultForwarder dengan setelan pemroses yang ditangguhkan.  Hanya ditujukan untuk digunakan oleh
 subclass.
Metode publik
getSummary
public TestSummary getSummary ()
| Hasil | |
|---|---|
| TestSummary | |
invocationEnded
public void invocationEnded (long elapsedTime)
| Parameter | |
|---|---|
| elapsedTime | long | 
invocationFailed
public void invocationFailed (FailureDescription failure)
| Parameter | |
|---|---|
| failure | FailureDescription | 
invocationFailed
public void invocationFailed (Throwable cause)
| Parameter | |
|---|---|
| cause | Throwable | 
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parameter | |
|---|---|
| context | IInvocationContext | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, 
                String trace)| Parameter | |
|---|---|
| test | TestDescription | 
| trace | String | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)| Parameter | |
|---|---|
| test | TestDescription | 
| failure | FailureDescription | 
testEnded
public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics) 
| Parameter | |
|---|---|
| test | TestDescription | 
| endTime | long | 
| testMetrics |  | 
testEnded
public void testEnded (TestDescription test, 
                 testMetrics) 
| Parameter | |
|---|---|
| test | TestDescription | 
| testMetrics |  | 
testFailed
public void testFailed (TestDescription test, 
                FailureDescription failure)
| Parameter | |
|---|---|
| test | TestDescription | 
| failure | FailureDescription | 
testFailed
public void testFailed (TestDescription test, 
                String trace)
| Parameter | |
|---|---|
| test | TestDescription | 
| trace | String | 
testIgnored
public void testIgnored (TestDescription test)
| Parameter | |
|---|---|
| test | TestDescription | 
testLog
public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)
| Parameter | |
|---|---|
| dataName | String | 
| dataType | LogDataType | 
| dataStream | InputStreamSource | 
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| Parameter | |
|---|---|
| moduleContext | IInvocationContext | 
testRunEnded
public void testRunEnded (long elapsedTime, 
                 runMetrics) 
| Parameter | |
|---|---|
| elapsedTime | long | 
| runMetrics |  | 
testRunFailed
public void testRunFailed (FailureDescription failure)
| Parameter | |
|---|---|
| failure | FailureDescription | 
testRunFailed
public void testRunFailed (String errorMessage)
| Parameter | |
|---|---|
| errorMessage | String | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)
| Parameter | |
|---|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount)
| Parameter | |
|---|---|
| runName | String | 
| testCount | int | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)
| Parameter | |
|---|---|
| runName | String | 
| testCount | int | 
| attemptNumber | int | 
| startTime | long | 
testRunStopped
public void testRunStopped (long elapsedTime)
| Parameter | |
|---|---|
| elapsedTime | long | 
testStarted
public void testStarted (TestDescription test, 
                long startTime)
| Parameter | |
|---|---|
| test | TestDescription | 
| startTime | long | 
testStarted
public void testStarted (TestDescription test)
| Parameter | |
|---|---|
| test | TestDescription | 
Metode yang dilindungi
getListeners
protectedgetListeners () 
Mendapatkan daftar pemroses. Hanya ditujukan untuk digunakan oleh subclass.
| Hasil | |
|---|---|
|  | Daftar ITestInvocationListener. | 
setListeners
protected void setListeners (listeners) 
Tetapkan pemroses setelah pembuatan. Hanya ditujukan untuk digunakan oleh subclass.
| Parameter | |
|---|---|
| listeners | :ITestInvocationListenersebenarnya yang akan meneruskan hasil | 
setListeners
protected void setListeners (ITestInvocationListener... listeners)
Tetapkan pemroses setelah pembuatan. Hanya ditujukan untuk digunakan oleh subclass.
| Parameter | |
|---|---|
| listeners | ITestInvocationListener:ITestInvocationListenersebenarnya yang akan meneruskan hasil | 
