TestContesto

public class TestContext
extends Object

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


Una classe per modellare un messaggio TestContext dell'API TFC.

Un messaggio TestContext viene utilizzato per archiviare e recuperare le informazioni contestuali passate attraverso più tentativi dello stesso comando di test.

Riepilogo

Costruttori pubblici

TestContext ()

Metodi pubblici

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 ()

Costruttori pubblici

TestContesto

public TestContext ()

Metodi pubblici

addEnvVars

public void addEnvVars ( envVars)

Parametri
envVars

addTestResource

public void addTestResource (TestResource testResource)

Parametri
testResource TestResource

equivale

public boolean equals (Object o)

Parametri
o Object

ritorna
boolean

fromJson

public static TestContext fromJson (JSONObject json)

Parametri
json JSONObject

ritorna
TestContext

Getta
JSONException

getCommandLine

public String getCommandLine ()

ritorna
String

getEnvVars

public  getEnvVars ()

ritorna

getTestResources

public  getTestResources ()

ritorna

setCommandLine

public void setCommandLine (String commandLine)

Parametri
commandLine String

toJson

public JSONObject toJson ()

ritorna
JSONObject

Getta
JSONException

accordare

public String toString ()

ritorna
String