RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


Implementacja interfejsu InvocationExecution, która umożliwia zdalne wykonanie.

Podsumowanie

Zagnieżdżone klasy

class RemoteInvocationExecution.FileOptionValueTransformer

 

Stałe

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

Konstruktory publiczne

RemoteInvocationExecution()

Metody publiczne

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

Wykonaj krok czyszczenia target_preparer i multi_target_preparer.

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

Wykonaj krok konfiguracji target_preparer i multi_target_preparer.

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

Wykonaj krok zamykający target_preparer i multi_target_preparer.

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.

Metody chronione

void customizeDevicePreInvocation(IConfiguration config, IInvocationContext context)

Umożliwia dostosowanie niektórych ustawień urządzenia przed wywołaniem funkcji preInvocationSetup.

String getAdbVersion()

Zwraca wersję adb używaną w wywołaniu.

Stałe

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

Wartość stała: "global-remote-configuration"

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)

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

Wartość stała: "output.pb"

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

Constant Value: 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

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

REMOTE_CONFIG

public static final String REMOTE_CONFIG

Wartość stała: "configuration"

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

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

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

Wartość stała: "/home/{$USER}/"

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

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

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

Wartość stała: "START_FEATURE_SERVER"

STDERR_FILE

public static final String STDERR_FILE

Wartość stała: "screen-VM_tradefed-stderr.txt"

STDOUT_FILE

public static final String STDOUT_FILE

Wartość stała: "screen-VM_tradefed-stdout.txt"

Konstruktory publiczne

RemoteInvocationExecution

public RemoteInvocationExecution ()

Metody publiczne

doCleanUp

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

Wykonaj krok czyszczenia target_preparer i multi_target_preparer. Czy urządzenia są czyszczone.

Parametry
context IInvocationContext: IInvocationContext wywołania.

config IConfiguration: IConfiguration tej sesji testowej.

exception Throwable: oryginalny wyjątek zgłoszony przez uruchomiony test.

doSetup

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

Wykonaj krok konfiguracji target_preparer i multi_target_preparer. Konfiguruje wszystkie urządzenia wymagane do przeprowadzenia testu.

Parametry
testInfo TestInformation: TestInformation wywołania.

config IConfiguration: IConfiguration tej sesji testowej.

logger ITestLogger: ITestLogger do raportowania błędów konfiguracji.

Zgłasza
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

Wykonaj krok zamykający target_preparer i multi_target_preparer. Czy urządzenia są rozbierane w ramach konfiguracji.

Parametry
testInfo TestInformation: TestInformation wywołania.

config IConfiguration: IConfiguration tej sesji testowej.

logger ITestLogger: ITestLogger do raportowania logów.

exception Throwable: oryginalny wyjątek zgłoszony przez uruchomiony test.

Zgłasza
Throwable

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 tej sesji testowej.

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

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

Zwraca
boolean Wartość true, jeśli udało nam się pobrać kompilację. W przeciwnym razie wartość false.

Zgłasza
BuildRetrievalError
DeviceNotAvailableException

runTests

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

Uruchamia test.

Parametry
info TestInformation: TestInformation, za pomocą którego chcesz uruchomić testy.

config IConfiguration: IConfiguration do uruchomienia

listener ITestInvocationListener: ITestInvocationListener wyników testu

Zgłasza
Throwable

Metody chronione

customizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

Umożliwia dostosowanie niektórych ustawień urządzenia przed wywołaniem funkcji preInvocationSetup.

Parametry
config IConfiguration: konfiguracja wywołania.

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

getAdbVersion

protected String getAdbVersion ()

Zwraca wersję adb używaną w wywołaniu.

Zwraca
String