Kontekst testowy

public class TestContext
extends Object

Obiekt Java.lang.Object
com.android.tradefed.cluster.TestContext


Klasa służąca do modelowania komunikatu TestContext interfejsu API TFC.

Komunikat TestContext służy do przechowywania i pobierania informacji kontekstowych przekazywanych podczas wielu prób wykonania tego samego polecenia testowego.

Streszczenie

Konstruktorzy publiczni

TestContext ()

Metody publiczne

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

Konstruktorzy publiczni

Kontekst testowy

public TestContext ()

Metody publiczne

dodajEnvVars

public void addEnvVars ( envVars)

Parametry
envVars

dodaj zasób testowy

public void addTestResource (TestResource testResource)

Parametry
testResource TestResource

równa się

public boolean equals (Object o)

Parametry
o Object

Zwroty
boolean

od Jsona

public static TestContext fromJson (JSONObject json)

Parametry
json JSONObject

Zwroty
TestContext

Rzuca
JSONException

pobierz linię poleceń

public String getCommandLine ()

Zwroty
String

pobierzEnvVars

public  getEnvVars ()

Zwroty

pobierz zasoby testowe

public  getTestResources ()

Zwroty

ustaw linię poleceń

public void setCommandLine (String commandLine)

Parametry
commandLine String

doJsona

public JSONObject toJson ()

Zwroty
JSONObject

Rzuca
JSONException

doString

public String toString ()

Zwroty
String