Koleksiyonlar ile düzeninizi koruyun İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.

Uzaktan ÇağırmaYürütme

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Nesne
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.RemoteInvocationExecution


Uzaktan yürütmeyi yönlendiren InvocationExecution uygulanması.

Özet

iç içe sınıflar

class RemoteInvocationExecution.FileOptionValueTransformer

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

Alanlar

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

Kamu inşaatçıları

RemoteInvocationExecution ()

Genel yöntemler

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

target_preparer ve multi_target_preparer temizleme adımını yürütün.

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

target_preparer ve multi_target_preparer kurulum adımını yürütün.

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

target_preparer ve multi_target_preparer sökme 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.

Korumalı yöntemler

void customizeDevicePreInvocation ( IConfiguration config, IInvocationContext context)

PreInvocationSetup'tan önce cihazın bir kısmını özelleştirme şansı verin.

String getAdbVersion ()

Çağrı için 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 (0x000000000000493e0)

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 (0x00000000000003a98)

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

Sabit Değer: 600000 (0x000000000000927c0)

Alanlar

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

Kamu inşaatçıları

Uzaktan ÇağırmaYürütme

public RemoteInvocationExecution ()

Genel yöntemler

temizlik

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

target_preparer ve multi_target_preparer temizleme adımını yürütün. Cihazlar temizleniyor mu?

parametreler
context IInvocationContext : IInvocationContext .

config IConfiguration : Bu test çalıştırmasının IConfiguration .

exception Throwable : test çalışması tarafından oluşturulan orijinal istisna.

kurulum

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

target_preparer ve multi_target_preparer kurulum adımını yürütün. Testin çalışması için gereken tüm cihaz kurulumunu yapar.

parametreler
testInfo TestInformation : TestInformation .

config IConfiguration : Bu test çalıştırmasının IConfiguration .

logger ITestLogger : kurulum hataları günlüklerini bildirmek için ITestLogger .

atar
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

target_preparer ve multi_target_preparer sökme adımını yürütün. Cihazlar kurulumla ilişkili olarak yırtılır mı?

parametreler
testInfo TestInformation : TestInformation .

config IConfiguration : Bu test çalıştırmasının IConfiguration .

logger ITestLogger : Günlükleri raporlamak için ITestLogger .

exception Throwable : test çalışması tarafından oluşturulan orijinal istisna.

getir

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 : TestInformation .

config IConfiguration : Bu test çalıştırmasının IConfiguration .

rescheduler IRescheduler : Çağrının bölümlerini başka bir kaynakta/kaynaklarda yürütülmek üzere yeniden zamanlamak için IRescheduler

listener ITestInvocationListener : derleme indirme hatalarını bildirmek için ITestInvocation .

İadeler
boolean Derlemeyi başarıyla indirdiysek true, aksi takdirde false.

atar
BuildRetrievalError
DeviceNotAvailableException

runTestler

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

Testi çalıştırır.

parametreler
info TestInformation : Testlerin birlikte çalıştırılacağı TestInformation .

config IConfiguration : çalıştırılacak IConfiguration

listener ITestInvocationListener : test sonuçlarının ITestInvocationListener

Korumalı yöntemler

özelleştirmeCihazÖn Çağırma

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

PreInvocationSetup'tan önce cihazın bir kısmını özelleştirme şansı 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ı için kullanılan adb sürümünü döndürür.

İadeler
String