TestContext

public class TestContext
extends Object

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


TFC API के TestContext मैसेज को मॉडल करने के लिए क्लास.

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

खास जानकारी

पब्लिक कंस्ट्रक्टर

TestContext()

सार्वजनिक तरीके

void addEnvVars( envVars)
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

public  getEnvVars ()

रिटर्न

getTestResources

public  getTestResources ()

रिटर्न

setCommandLine

public void setCommandLine (String commandLine)

पैरामीटर
commandLine String

toJson

public JSONObject toJson ()

रिटर्न
JSONObject

थ्रो
JSONException

toString

public String toString ()

रिटर्न
String