RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Object
   ↳ com.android.tradefed.invoker.InvocationExecution
     ↳ com.android.tradefed.invoker.RemoteInvocationExecution


Uzaktan yürütmeyi sağlayan InvocationExecution uygulaması.

Özet

İç içe yerleştirilmiş sınıflar

class RemoteInvocationExecution.FileOptionValueTransformer

 

Sabitler

String GLOBAL_REMOTE_CONFIG

long JOIN_CLEAN_TIMEOUT_MS

long LAUNCH_EXTRA_DEVICE

long NEW_USER_TIMEOUT

String PROTO_RESULT_NAME

long PULL_RESULT_TIMEOUT

long PUSH_TF_TIMEOUT

String REMOTE_CONFIG

long REMOTE_PROCESS_RUNNING_WAIT

String REMOTE_USER_DIR

long SETUP_REMOTE_DIR_TIMEOUT

String START_FEATURE_SERVER

String STDERR_FILE

String STDOUT_FILE

Herkese açık oluşturucular

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ı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ı uygulayın.

boolean fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

Çağırmanı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'tan önce cihazın bazı özelliklerini özelleştirme fırsatı verin.

String getAdbVersion()

Çağırma için kullanılan adb sürümünü döndürür.

Sabitler

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

Sabit Değer: "global-remote-configuration"

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)

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

Sabit Değer: "output.pb"

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_CONFIG

public static final String REMOTE_CONFIG

Sabit Değer: "configuration"

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

Sabit Değer: 15000 (0x0000000000003a98)

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

Sabit Değer: "/home/{$USER}/"

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

Sabit Değer: 600000 (0x00000000000927c0)

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

Sabit Değer: "START_FEATURE_SERVER"

STDERR_FILE

public static final String STDERR_FILE

Sabit Değer: "screen-VM_tradefed-stderr.txt"

STDOUT_FILE

public static final String STDOUT_FILE

Sabit Değer: "screen-VM_tradefed-stdout.txt"

Herkese açık oluşturucular

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. Cihaz temizleniyor mu?

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

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

exception Throwable: Test çalıştırılırken oluşturulan orijinal istisna.

doSetup

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

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

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.

Dekoratif yastıklar
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ı uygulayın. Kurulumla ilişkili cihazlar sökülüyor mu?

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: Test çalıştırılırken oluşturulan orijinal istisna.

fetchBuild

public boolean fetchBuild (TestInformation testInfo, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

Çağırmanı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ğırma bölümlerini başka kaynaklarda yürütmek üzere yeniden planlamak için IRescheduler

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

İlerlemeler
boolean Derleme başarıyla indirildiyse doğru, aksi takdirde yanlış.

Dekoratif yastıklar
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'tan önce cihazın bazı özelliklerini özelleştirme fırsatı verin.

Parametreler
config IConfiguration: Çağırmanın yapılandırması.

context IInvocationContext: Geçerli çağırma bağlamı.

getAdbVersion

protected String getAdbVersion ()

Çağırma için kullanılan adb sürümünü döndürür.

İlerlemeler
String