测试组状态

public class TestGroupStatus
extends Object

java.lang.Object
com.android.tradefed.cluster.TestGroupStatus


用于存储测试组状态的类。

测试组对应于以相同测试运行名称报告的一组测试用例。

概括

公共构造函数

TestGroupStatus (String name, int totalTestCount, int completedTestCount, int failedTestCount, int passedTestCount, boolean isComplete, long elapsedTime)

公共方法

int getCompletedTestCount ()
long getElapsedTime ()
int getFailedTestCount ()
String getName ()
int getPassedTestCount ()
int getTotalTestCount ()
boolean isComplete ()
JSONObject toJSON ()

公共构造函数

测试组状态

public TestGroupStatus (String name, 
                int totalTestCount, 
                int completedTestCount, 
                int failedTestCount, 
                int passedTestCount, 
                boolean isComplete, 
                long elapsedTime)

参数
name String

totalTestCount int

completedTestCount int

failedTestCount int

passedTestCount int

isComplete boolean

elapsedTime long

公共方法

获取完成的测试计数

public int getCompletedTestCount ()

退货
int

获取经过时间

public long getElapsedTime ()

退货
long

获取失败测试计数

public int getFailedTestCount ()

退货
int

获取名称

public String getName ()

退货
String

获取通过的测试计数

public int getPassedTestCount ()

退货
int

获取测试总数

public int getTotalTestCount ()

退货
int

做完了

public boolean isComplete ()

退货
boolean

转JSON

public JSONObject toJSON ()

退货
JSONObject

投掷
JSONException