測試組狀態
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 ()