원격 호출 실행
public class RemoteInvocationExecution
extends InvocationExecution
java.lang.객체 | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.RemoteInvocationExecution |
원격 실행을 구동하는 InvocationExecution
의 구현입니다.
요약
중첩 클래스 | |
---|---|
class | RemoteInvocationExecution.FileOptionValueTransformer
|
상수 | |
---|---|
long | JOIN_CLEAN_TIMEOUT_MS |
long | LAUNCH_EXTRA_DEVICE |
long | NEW_USER_TIMEOUT |
long | PULL_RESULT_TIMEOUT |
long | PUSH_TF_TIMEOUT |
long | REMOTE_PROCESS_RUNNING_WAIT |
long | SETUP_REMOTE_DIR_TIMEOUT
|
필드 | |
---|---|
public static final String | GLOBAL_REMOTE_CONFIG |
public static final String | PROTO_RESULT_NAME |
public static final String | REMOTE_CONFIG |
public static final String | REMOTE_USER_DIR |
public static final String | START_FEATURE_SERVER |
public static final String | STDERR_FILE |
public static final String | STDOUT_FILE
|
공개 생성자 | |
---|---|
RemoteInvocationExecution () |
공개 방법 | |
---|---|
void | doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception) target_preparer 및 multi_target_preparer 정리 단계를 실행합니다. |
void | doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger logger) 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 | runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener) 테스트를 실행합니다. |
보호된 방법 | |
---|---|
void | customizeDevicePreInvocation ( IConfiguration config, IInvocationContext context) preInvocationSetup 전에 일부 장치를 사용자 정의할 수 있는 기회를 제공하십시오. |
String | getAdbVersion () 호출에 사용 중인 adb 버전을 반환합니다. |
상수
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)
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_PROCESS_RUNNING_WAIT
public static final long REMOTE_PROCESS_RUNNING_WAIT
상수 값: 15000(0x0000000000003a98)
SETUP_REMOTE_DIR_TIMEOUT
public static final long SETUP_REMOTE_DIR_TIMEOUT
상수 값: 600000(0x00000000000927c0)
필드
GLOBAL_REMOTE_CONFIG
public static final String GLOBAL_REMOTE_CONFIG
PROTO_RESULT_NAME
public static final String PROTO_RESULT_NAME
REMOTE_CONFIG
public static final String REMOTE_CONFIG
REMOTE_USER_DIR
public static final String REMOTE_USER_DIR
START_FEATURE_SERVER
public static final String START_FEATURE_SERVER
STDERR_FILE
public static final String STDERR_FILE
STDOUT_FILE
public static final String STDOUT_FILE
공개 생성자
원격 호출 실행
public RemoteInvocationExecution ()
공개 방법
클린업을 하다
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 logger)
target_preparer 및 multi_target_preparer 설정 단계를 실행합니다. 테스트 실행에 필요한 모든 장치 설정을 수행합니다.
매개변수 | |
---|---|
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 분해 단계를 실행합니다. 설정과 관련된 장치가 분해됩니까?
매개변수 | |
---|---|
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 |
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 |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-03-30(UTC)