测试组状态
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 |
公共方法
获取完成的测试计数
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 ()