TestContext

public class TestContext
extends Object

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


Eine Klasse zum Modellieren einer TestContext-Nachricht der TFC-API.

Eine TestContext-Nachricht wird zum Speichern und Abrufen von Kontextinformationen verwendet, die über mehrere Versuche desselben Testbefehls hinweg weitergegeben werden.

Zusammenfassung

Öffentliche Bauträger

TestContext ()

Öffentliche Methoden

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

Öffentliche Bauträger

TestContext

public TestContext ()

Öffentliche Methoden

addEnvVars

public void addEnvVars ( envVars)

Parameter
envVars

addTestResource

public void addTestResource (TestResource testResource)

Parameter
testResource TestResource

gleicht

public boolean equals (Object o)

Parameter
o Object

Kehrt zurück
boolean

vonJson

public static TestContext fromJson (JSONObject json)

Parameter
json JSONObject

Kehrt zurück
TestContext

Würfe
JSONException

getCommandLine

public String getCommandLine ()

Kehrt zurück
String

getEnvVars

public  getEnvVars ()

Kehrt zurück

getTestResources

public  getTestResources ()

Kehrt zurück

setCommandLine

public void setCommandLine (String commandLine)

Parameter
commandLine String

toJson

public JSONObject toJson ()

Kehrt zurück
JSONObject

Würfe
JSONException

toString

public String toString ()

Kehrt zurück
String