測試組狀態

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