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 |
equals
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 |
|