ביצוע הפעלה בארגז חול
public
class
SandboxedInvocationExecution
extends InvocationExecution
JavaScript.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution |
ביצוע מיוחד של ההפעלה ב-Sandbox: זהו ביצוע ההפעלה כאשר אנחנו בתוך ארגז החול שבו מריצים את הפקודה. ה-build אמור כבר להיות זמין בהקשר.
סיכום
בנאים ציבוריים | |
---|---|
SandboxedInvocationExecution()
|
שיטות ציבוריות | |
---|---|
void
|
cleanUpBuilds(IInvocationContext context, IConfiguration config)
מבצעים את שלב הניקוי של build_provider. |
boolean
|
fetchBuild(TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)
מבצעים את השלב build_provider של ההפעלה. |
void
|
runDevicePostInvocationTearDown(IInvocationContext context, IConfiguration config, Throwable exception)
יש להפעיל את |
void
|
runDevicePreInvocationSetup(IInvocationContext context, IConfiguration config, ITestLogger logger)
יש להפעיל את |
שיטות מוגנות | |
---|---|
|
getPreparersToRun(IConfiguration config, String deviceName)
אחזור רשימה של הכנה להרצה במכשיר הזה. |
void
|
logHostAdb(IConfiguration config, ITestLogger logger)
אפשר לאסוף את היומנים מהכתובת $TMPDIR/adb.$UID.log. |
בנאים ציבוריים
ביצוע הפעלה בארגז חול
public SandboxedInvocationExecution ()
שיטות ציבוריות
cleanUpBuilds
public void cleanUpBuilds (IInvocationContext context, IConfiguration config)
מבצעים את שלב הניקוי של build_provider. משויך לאחזור ה-build.
פרמטרים | |
---|---|
context |
IInvocationContext : ה-IInvocationContext של ההפעלה. |
config |
IConfiguration : ה-IConfiguration בהרצת הבדיקה הזו.
|
אחזור Build
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 אם הורדנו את ה-build בהצלחה, אחרת false. |
קליעות | |
---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
runDevicePostInvocationTearDown
public void runDevicePostInvocationTearDown (IInvocationContext context, IConfiguration config, Throwable exception)
יש להפעיל את ITestDevice#postInvocationTearDown(Throwable)
עבור כל חלק של המכשיר
הפעלה.
פרמטרים | |
---|---|
context |
IInvocationContext : ה-IInvocationContext של ההפעלה. |
config |
IConfiguration : ה-IConfiguration בהרצת הבדיקה הזו. |
exception |
Throwable : החריגה המקורית שהבדיקה הפעילה, אם קיימת.
|
runDevicePreInvocationSetup
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 |
שיטות מוגנות
getersToRun (הכנה להכנה)
protectedgetPreparersToRun (IConfiguration config, String deviceName)
אחזור רשימה של הכנה להרצה במכשיר הזה.
המדיניות בוטלה במחלקות של Sandbox כדי להגביל את ההפעלה של מכינים שיעורי Lab בתוך ארגז החול צאצא
פרמטרים | |
---|---|
config |
IConfiguration |
deviceName |
String |
החזרות | |
---|---|
|
LogHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
אפשר לאסוף את היומנים מהכתובת $TMPDIR/adb.$UID.log.
פרמטרים | |
---|---|
config |
IConfiguration |
logger |
ITestLogger |