Contexte de test

public class TestContext
extends Object

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


Une classe pour modéliser un message TestContext de l'API TFC.

Un message TestContext est utilisé pour stocker et récupérer des informations contextuelles transmises lors de plusieurs tentatives de la même commande de test.

Résumé

Constructeurs publics

TestContext ()

Méthodes publiques

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

Constructeurs publics

Contexte de test

public TestContext ()

Méthodes publiques

addEnvVars

public void addEnvVars ( envVars)

Paramètres
envVars

addTestResource

public void addTestResource (TestResource testResource)

Paramètres
testResource TestResource

équivaut à

public boolean equals (Object o)

Paramètres
o Object

Retour
boolean

deJson

public static TestContext fromJson (JSONObject json)

Paramètres
json JSONObject

Retour
TestContext

Jetés
JSONException

getCommandLine

public String getCommandLine ()

Retour
String

getEnvVars

public  getEnvVars ()

Retour

getTestResources

public  getTestResources ()

Retour

setCommandLine

public void setCommandLine (String commandLine)

Paramètres
commandLine String

àJson

public JSONObject toJson ()

Retour
JSONObject

Jetés
JSONException

versChaîne

public String toString ()

Retour
String