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 cleanUp 단계를 실행합니다. |
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) 호출의 각 장치 부분에 대해 |
void | runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger) 호출의 각 장치 부분에 대해 |
void | runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener) 테스트를 실행합니다. |
보호된 방법 | |
---|---|
IConfigurationFactory | getFactory () 생성된 구성에 사용되는 |
getPreparersToRun ( IConfiguration config, String deviceName) 이 장치에서 실행할 준비자 목록을 검색합니다. | |
IRunUtil | getRunUtil () |
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 cleanUp 단계를 실행합니다. 장치를 정리합니까?
매개변수 | |
---|---|
context | IInvocationContext : 호출의 IInvocationContext 입니다. |
config | IConfiguration : 이 테스트 실행의 IConfiguration 입니다. |
exception | Throwable : 실행 중인 테스트에서 throw된 원래 예외입니다. |
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 |
해체
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 : 실행 중인 테스트에서 throw된 원래 예외입니다. |
페치빌드
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)
호출의 다른 단계에서 일부 장치 로그를 보고합니다. 예: 로그캣.
매개변수 | |
---|---|
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 : 실행 중인 테스트에서 throw된 원래 예외(있는 경우)입니다. |
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 |
getPreparersToRun
protectedgetPreparersToRun (IConfiguration config, String deviceName)
이 장치에서 실행할 준비자 목록을 검색합니다.
실험실 준비자가 샌드박스 자식 내에서 실행되는 것을 제한하기 위해 샌드박스 클래스에서 재정의됨
매개변수 | |
---|---|
config | IConfiguration |
deviceName | String |
보고 | |
---|---|
getRunUtil
protected IRunUtil getRunUtil ()
보고 | |
---|---|
IRunUtil |
준비 및 실행 샌드박스
protected boolean prepareAndRunSandbox (TestInformation info, IConfiguration config, ITestInvocationListener listener)
샌드박스 실행 결과 상태를 반환합니다.
매개변수 | |
---|---|
info | TestInformation |
config | IConfiguration |
listener | ITestInvocationListener |
보고 | |
---|---|
boolean |