RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


Implementacja usługi InvocationExecution, która umożliwia zdalne wykonywanie.

Podsumowanie

Zagnieżdżone klasy

class RemoteInvocationExecution.FileOptionValueTransformer

 

Stałe

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

Fieldsem

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

Konstruktory publiczne

RemoteInvocationExecution()

Metody publiczne

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

Wykonaj czyszczenie w procedurach target_preparer i multi_target_preparer.

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

Wykonaj krok target_preparer i multi_target_preparer.

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

Wykonaj kroki target_preparer i multi_target_preparer teardown.

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

Wykonaj krok build_provider wywołania.

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

Uruchamia test.

Chronione metody

void customizeDevicePreInvocation(IConfiguration config, IInvocationContext context)

Daj użytkownikowi możliwość dostosowania niektórych ustawień urządzenia przed wywołaniem.

String getAdbVersion()

Zwraca wersję adb używaną do wywołania.

Stałe

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

Wartość stała: 120000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

Wartość stała: 900000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

Wartość stała: 300000 (0x00000000000493e0)

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

Wartość stała: 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

Wartość stała: 150000 (0x00000000000249f0)

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

Wartość stała: 15000 (0x0000000000003a98)

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

Wartość stała: 600000 (0x00000000000927c0)

Fieldsem

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

Konstruktory publiczne

RemoteInvocationExecution

public RemoteInvocationExecution ()

Metody publiczne

doCleanUp

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

Wykonaj czyszczenie w procedurach target_preparer i multi_target_preparer. Czy urządzenia są czyszczone.

Parametry
context IInvocationContext: IInvocationContext wywołania.

config IConfiguration: IConfiguration tego testu.

exception Throwable: pierwotne wyjątek rzucony przez test.

doSetup

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

Wykonaj krok target_preparer i multi_target_preparer. Czy wszystkie urządzenia są skonfigurowane do przeprowadzenia testu.

Parametry
testInfo TestInformation: TestInformation wywołania.

config IConfiguration: IConfiguration tego testu.

logger ITestLogger: ITestLogger, aby zgłosić logi niepowodzeń konfiguracji.

Rzuty
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

Wykonaj kroki target_preparer i multi_target_preparer teardown. Czy urządzenia są rozłożone w układzie?

Parametry
testInfo TestInformation: TestInformation wywołania.

config IConfiguration: IConfiguration tego testu.

logger ITestLogger: ITestLogger do raportowania logów.

exception Throwable: pierwotne wyjątek rzucony przez test.

fetchBuild

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

Wykonaj krok build_provider wywołania.

Parametry
testInfo TestInformation: TestInformation wywołania.

config IConfiguration: IConfiguration tego testu.

rescheduler IRescheduler: IRescheduler, aby ponownie zaplanować części wywołania do wykonania na innych zasobach

listener ITestInvocationListener: ITestInvocation, aby zgłosić niepowodzenia pobierania kompilacji.

Zwroty
boolean Wartość true (prawda), jeśli udało się pobrać wersję, a w przeciwnym razie – wartość false (fałsz).

Rzuty
BuildRetrievalError
DeviceNotAvailableException

runTests

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

Uruchamia test.

Parametry
info TestInformation: TestInformation, z którym mają być wykonywane testy.

config IConfiguration: IConfiguration do uruchomienia

listener ITestInvocationListener: ITestInvocationListener wyników testu

Chronione metody

customizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

Daj użytkownikowi możliwość dostosowania niektórych ustawień urządzenia przed wywołaniem.

Parametry
config IConfiguration: konfiguracja wywołania.

context IInvocationContext: bieżący kontekst wywołania.

getAdbVersion

protected String getAdbVersion ()

Zwraca wersję adb używaną do wywołania.

Zwroty
String