TestContext

public class TestContext
extends Object

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


Classe permettant de modéliser un message TestContext de l'API TFC.

Un message TestContext permet de stocker et de récupérer des informations contextuelles transmises lors de plusieurs tentatives d'une même commande de test.

Résumé

Constructeurs publics

TestContext()

Méthodes publiques

void addEnvVars(Map<String, String> envVars)
void addTestResource(TestResource testResource)
boolean equals(Object o)
static TestContext fromJson(JSONObject json)
String getCommandLine()
Map<String, String> getEnvVars()
List<TestResource> getTestResources()
void setCommandLine(String commandLine)
JSONObject toJson()
String toString()

Constructeurs publics

TestContext

public TestContext ()

Méthodes publiques

addEnvVars

public void addEnvVars (Map<String, String> envVars)

Paramètres
envVars Map

addTestResource

public void addTestResource (TestResource testResource)

Paramètres
testResource TestResource

est égal à

public boolean equals (Object o)

Paramètres
o Object

Renvoie
boolean

fromJson

public static TestContext fromJson (JSONObject json)

Paramètres
json JSONObject

Renvoie
TestContext

Génère
JSONException

getCommandLine

public String getCommandLine ()

Renvoie
String

getEnvVars

public Map<String, String> getEnvVars ()

Renvoie
Map<String, String>

getTestResources

public List<TestResource> getTestResources ()

Renvoie
List<TestResource>

setCommandLine

public void setCommandLine (String commandLine)

Paramètres
commandLine String

toJson

public JSONObject toJson ()

Renvoie
JSONObject

Génère
JSONException

toString

public String toString ()

Renvoie
String