상위 샌드박스 호출 실행

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를 반환합니다.

getPreparersToRun(IConfiguration config, String deviceName)

이 기기에서 실행할 준비자 목록을 가져옵니다.

IRunUtil getRunUtil()
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: 테스트 실행에 의해 발생한 원래 예외입니다.

설정

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

해체

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

report로그

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

호출의 여러 단계에서 일부 기기 로그를 보고합니다. 예: logcat

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

logger ITestLogger: 로그의 로거입니다.

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

실행 후 호출 후 해체

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

runTest

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

protected  getPreparersToRun (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