ParentSandboxInvocationExecution

public class ParentSandboxInvocationExecution
extends InvocationExecution

java.lang.객체
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 설정 단계를 실행합니다.

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)

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

공개 생성자

ParentSandboxInvocationExecution

public ParentSandboxInvocationExecution ()

공개 방법

클린업을 하다

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 설정 단계를 실행합니다. 테스트 실행에 필요한 모든 장치 설정을 수행합니다.

매개변수
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 : 테스트 실행으로 발생한 원래 예외입니다.

가져오기 빌드

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

reportLogs

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

호출의 다른 단계에서 일부 장치 로그를 보고합니다. 예를 들면 다음과 같습니다.

매개변수
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

runTests

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

보고

준비 및 실행 샌드박스

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

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

매개변수
info TestInformation

config IConfiguration

listener ITestInvocationListener

보고
boolean