測試情境
public class TestContext
extends Object
java.lang.Object |
↳ | com.android.tradefed.cluster.TestContext |
用於對 TFC API 的 TestContext 訊息進行建模的類別。
TestContext 訊息用於儲存和檢索在相同測試命令的多次嘗試中傳遞的上下文資訊。
概括
公共構造函數
測試情境
public TestContext ()
公共方法
新增環境變數
public void addEnvVars ( envVars)
新增測試資源
public void addTestResource (TestResource testResource)
參數 |
---|
testResource | TestResource |
等於
public boolean equals (Object o)
來自Json
public static TestContext fromJson (JSONObject json)
取得命令列
public String getCommandLine ()
取得環境變數
public getEnvVars ()
取得測試資源
public getTestResources ()
設定命令列
public void setCommandLine (String commandLine)
托森
public JSONObject toJson ()
到字串
public String toString ()