SandboxedInvocationExecution
public
class
SandboxedInvocationExecution
extends InvocationExecution
java.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution |
ביצוע מיוחד של ההפעלה בארגז חול: זהו InvocationExection כשאנחנו נמצאים בארגז החול שבו מריצים את הפקודה. הגרסה היציבה אמורה להיות כבר זמינה בהקשר.
סיכום
קונסטרוקטורים גלויים לכולם | |
---|---|
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. |
קונסטרוקטורים גלויים לכולם
SandboxedInvocationExecution
public SandboxedInvocationExecution ()
שיטות ציבוריות
cleanUpBuilds
public void cleanUpBuilds (IInvocationContext context, IConfiguration config)
מריצים את שלב הניקוי build_provider. משויך לאחזור ה-build.
פרמטרים | |
---|---|
context |
IInvocationContext : ה-IInvocationContext של ההפעלה. |
config |
IConfiguration : ה-IConfiguration של הריצת הבדיקה הזו.
|
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 אם ההורדה של ה-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 |
שיטות מוגנות
getPreparersToRun
protectedgetPreparersToRun (IConfiguration config, String deviceName)
אחזור רשימה של גורמים מוכנים להפעלה במכשיר הזה.
האפשרות הזו מוחרגת בכיתות של ארגז החול כדי להגביל את ההרצה של כלי ההכנה של המעבדה בתוך הצאצא של ארגז החול
פרמטרים | |
---|---|
config |
IConfiguration |
deviceName |
String |
החזרות | |
---|---|
|
logHostAdb
protected void logHostAdb (IConfiguration config, ITestLogger logger)
אוספים את היומנים מ- $TMPDIR/adb.$UID.log.
פרמטרים | |
---|---|
config |
IConfiguration |
logger |
ITestLogger |