TestContext
public
class
TestContext
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.TestContext |
Một lớp để mô hình hoá thông báo TestContext của API TFC.
Thông báo TestContext được dùng để lưu trữ và truy xuất thông tin theo ngữ cảnh được truyền qua nhiều lần thử nghiệm của cùng một lệnh kiểm thử.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
TestContext()
|
Phương thức công khai | |
---|---|
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()
|
Hàm khởi tạo công khai
TestContext
public TestContext ()
Phương thức công khai
addEnvVars
public void addEnvVars (envVars)
Tham số | |
---|---|
envVars |
|
addTestResource
public void addTestResource (TestResource testResource)
Tham số | |
---|---|
testResource |
TestResource |
bằng
public boolean equals (Object o)
Tham số | |
---|---|
o |
Object |
Giá trị trả về | |
---|---|
boolean |
fromJson
public static TestContext fromJson (JSONObject json)
Tham số | |
---|---|
json |
JSONObject |
Giá trị trả về | |
---|---|
TestContext |
Gửi | |
---|---|
JSONException |
getCommandLine
public String getCommandLine ()
Giá trị trả về | |
---|---|
String |
getEnvVars
publicgetEnvVars ()
Giá trị trả về | |
---|---|
|
getTestResources
publicgetTestResources ()
Giá trị trả về | |
---|---|
|
setCommandLine
public void setCommandLine (String commandLine)
Tham số | |
---|---|
commandLine |
String |
toJson
public JSONObject toJson ()
Giá trị trả về | |
---|---|
JSONObject |
Gửi | |
---|---|
JSONException |
toString
public String toString ()
Giá trị trả về | |
---|---|
String |