상위 샌드박스 호출실행

public class ParentSandboxInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.sandbox.ParentSandboxInvocationExecution


샌드박스 실행 시 상위 호출 특수 작업에 대한 InvocationExecution 버전입니다.

요약

공개 생성자

ParentSandboxInvocationExecution ()

공개 메소드

void doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception)

target_preparer 및 multi_target_preparer 정리 단계를 실행합니다.

void doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger listener)

target_preparer 및 multi_target_preparer setUp 단계를 실행합니다.

void doTeardown ( TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)

target_preparer 및 multi_target_preparer 해제 단계를 실행합니다.

boolean fetchBuild ( TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

호출의 build_provider 단계를 실행합니다.

void reportLogs ( ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)

호출의 다양한 단계에서 일부 장치 로그를 보고합니다.

void runDevicePostInvocationTearDown ( IInvocationContext context, IConfiguration config, Throwable exception)

호출의 각 장치 부분에 대해 ITestDevice#postInvocationTearDown(Throwable) 호출합니다.

void runDevicePreInvocationSetup ( IInvocationContext context, IConfiguration config, ITestLogger logger)

호출의 각 장치 부분에 대해 ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) 호출합니다.

void runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

테스트를 실행합니다.

보호된 방법

IConfigurationFactory getFactory ()

구성을 생성하는 데 사용되는 IConfigurationFactory 반환합니다.

getLabPreparersToRun ( IConfiguration config, String deviceName)

이 장치에서 실행할 실험실 준비자 목록을 검색합니다.

IRunUtil getRunUtil ()
getTargetPreparersToRun ( IConfiguration config, String deviceName)

이 장치에서 실행할 대상 준비자 목록을 검색합니다.

boolean prepareAndRunSandbox ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

샌드박스 실행 결과 상태를 반환합니다.

공개 생성자

상위 샌드박스 호출실행

public ParentSandboxInvocationExecution ()

공개 메소드

doCleanUp

public void doCleanUp (IInvocationContext context, 
                IConfiguration config, 
                Throwable exception)

target_preparer 및 multi_target_preparer 정리 단계를 실행합니다. 장치가 정리됩니까?

매개변수
context IInvocationContext : 호출의 IInvocationContext .

config IConfiguration : 이 테스트 실행의 IConfiguration .

exception Throwable : 테스트 실행 중에 발생한 원래 예외입니다.

doSetup

public void doSetup (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger listener)

target_preparer 및 multi_target_preparer setUp 단계를 실행합니다. 테스트 실행에 필요한 모든 장치 설정을 수행합니다.

매개변수
testInfo TestInformation : 호출의 TestInformation .

config IConfiguration : 이 테스트 실행의 IConfiguration .

listener ITestLogger : 설정 실패 로그를 보고하는 ITestLogger .

던지기
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

public void doTeardown (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger logger, 
                Throwable exception)

target_preparer 및 multi_target_preparer 해제 단계를 실행합니다. 설정과 관련된 장치가 분해됩니까?

매개변수
testInfo TestInformation : 호출의 TestInformation .

config IConfiguration : 이 테스트 실행의 IConfiguration .

logger ITestLogger : 로그를 보고하는 ITestLogger .

exception Throwable : 테스트 실행 중에 발생한 원래 예외입니다.

fetchBuild

public boolean fetchBuild (TestInformation testInfo, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

호출의 build_provider 단계를 실행합니다.

매개변수
testInfo TestInformation : 호출의 TestInformation .

config IConfiguration : 이 테스트 실행의 IConfiguration .

rescheduler IRescheduler : 다른 리소스에서 실행하기 위해 호출 부분을 다시 예약하는 IRescheduler

listener ITestInvocationListener : 빌드 다운로드 실패를 보고하는 ITestInvocation .

보고
boolean 빌드를 성공적으로 다운로드한 경우 True이고, 그렇지 않은 경우 False입니다.

던지기
BuildRetrievalError
DeviceNotAvailableException

보고서로그

public void reportLogs (ITestDevice device, 
                ITestLogger logger, 
                TestInvocation.Stage stage)

호출의 다양한 단계에서 일부 장치 로그를 보고합니다. 예: logcat.

매개변수
device ITestDevice : 로그를 보고할 장치입니다.

logger ITestLogger : 로그에 대한 로거입니다.

stage TestInvocation.Stage : 현재 호출 단계입니다.

runDevicePostInvocationTearDown

public void runDevicePostInvocationTearDown (IInvocationContext context, 
                IConfiguration config, 
                Throwable exception)

호출의 각 장치 부분에 대해 ITestDevice#postInvocationTearDown(Throwable) 호출합니다.

매개변수
context IInvocationContext : 호출의 IInvocationContext .

config IConfiguration : 이 테스트 실행의 IConfiguration .

exception Throwable : 실행 중인 테스트에서 발생한 원래 예외입니다.

runDevicePreInvocationSetup

public void runDevicePreInvocationSetup (IInvocationContext context, 
                IConfiguration config, 
                ITestLogger logger)

호출의 각 장치 부분에 대해 ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) 호출합니다.

매개변수
context IInvocationContext : 호출의 IInvocationContext .

config IConfiguration : 이 테스트 실행의 IConfiguration .

logger ITestLogger : 로그를 보고하는 ITestLogger .

던지기
DeviceNotAvailableException
TargetSetupError

테스트 실행

public void runTests (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

테스트를 실행합니다.

매개변수
info TestInformation : 테스트를 실행할 TestInformation 입니다.

config IConfiguration : 실행할 IConfiguration

listener ITestInvocationListener : 테스트 결과의 ITestInvocationListener

보호된 방법

getFactory

protected IConfigurationFactory getFactory ()

구성을 생성하는 데 사용되는 IConfigurationFactory 반환합니다.

보고
IConfigurationFactory

getLabPreparersToRun

protected  getLabPreparersToRun (IConfiguration config, 
                String deviceName)

이 장치에서 실행할 실험실 준비자 목록을 검색합니다.

랩 준비자가 샌드박스 하위 내부에서 실행되는 것을 제한하기 위해 샌드박스 클래스에서 재정의되었습니다.

매개변수
config IConfiguration

deviceName String

보고

getRunUtil

protected IRunUtil getRunUtil ()

보고
IRunUtil

getTargetPreparersToRun

protected  getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

이 장치에서 실행할 대상 준비자 목록을 검색합니다.

랩 준비자가 샌드박스 하위 내부에서 실행되는 것을 제한하기 위해 샌드박스 클래스에서 재정의되었습니다.

매개변수
config IConfiguration

deviceName String

보고

prepareAndRun샌드박스

protected boolean prepareAndRunSandbox (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

샌드박스 실행 결과 상태를 반환합니다.

매개변수
info TestInformation

config IConfiguration

listener ITestInvocationListener

보고
boolean