TestContext

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 le informazioni contestuali trasmesse tra più tentativi dello stesso comando di test.

Riepilogo

Costruttori pubblici

TestContext()

Metodi pubblici

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

Costruttori pubblici

TestContext

public TestContext ()

Metodi pubblici

addEnvVars

public void addEnvVars ( envVars)

Parametri
envVars

addTestResource

public void addTestResource (TestResource testResource)

Parametri
testResource TestResource

uguale

public boolean equals (Object o)

Parametri
o Object

Ritorni
boolean

fromJson

public static TestContext fromJson (JSONObject json)

Parametri
json JSONObject

Ritorni
TestContext

Lanci
JSONException

getCommandLine

public String getCommandLine ()

Ritorni
String

getEnvVars

public  getEnvVars ()

Ritorni

getTestResources

public  getTestResources ()

Ritorni

setCommandLine

public void setCommandLine (String commandLine)

Parametri
commandLine String

toJson

public JSONObject toJson ()

Ritorni
JSONObject

Lanci
JSONException

toString

public String toString ()

Ritorni
String