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

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

Create an event object to represent the testEnded callback.

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

TestEndedEventInfo

public TestEndedEventInfo (String className, 
                String testName, 
                 runMetrics)

Parameters
className String

testName String

runMetrics

TestEndedEventInfo

public 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.

TestEndedEventInfo

public 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