SubprocessEventHelper.TestEndedEventInfo

public static class SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo

java.lang.Object
   ↳ com.android.tradefed.util.SubprocessEventHelper.BaseTestEventInfo
     ↳ com.android.tradefed.util.SubprocessEventHelper.TestEndedEventInfo


testEnded 情報のヘルパー。

概要

フィールド

public Long mEndTime

public Map<String, String> mRunMetrics

パブリック コンストラクタ

TestEndedEventInfo(String className, String testName, Long endTime, Map<String, String> runMetrics)

testEnded コールバックを表すイベント オブジェクトを作成します。

TestEndedEventInfo(String className, String testName, Map<String, String> runMetrics)
TestEndedEventInfo(JSONObject jsonObject)

JSON から testEnded のイベント オブジェクトを作成して入力します。

保護されたメソッド

JSONObject getNewJson()

フィールド

mEndTime

public Long mEndTime

mRunMetrics

public Map<String, String> mRunMetrics

パブリック コンストラクタ

TestEndedEventInfo

public TestEndedEventInfo (String className, 
                String testName, 
                Long endTime, 
                Map<String, String> runMetrics)

testEnded コールバックを表すイベント オブジェクトを作成します。

パラメータ
className String: テストのクラス名

testName String: テストの名前

endTime Long: テストが終了したタイムスタンプ(System.currentTimeMillis() から)

runMetrics Map: テストで報告される指標。

TestEndedEventInfo

public TestEndedEventInfo (String className, 
                String testName, 
                Map<String, String> runMetrics)

パラメータ
className String

testName String

runMetrics Map

TestEndedEventInfo

public TestEndedEventInfo (JSONObject jsonObject)

JSON から testEnded のイベント オブジェクトを作成して入力します。

パラメータ
jsonObject JSONObject

例外
JSONException

保護されたメソッド

getNewJson

protected JSONObject getNewJson ()

戻り値
JSONObject