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


Helper for testEnded information.

Summary

Fields

public Long mEndTime

public mRunMetrics

Public constructors

SubprocessEventHelper.TestEndedEventInfo(String className, String testName, runMetrics)
SubprocessEventHelper.TestEndedEventInfo(String className, String testName, Long endTime, runMetrics)

Create an event object to represent the testEnded callback.

SubprocessEventHelper.TestEndedEventInfo(JSONObject jsonObject)

Create and populate and event object for testEnded from a JSON.

Protected methods

JSONObject getNewJson()

Fields

mEndTime

public Long mEndTime

mRunMetrics

public  mRunMetrics

Public constructors

SubprocessEventHelper.TestEndedEventInfo

public SubprocessEventHelper.TestEndedEventInfo (String className, 
                String testName, 
                 runMetrics)

Parameters
className String

testName String

runMetrics

SubprocessEventHelper.TestEndedEventInfo

public SubprocessEventHelper.TestEndedEventInfo (String className, 
                String testName, 
                Long endTime, 
                 runMetrics)

Create an event object to represent the testEnded callback.

Parameters
className String: the classname of the tests

testName String: the name of the tests

endTime Long: the timestamp at which the test ended (from System.currentTimeMillis())

runMetrics : the metrics reported by the test.

SubprocessEventHelper.TestEndedEventInfo

public SubprocessEventHelper.TestEndedEventInfo (JSONObject jsonObject)

Create and populate and event object for testEnded from a JSON.

Parameters
jsonObject JSONObject

Throws
JSONException

Protected methods

getNewJson

protected JSONObject getNewJson ()

Returns
JSONObject