RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


יישום של InvocationExecution שמניע ביצוע מרחוק.

סיכום

כיתות מקוננות

class RemoteInvocationExecution.FileOptionValueTransformer

קבועים

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

שדות

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

בנאים ציבוריים

RemoteInvocationExecution ()

שיטות ציבוריות

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 שנמצאת בשימוש עבור ההזמנה.

קבועים

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 (0x000000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

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

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

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

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

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

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

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

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

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

שדות

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

בנאים ציבוריים

RemoteInvocationExecution

public RemoteInvocationExecution ()

שיטות ציבוריות

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 נכון אם הורדנו בהצלחה את ה-build, לא נכון אחרת.

זורק
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