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 : 테스트 실행에 의해 발생 원래의 예외입니다. |
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 : 테스트 실행에 의해 발생 원래의 예외입니다. |
페치빌드
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 : 테스트 실행 (있는 경우)에 의해 발생 원래의 예외입니다. |
runDevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
매개변수 | |
---|---|
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 |