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