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