TestContext
public
class
TestContext
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.TestContext |
用來模擬 TFC API 的 TestContext 訊息的類別。
TestContext 訊息可用於儲存及擷取在多次嘗試相同測試指令時傳遞的背景資訊。
摘要
公用建構函式 | |
---|---|
TestContext()
|
公用方法 | |
---|---|
void
|
addEnvVars(
|
void
|
addTestResource(TestResource testResource)
|
boolean
|
equals(Object o)
|
static
TestContext
|
fromJson(JSONObject json)
|
String
|
getCommandLine()
|
|
getEnvVars()
|
|
getTestResources()
|
void
|
setCommandLine(String commandLine)
|
JSONObject
|
toJson()
|
String
|
toString()
|
公用建構函式
TestContext
public TestContext ()
公用方法
addEnvVars
public void addEnvVars (envVars)
參數 | |
---|---|
envVars |
|
addTestResource
public void addTestResource (TestResource testResource)
參數 | |
---|---|
testResource |
TestResource |
等於
public boolean equals (Object o)
參數 | |
---|---|
o |
Object |
傳回 | |
---|---|
boolean |
fromJson
public static TestContext fromJson (JSONObject json)
參數 | |
---|---|
json |
JSONObject |
傳回 | |
---|---|
TestContext |
擲回 | |
---|---|
JSONException |
getCommandLine
public String getCommandLine ()
傳回 | |
---|---|
String |
getEnvVars
publicgetEnvVars ()
傳回 | |
---|---|
|
getTestResources
publicgetTestResources ()
傳回 | |
---|---|
|
setCommandLine
public void setCommandLine (String commandLine)
參數 | |
---|---|
commandLine |
String |
toJson
public JSONObject toJson ()
傳回 | |
---|---|
JSONObject |
擲回 | |
---|---|
JSONException |
toString
public String toString ()
傳回 | |
---|---|
String |