ParentSandboxInvocationExecution
public class ParentSandboxInvocationExecution
extends InvocationExecution
java.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.sandbox.PrentSandboxInvocationExecution |
גרסה של InvocationExecution
עבור פעולות מיוחדות להפעלת ההורה בעת הפעלת ארגז חול.
סיכום
בנאים ציבוריים | |
---|---|
ParentSandboxInvocationExecution () |
שיטות ציבוריות | |
---|---|
void | doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception) בצע את שלב הניקוי של target_preparer ו- multi_target_preparer. |
void | doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger listener) בצע את שלב ההגדרה של 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 | reportLogs ( ITestDevice device, ITestLogger logger, TestInvocation.Stage stage) דווח על כמה יומני מכשירים בשלבים שונים של הפנייה. |
void | runDevicePostInvocationTearDown ( IInvocationContext context, IConfiguration config, Throwable exception) הפעל את |
void | runDevicePreInvocationSetup ( IInvocationContext context, IConfiguration config, ITestLogger logger) הפעל את |
void | runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener) מפעיל את הבדיקה. |
שיטות מוגנות | |
---|---|
IConfigurationFactory | getFactory () מחזירה את |
getLabPreparersToRun ( IConfiguration config, String deviceName) אחזר רשימה של מכיני מעבדה להפעלה במכשיר זה. | |
IRunUtil | getRunUtil () |
getTargetPreparersToRun ( IConfiguration config, String deviceName) אחזר רשימה של מכיני יעדים להפעלה במכשיר זה. | |
boolean | prepareAndRunSandbox ( TestInformation info, IConfiguration config, ITestInvocationListener listener) מחזירה את מצב התוצאה של הפעלת ארגז החול. |
בנאים ציבוריים
ParentSandboxInvocationExecution
public ParentSandboxInvocationExecution ()
שיטות ציבוריות
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 listener)
בצע את שלב ההגדרה של target_preparer ו-multi_target_preparer. האם כל הגדרות ההתקנים הנדרשות להפעלת הבדיקה.
פרמטרים | |
---|---|
testInfo | TestInformation : ה- TestInformation של ההזמנה. |
config | IConfiguration : IConfiguration של הפעלת בדיקה זו. |
listener | 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 |
דוח יומני
public void reportLogs (ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)
דווח על כמה יומני מכשירים בשלבים שונים של הפנייה. לדוגמה: logcat.
פרמטרים | |
---|---|
device | ITestDevice : המכשיר שממנו יש לדווח על יומנים. |
logger | ITestLogger : לוגר היומנים. |
stage | TestInvocation.Stage : שלב ההזמנה בה אנו נמצאים. |
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
הפעל את ITestDevice#postInvocationTearDown(Throwable)
עבור כל חלק מהמכשיר של הפנייה.
פרמטרים | |
---|---|
context | IInvocationContext : IInvocationContext של הקריאה. |
config | IConfiguration : IConfiguration של הפעלת בדיקה זו. |
exception | Throwable : החריג המקורי שנזרק על ידי הבדיקה שפועלת, אם בכלל. |
הפעל DevicePreInvocationSetup
public void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)
הפעל את ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo))
בכל חלק של התקן.
פרמטרים | |
---|---|
context | IInvocationContext : IInvocationContext של הקריאה. |
config | IConfiguration : IConfiguration של הפעלת בדיקה זו. |
logger | ITestLogger : ה- ITestLogger לדיווח על יומנים. |
זורק | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
runTests
public void runTests (TestInformation info, IConfiguration config, ITestInvocationListener listener)
מפעיל את הבדיקה.
פרמטרים | |
---|---|
info | TestInformation : ה- TestInformation שאפשר להריץ איתו בדיקות. |
config | IConfiguration : IConfiguration להפעלה |
listener | ITestInvocationListener : ה- ITestInvocationListener של תוצאות הבדיקה |
שיטות מוגנות
getFactory
protected IConfigurationFactory getFactory ()
מחזירה את IConfigurationFactory
המשמש ליצירת תצורות.
החזרות | |
---|---|
IConfigurationFactory |
getLabPreparersToRun
protectedgetLabPreparersToRun (IConfiguration config, String deviceName)
אחזר רשימה של מכיני מעבדה להפעלה במכשיר זה.
נדחק בשיעורי ארגז חול כדי להגביל את הפעלת מכיני המעבדה בתוך ילד ארגז החול
פרמטרים | |
---|---|
config | IConfiguration |
deviceName | String |
החזרות | |
---|---|
getTargetPreparersToRun
protectedgetTargetPreparersToRun (IConfiguration config, String deviceName)
אחזר רשימה של מכיני יעדים להפעלה במכשיר זה.
נדחק בשיעורי ארגז חול כדי להגביל את הפעלת מכיני המעבדה בתוך ילד ארגז החול
פרמטרים | |
---|---|
config | IConfiguration |
deviceName | String |
החזרות | |
---|---|
prepareAndRunSandbox
protected boolean prepareAndRunSandbox (TestInformation info, IConfiguration config, ITestInvocationListener listener)
מחזירה את מצב התוצאה של הפעלת ארגז החול.
פרמטרים | |
---|---|
info | TestInformation |
config | IConfiguration |
listener | ITestInvocationListener |
החזרות | |
---|---|
boolean |