測試組狀態

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

公共方法

getCompletedTestCount

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