PrettyTestEventLogger
  public
  
  
  
  class
  PrettyTestEventLogger
  
    extends Object
  
  
  
  
  
      implements
      
        ITestInvocationListener
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.host.PrettyTestEventLogger | 
ロガーがイベントを照合してロギングし、デバッグが容易になります。ホスト側とデバイス側のログは厳密に一致するため、検索が容易になります。
概要
| パブリック コンストラクタ | |
|---|---|
| 
      PrettyTestEventLogger( | |
| パブリック メソッド | |
|---|---|
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, 個々のテストケースの実行終了を報告します。 | 
| 
        
        
        
        
        
        void | 
      testFailed(TestDescription test, String trace)
      個々のテストケースの失敗を報告します。 | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test)
      個々のテストケースの開始を報告します。 | 
パブリック コンストラクタ
PrettyTestEventLogger
public PrettyTestEventLogger (devices) 
| パラメータ | |
|---|---|
| devices |  | 
パブリック メソッド
testEnded
public void testEnded (TestDescription test,testMetrics) 
個々のテストケースの実行終了を報告します。
testFailed(TestDescription, FailureDescription) が呼び出されなかった場合、このテストは合格です。また、テストケースの実行中に出力された Key-Value 指標も返します。
| パラメータ | |
|---|---|
| test | TestDescription: テストを識別します。 | 
| testMetrics | : 出力された指標のERROR(/Map) | 
testFailed
public void testFailed (TestDescription test, String trace)
個々のテストケースの失敗を報告します。
testStarted と testEnded の間で呼び出されます。
| パラメータ | |
|---|---|
| test | TestDescription: テストを識別します。 | 
| trace | String: 障害のスタック トレース | 
testStarted
public void testStarted (TestDescription test)
個々のテストケースの開始を報告します。古いインターフェース。可能な限り testStarted(com.android.tradefed.result.TestDescription) を使用してください。
| パラメータ | |
|---|---|
| test | TestDescription: テストを識別します。 | 
