SubprocessTfLauncher
public
abstract
class
SubprocessTfLauncher
extends Object
implements
IBuildReceiver,
IConfigurationReceiver,
IInvocationContextReceiver,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.SubprocessTfLauncher |
별도의 TF 설치에 대해 테스트를 실행하기 위한 IRemoteTest
입니다.
외부 Java 프로세스를 실행하여 테스트를 실행합니다. TF 단위 테스트 또는 기능 테스트를 연속으로 실행하는 데 사용됩니다.
요약
필드 | |
---|---|
public
static
final
String |
ANDROID_SERIAL_VAR
Env. |
public
static
final
String |
PARENT_PROC_TAG_NAME
|
public
static
final
String |
SUBPROCESS_TAG_NAME
TF 하위 프로세스에 전달되어 하위 프로세스를 구분하는 태그입니다. |
protected
IBuildInfo |
mBuildInfo
|
protected
|
mCmdArgs
|
protected
IConfiguration |
mConfig
|
protected
String |
mRootDir
|
protected
IRunUtil |
mRunUtil
|
protected
File |
mTmpDir
|
공개 생성자 | |
---|---|
SubprocessTfLauncher()
|
공개 메서드 | |
---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 리스너에 결과를 보고합니다. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setConfiguration(IConfiguration configuration)
사용 중인 |
void
|
setInvocationContext(IInvocationContext invocationContext)
|
보호된 메서드 | |
---|---|
void
|
addJavaArguments(
하위 프로세스 호출에 추가 Java 매개변수를 추가할 수 있습니다. |
String
|
getJava()
|
IRunUtil
|
getRunUtil()
하위 프로세스 명령어에 사용될 |
void
|
postRun(ITestInvocationListener listener, boolean exception, long elapsedTime)
TF 테스트가 완료된 후 취해야 할 조치입니다. |
void
|
preRun()
테스트를 실행하기 전에 설정합니다. |
void
|
setEventStreaming(boolean eventStreaming)
use-event-streaming을 설정합니다. |
void
|
setProtoReporting(boolean protoReporting)
|
void
|
setRunUtil(IRunUtil runUtil)
IRunUtil을 설정합니다. |
필드
ANDROID_SERIAL_VAR
public static final String ANDROID_SERIAL_VAR
adb 선택에 영향을 미치는 환경 변수입니다.
PARENT_PROC_TAG_NAME
public static final String PARENT_PROC_TAG_NAME
SUBPROCESS_TAG_NAME
public static final String SUBPROCESS_TAG_NAME
TF 하위 프로세스에 전달되어 하위 프로세스를 구분하는 태그입니다.
mCmdArgs
protectedmCmdArgs
mRootDir
protected String mRootDir
mTmpDir
protected File mTmpDir
공개 생성자
SubprocessTfLauncher
public SubprocessTfLauncher ()
공개 메서드
실행
public void run (TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 리스너에 결과를 보고합니다.
매개변수 | |
---|---|
testInfo |
TestInformation : 테스트를 실행하는 데 유용한 정보가 포함된 TestInformation 객체입니다. |
listener |
ITestInvocationListener : 테스트 결과의 ITestInvocationListener |
생성 값 | |
---|---|
DeviceNotAvailableException |
setConfiguration
public void setConfiguration (IConfiguration configuration)
사용 중인 IConfiguration
를 삽입합니다.
매개변수 | |
---|---|
configuration |
IConfiguration |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
매개변수 | |
---|---|
invocationContext |
IInvocationContext |
보호된 메서드
addJavaArguments
protected void addJavaArguments (args)
하위 프로세스 호출에 추가 Java 매개변수를 추가할 수 있습니다.
매개변수 | |
---|---|
args |
: 추가 인수를 추가해야 하는 현재 인수 목록입니다. |
getJava
protected String getJava ()
반환 값 | |
---|---|
String |
postRun
protected void postRun (ITestInvocationListener listener, boolean exception, long elapsedTime)
TF 테스트가 완료된 후 취해야 할 조치입니다.
매개변수 | |
---|---|
listener |
ITestInvocationListener : 결과를 보고할 원래 ITestInvocationListener 입니다. |
exception |
boolean : 테스트 내에서 예외가 발생한 경우 True입니다. |
elapsedTime |
long : 테스트를 실행하는 데 걸린 시간입니다. |
preRun
protected void preRun ()
테스트를 실행하기 전에 설정합니다.
setEventStreaming
protected void setEventStreaming (boolean eventStreaming)
use-event-streaming을 설정합니다. 단위 테스트를 위해 노출됩니다.
매개변수 | |
---|---|
eventStreaming |
boolean |
setProtoReporting
protected void setProtoReporting (boolean protoReporting)
매개변수 | |
---|---|
protoReporting |
boolean |
setRunUtil
protected void setRunUtil (IRunUtil runUtil)
IRunUtil을 설정합니다. 단위 테스트를 위해 노출됩니다.
매개변수 | |
---|---|
runUtil |
IRunUtil |