테스트컨텍스트

public class TestContext
extends Object

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


TFC API의 TestContext 메시지를 모델링하는 클래스입니다.

TestContext 메시지는 동일한 테스트 명령의 여러 시도에 걸쳐 전달되는 상황별 정보를 저장하고 검색하는 데 사용됩니다.

요약

공개 생성자

TestContext ()

공개 메소드

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

공개 생성자

테스트컨텍스트

public TestContext ()

공개 메소드

addEnvVars

public void addEnvVars ( envVars)

매개변수
envVars

테스트리소스 추가

public void addTestResource (TestResource testResource)

매개변수
testResource TestResource

같음

public boolean equals (Object o)

매개변수
o Object

보고
boolean

fromJson

public static TestContext fromJson (JSONObject json)

매개변수
json JSONObject

보고
TestContext

던지기
JSONException

getCommandLine

public String getCommandLine ()

보고
String

getEnvVars

public  getEnvVars ()

보고

getTestResources

public  getTestResources ()

보고

setCommandLine

public void setCommandLine (String commandLine)

매개변수
commandLine String

toJson

public JSONObject toJson ()

보고
JSONObject

던지기
JSONException

toString

public String toString ()

보고
String