원격 호출 실행
public class RemoteInvocationExecution
extends InvocationExecution
java.lang.객체 | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.RemoteInvocationExecution |
구현 InvocationExecution
원격 실행을 구동한다.
요약
상수 | |
---|---|
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 cleanUp 단계를 실행합니다. |
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 cleanUp 단계를 실행합니다. 장치를 정리합니까?
매개변수 | |
---|---|
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 |
해체
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 runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
테스트를 실행합니다.
매개변수 | |
---|---|
info | TestInformation 다음 TestInformation 으로 테스트를 실행합니다. |
config | IConfiguration 다음 IConfiguration 실행에 |
listener | ITestInvocationListener 다음 ITestInvocationListener 시험 결과 |
보호된 방법
사용자 정의 장치 사전 호출
protected void customizeDevicePreInvocation (IConfiguration config, IInvocationContext context)
preInvocationSetup 전에 일부 장치를 사용자 정의할 기회를 주십시오.
매개변수 | |
---|---|
config | IConfiguration : 호출의 설정. |
context | IInvocationContext : 현재 호출 컨텍스트. |
getAdbVersion
protected String getAdbVersion ()
호출에 사용 중인 adb 버전을 반환합니다.
보고 | |
---|---|
String |