SubprocessTfLauncher

public abstract class SubprocessTfLauncher
extends Object implements IBuildReceiver, IInvocationContextReceiver, IRemoteTest, IConfigurationReceiver

java.lang.Object의 클래스
   ↳ com.android.tradefed.testtype.SubprocessTfLauncher


별도의 TF 설치를 대상으로 테스트를 실행하기 위한 IRemoteTest입니다.

외부 자바 프로세스를 실행하여 테스트를 실행합니다. TF 단위 또는 기능을 실행하는 데 사용됩니다. 지속적으로 테스트할 수 있습니다

요약

필드

public static final String ANDROID_SERIAL_VAR

환경

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)

사용 중인 IConfiguration를 삽입합니다.

void setInvocationContext(IInvocationContext invocationContext)

보호된 메서드

void addJavaArguments( args)

하위 프로세스 호출에 Java 매개변수를 추가할 수 있습니다.

IRunUtil getRunUtil()

하위 프로세스 명령어에 사용될 IRunUtil를 반환합니다.

void postRun(ITestInvocationListener listener, boolean exception, long elapsedTime)

TF 테스트가 완료된 후 수행할 작업입니다.

void preRun()

테스트 실행 전 설정

void setEventStreaming(boolean eventStreaming)

use-event-streaming을 설정합니다.

void setRunUtil(IRunUtil runUtil)

IRunUtil을 설정합니다.

필드

ANDROID_SERIAL_VAR

public static final String ANDROID_SERIAL_VAR

환경 변수입니다.

PARENT_PROC_TAG_NAME

public static final String PARENT_PROC_TAG_NAME

하위 프로세스 태그_이름

public static final String SUBPROCESS_TAG_NAME

구분을 위해 TF 하위 프로세스로 전달될 태그

mBuildInfo

protected IBuildInfo mBuildInfo

mCmdArgs

protected  mCmdArgs

mConfig

protected IConfiguration mConfig

mRootDir

protected String mRootDir

mRunUtil

protected IRunUtil mRunUtil

mTmpDir

protected File mTmpDir

공개 생성자

SubprocessTfLauncher

public SubprocessTfLauncher ()

공개 메서드

실행

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

매개변수
testInfo TestInformation

listener ITestInvocationListener

생성 값
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

매개변수
buildInfo IBuildInfo

setConfiguration

public void setConfiguration (IConfiguration configuration)

사용 중인 IConfiguration를 삽입합니다.

매개변수
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

매개변수
invocationContext IInvocationContext

보호된 메서드

addJavaArguments

protected void addJavaArguments ( args)

하위 프로세스 호출에 Java 매개변수를 추가할 수 있습니다.

매개변수
args : 다른 인수를 추가해야 하는 현재 인수 목록입니다.

getRunUtil

protected IRunUtil getRunUtil ()

하위 프로세스 명령어에 사용될 IRunUtil를 반환합니다.

반환 값
IRunUtil

실행 후

protected void postRun (ITestInvocationListener listener, 
                boolean exception, 
                long elapsedTime)

TF 테스트가 완료된 후 수행할 작업입니다.

매개변수
listener ITestInvocationListener: 결과를 보고할 원래 ITestInvocationListener입니다.

exception boolean: 테스트 내에서 예외가 발생한 경우 true입니다.

elapsedTime long: 테스트를 실행하는 데 걸린 시간입니다.

실행 전

protected void preRun ()

테스트 실행 전 설정

setEventStreaming

protected void setEventStreaming (boolean eventStreaming)

use-event-streaming을 설정합니다. 단위 테스트를 위해 노출됩니다.

매개변수
eventStreaming boolean

setRunUtil

protected void setRunUtil (IRunUtil runUtil)

IRunUtil을 설정합니다. 단위 테스트를 위해 노출됩니다.

매개변수
runUtil IRunUtil