测试组状态
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) |
公共构造函数
测试组状态
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 |
公共方法
getCompletedTestCount
public int getCompletedTestCount ()
得到经过时间
public long getElapsedTime ()
获取失败测试次数
public int getFailedTestCount ()
获取名称
public String getName ()
获取通过测试次数
public int getPassedTestCount ()
获取总测试次数
public int getTotalTestCount ()
做完了
public boolean isComplete ()
转JSON
public JSONObject toJSON ()