Contesto di prova

public class TestContext
extends Object

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


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

Un messaggio TestContext viene utilizzato per archiviare e recuperare informazioni contestuali trasmesse 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

Contesto di prova

public TestContext ()

Metodi pubblici

aggiungiVarsEnv

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

daJson

public static TestContext fromJson (JSONObject json)

Parametri
json JSONObject

ritorna
TestContext

Lancia
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

Lancia
JSONException

accordare

public String toString ()

ritorna
String