RemoteInvocationExecution
public
class
RemoteInvocationExecution
extends InvocationExecution
| java.lang.Object | ||
| ↳ | com.android.tradefed.invoker.InvocationExecution | |
| ↳ | com.android.tradefed.invoker.RemoteInvocationExecution | |
Uzaktan yürütme sağlayan InvocationExecution uygulaması.
Özet
Sabitler | |
|---|---|
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
|
Fields'ın oynadığı filmler | |
|---|---|
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
|
Herkese açık kurucular | |
|---|---|
RemoteInvocationExecution()
|
|
Herkese açık yöntemler | |
|---|---|
void
|
doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception)
target_preparer ve multi_target_preparer cleanUp adımını yürütün. |
void
|
doSetup(TestInformation testInfo, IConfiguration config, ITestLogger logger)
target_preparer ve multi_target_preparer setUp adımlarını yürütün. |
void
|
doTeardown(TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)
target_preparer ve multi_target_preparer teardown adımını yürütün. |
boolean
|
fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
Çağrının build_provider adımını yürütün. |
void
|
runTests(TestInformation info, IConfiguration config, ITestInvocationListener listener)
Testi çalıştırır. |
Korunan yöntemler | |
|---|---|
void
|
customizeDevicePreInvocation(IConfiguration config, IInvocationContext context)
preInvocationSetup çağrısından önce cihazın bir kısmını özelleştirme fırsatı verin. |
String
|
getAdbVersion()
Çağrıda kullanılan adb sürümünü döndürür. |
Sabitler
JOIN_CLEAN_TIMEOUT_MS
public static final long JOIN_CLEAN_TIMEOUT_MS
Sabit Değer: 120000 (0x000000000001d4c0)
LAUNCH_EXTRA_DEVICE
public static final long LAUNCH_EXTRA_DEVICE
Sabit Değer: 900000 (0x00000000000dbba0)
NEW_USER_TIMEOUT
public static final long NEW_USER_TIMEOUT
Sabit Değer: 300000 (0x00000000000493e0)
PULL_RESULT_TIMEOUT
public static final long PULL_RESULT_TIMEOUT
Sabit Değer: 180000 (0x000000000002bf20)
PUSH_TF_TIMEOUT
public static final long PUSH_TF_TIMEOUT
Sabit Değer: 150000 (0x00000000000249f0)
REMOTE_PROCESS_RUNNING_WAIT
public static final long REMOTE_PROCESS_RUNNING_WAIT
Sabit Değer: 15000 (0x0000000000003a98)
SETUP_REMOTE_DIR_TIMEOUT
public static final long SETUP_REMOTE_DIR_TIMEOUT
Sabit Değer: 600000 (0x00000000000927c0)
Fields'ın oynadığı filmler
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
Herkese açık kurucular
RemoteInvocationExecution
public RemoteInvocationExecution ()
Herkese açık yöntemler
doCleanUp
public void doCleanUp (IInvocationContext context,
IConfiguration config,
Throwable exception)target_preparer ve multi_target_preparer cleanUp adımını yürütün. Cihazlar temizlenir.
| Parametreler | |
|---|---|
context |
IInvocationContext: Çağrının IInvocationContext. |
config |
IConfiguration: Bu test çalıştırmasının IConfiguration. |
exception |
Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna.
|
doSetup
public void doSetup (TestInformation testInfo,
IConfiguration config,
ITestLogger logger)target_preparer ve multi_target_preparer setUp adımlarını yürütün. Testin çalışması için gereken tüm cihazlar kuruldu mu?
| Parametreler | |
|---|---|
testInfo |
TestInformation: Çağrının TestInformation. |
config |
IConfiguration: Bu test çalıştırmasının IConfiguration. |
logger |
ITestLogger: Kurulum hatalarını bildirmek için ITestLogger. |
| Atışlar | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
doTeardown
public void doTeardown (TestInformation testInfo,
IConfiguration config,
ITestLogger logger,
Throwable exception)target_preparer ve multi_target_preparer teardown adımını yürütün. Kurulumla ilişkili cihazlar sökülür.
| Parametreler | |
|---|---|
testInfo |
TestInformation: Çağrının TestInformation. |
config |
IConfiguration: Bu test çalıştırmasının IConfiguration. |
logger |
ITestLogger: Günlükleri bildirmek için ITestLogger. |
exception |
Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna. |
fetchBuild
public boolean fetchBuild (TestInformation testInfo,
IConfiguration config,
IRescheduler rescheduler,
ITestInvocationListener listener)Çağrının build_provider adımını yürütün.
| Parametreler | |
|---|---|
testInfo |
TestInformation: Çağrının TestInformation. |
config |
IConfiguration: Bu test çalıştırmasının IConfiguration. |
rescheduler |
IRescheduler: Çağırmanın başka kaynaklarda yürütülecek şekilde yeniden planlanması için IRescheduler |
listener |
ITestInvocationListener: derleme indirme hatalarını bildirmek için ITestInvocation. |
| İlerlemeler | |
|---|---|
boolean |
Derlemeyi başarıyla indirdiysek doğru, aksi takdirde yanlış değerini alır. |
| Atışlar | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
runTests
public void runTests (TestInformation info,
IConfiguration config,
ITestInvocationListener listener)Testi çalıştırır.
| Parametreler | |
|---|---|
info |
TestInformation: Testlerin çalıştırılacağı TestInformation. |
config |
IConfiguration: çalıştırılacak IConfiguration |
listener |
ITestInvocationListener: test sonuçlarının ITestInvocationListener'ü |
Korunan yöntemler
customizeDevicePreInvocation
protected void customizeDevicePreInvocation (IConfiguration config, IInvocationContext context)
preInvocationSetup çağrısından önce cihazın bir kısmını özelleştirme fırsatı verin.
| Parametreler | |
|---|---|
config |
IConfiguration: Çağrının yapılandırması. |
context |
IInvocationContext: Geçerli çağırma bağlamı.
|
getAdbVersion
protected String getAdbVersion ()
Çağrıda kullanılan adb sürümünü döndürür.
| İlerlemeler | |
|---|---|
String |
|