TestContext

public class TestContext
extends Object

java.lang.Object
com.android.tradefed.cluster.TestContext


यह क्लास, टीएफ़सी एपीआई के TestContext मैसेज को मॉडल करती है.

TestContext मैसेज का इस्तेमाल, एक ही टेस्ट कमांड के कई बार चलने के दौरान, कॉन्टेक्चुअल जानकारी को सेव और वापस पाने के लिए किया जाता है.

खास जानकारी

सार्वजनिक कंस्ट्रक्टर

TestContext()

पब्लिक मेथड

void addEnvVars(Map<String, String> envVars)
void addTestResource(TestResource testResource)
boolean equals(Object o)
static TestContext fromJson(JSONObject json)
String getCommandLine()
Map<String, String> getEnvVars()
List<TestResource> getTestResources()
void setCommandLine(String commandLine)
JSONObject toJson()
String toString()

सार्वजनिक कंस्ट्रक्टर

TestContext

public TestContext ()

पब्लिक मेथड

addEnvVars

public void addEnvVars (Map<String, String> envVars)

पैरामीटर
envVars Map

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

public Map<String, String> getEnvVars ()

रिटर्न
Map<String, String>

getTestResources

public List<TestResource> getTestResources ()

रिटर्न
List<TestResource>

setCommandLine

public void setCommandLine (String commandLine)

पैरामीटर
commandLine String

toJson

public JSONObject toJson ()

रिटर्न
JSONObject

थ्रॉ
JSONException

toString

public String toString ()

रिटर्न
String