RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Object
   ↳ com.android.tradefed.invoker.InvocationExecution
     ↳ com.android.tradefed.invoker.RemoteInvocationExecution


원격 실행을 실행하는 InvocationExecution 구현

요약

중첩된 클래스

class RemoteInvocationExecution.FileOptionValueTransformer

 

상수

String GLOBAL_REMOTE_CONFIG

long JOIN_CLEAN_TIMEOUT_MS

long LAUNCH_EXTRA_DEVICE

long NEW_USER_TIMEOUT

String PROTO_RESULT_NAME

long PULL_RESULT_TIMEOUT

long PUSH_TF_TIMEOUT

String REMOTE_CONFIG

long REMOTE_PROCESS_RUNNING_WAIT

String REMOTE_USER_DIR

long SETUP_REMOTE_DIR_TIMEOUT

String START_FEATURE_SERVER

String STDERR_FILE

String STDOUT_FILE

공개 생성자

RemoteInvocationExecution()

공개 메서드

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

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

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

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

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

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

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

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

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

테스트를 실행합니다.

보호된 메서드

void customizeDevicePreInvocation(IConfiguration config, IInvocationContext context)

preInvocationSetup 전에 기기를 맞춤설정할 기회를 제공합니다.

String getAdbVersion()

호출에 사용되는 adb 버전을 반환합니다.

상수

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

상수 값: "global-remote-configuration"

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

상수 값: 120000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

상수 값: 900000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

상수 값: 300000 (0x00000000000493e0)

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

상수 값: 'output.pb'

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

상수 값: 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

상수 값: 150000 (0x00000000000249f0)

REMOTE_CONFIG

public static final String REMOTE_CONFIG

상수 값: 'configuration'

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

상수 값: 15000 (0x0000000000003a98)

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

상수 값: "/home/{$USER}/"

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

상수 값: 600000 (0x00000000000927c0)

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

상수 값: 'START_FEATURE_SERVER'

STDERR_FILE

public static final String STDERR_FILE

상수 값: 'screen-VM_tradefed-stderr.txt'

STDOUT_FILE

public static final String STDOUT_FILE

상수 값: 'screen-VM_tradefed-stdout.txt'

공개 생성자

RemoteInvocationExecution

public RemoteInvocationExecution ()

공개 메서드

doCleanUp

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 logger)

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

매개변수
testInfo TestInformation: 호출의 TestInformation입니다.

config IConfiguration: 이 테스트 실행의 IConfiguration입니다.

logger ITestLogger: 설정 실패 로그를 보고할 ITestLogger입니다.

생성 값
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

target_preparer 및 multi_target_preparer teardown 단계를 실행합니다. 설정과 연결된 기기를 해체합니다.

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

runTests

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

테스트를 실행합니다.

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

config IConfiguration: 실행할 IConfiguration

listener ITestInvocationListener: 테스트 결과의 ITestInvocationListener

보호된 메서드

customizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

preInvocationSetup 전에 기기를 맞춤설정할 기회를 제공합니다.

매개변수
config IConfiguration: 호출의 구성입니다.

context IInvocationContext: 현재 호출 컨텍스트입니다.

getAdbVersion

protected String getAdbVersion ()

호출에 사용되는 adb 버전을 반환합니다.

반환 값
String