RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


הטמעה של InvocationExecution שמפעילה הרצה מרחוק.

סיכום

כיתות במבנה היררכי

class RemoteInvocationExecution.FileOptionValueTransformer

 

ערכים קבועים

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

Constructors ציבוריים

RemoteInvocationExecution()

‫methods ציבוריים

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

מבצעים את שלב הניקוי של target_preparer ו-multi_target_preparer.

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

מריצים את שלב ההגדרה של target_preparer ו-multi_target_preparer.

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

מבצעים את שלב הניקוי של target_preparer ו-multi_target_preparer.

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

מריצים את השלב build_provider של הקריאה.

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

מריצים את הבדיקה.

שיטות מוגנות

void customizeDevicePreInvocation(IConfiguration config, IInvocationContext context)

אפשרות להתאים אישית חלק מהמכשיר לפני preInvocationSetup.

String getAdbVersion()

הפונקציה מחזירה את גרסת ה-adb שנמצאת בשימוש עבור הקריאה.

ערכים קבועים

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

ערך קבוע: global-remote-configuration

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

ערך קבוע: 120000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

ערך קבוע: 900000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

ערך קבוע: 300000 (0x00000000000493e0)

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

ערך קבוע: "output.pb"

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

ערך קבוע: 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

ערך קבוע: 150000 (0x00000000000249f0)

REMOTE_CONFIG

public static final String REMOTE_CONFIG

ערך קבוע: ‎'configuration'‎

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

ערך קבוע: 15000 (0x0000000000003a98)

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

ערך קבוע: "/home/{$USER}/"

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

ערך קבוע: 600000 (0x00000000000927c0)

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

ערך קבוע: "START_FEATURE_SERVER"

STDERR_FILE

public static final String STDERR_FILE

ערך קבוע: "screen-VM_tradefed-stderr.txt"

STDOUT_FILE

public static final String STDOUT_FILE

ערך קבוע: ‎"screen-VM_tradefed-stdout.txt"‎

Constructors ציבוריים

RemoteInvocationExecution

public RemoteInvocationExecution ()

‫methods ציבוריים

doCleanUp

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

מבצעים את שלב הניקוי של target_preparer ו-multi_target_preparer. המכשירים מנקים את עצמם.

פרמטרים
context IInvocationContext: ה-IInvocationContext של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

exception Throwable: החריגה המקורית שהופעלה על ידי הרצת הבדיקה.

doSetup

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

מריצים את שלב ההגדרה של target_preparer ו-multi_target_preparer. מבצע את כל ההגדרות במכשירים שנדרשות להרצת הבדיקה.

פרמטרים
testInfo TestInformation: ה-TestInformation של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

logger ITestLogger: ITestLogger כדי לדווח על יומנים של כשלים בהגדרה.

זריקות
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

מבצעים את שלב הניקוי של target_preparer ו-multi_target_preparer. מפרק את המכשירים שמשויכים להגדרה.

פרמטרים
testInfo TestInformation: ה-TestInformation של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

logger ITestLogger: ITestLogger כדי לדווח על יומנים.

exception Throwable: החריגה המקורית שהופעלה על ידי הרצת הבדיקה.

fetchBuild

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

מריצים את השלב build_provider של הקריאה.

פרמטרים
testInfo TestInformation: ה-TestInformation של ההפעלה.

config IConfiguration: IConfiguration של הרצת הבדיקה הזו.

rescheduler IRescheduler: IRescheduler, לתזמון מחדש של חלקים מהקריאה להפעלה לביצוע במשאבים אחרים

listener ITestInvocationListener: ITestInvocation לדיווח על כשלים בהורדת גרסת Build.

החזרות
boolean ‫True אם ההורדה של הגרסה הצליחה, אחרת False.

זריקות
BuildRetrievalError
DeviceNotAvailableException

runTests

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

מריצים את הבדיקה.

פרמטרים
info TestInformation: TestInformation להרצת בדיקות.

config IConfiguration: ה-IConfiguration שרוצים להריץ

listener ITestInvocationListener: ITestInvocationListener תוצאות הבדיקה

שיטות מוגנות

customizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

אפשרות להתאים אישית חלק מהמכשיר לפני preInvocationSetup.

פרמטרים
config IConfiguration: ההגדרה של הקריאה.

context IInvocationContext: ההקשר הנוכחי של הקריאה.

getAdbVersion

protected String getAdbVersion ()

הפונקציה מחזירה את גרסת ה-adb שנמצאת בשימוש עבור הקריאה.

החזרות
String