Uzaktan Çağırma Yürütme

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.invoker.InvokasyonYürütme
com.android.tradefed.invoker.RemoteInvationExecution


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

Özet

İç içe geçmiş 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 cleanUp 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)

PreInvationSetup'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 (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)

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ğırma Yürütme

public RemoteInvocationExecution ()

Genel yöntemler

Temizleme Yap

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

Target_preparer ve multi_target_preparer cleanUp adımını yürütün. Cihazlar temizleniyor mu?

Parametreler
context IInvocationContext : çağrının IInvocationContext .

config IConfiguration : Bu test çalışmasının IConfiguration .

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

doKurulum

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 cihazların kurulumu yapılıyor mu?

Parametreler
testInfo TestInformation : çağrının TestInformation .

config IConfiguration : Bu test çalışmasının IConfiguration .

logger ITestLogger : kurulum hataları günlüklerini raporlayan ITestLogger .

Atar
BuildError
DeviceNotAvailableException
TargetSetupError

Yırtma işlemi yap

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. Kurulumla ilgili olarak cihazlar bozuluyor mu?

Parametreler
testInfo TestInformation : çağrının TestInformation .

config IConfiguration : Bu test çalışmasının IConfiguration .

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

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

getirYap

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ışmasının IConfiguration .

rescheduler IRescheduler : çağrının bazı bölümlerini başka kaynaklarda yürütülmek üzere yeniden planlamak için IRescheduler

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

İadeler
boolean Yapıyı başarıyla indirdiysek doğru, aksi halde yanlış.

Atar
BuildRetrievalError
DeviceNotAvailableException

RunTestler

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

Korumalı yöntemler

özelleştirmeDevicePreInvokasyon

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

PreInvationSetup'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