ParentSandboxInvocationExecution
public
class
ParentSandboxInvocationExecution
extends InvocationExecution
java.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.sandbox.ParentSandboxInvocationExecution |
הגרסה של 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)
אחזור רשימה של מכשירי Lab Prep לצורך הפעלה במכשיר הזה. |
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 |
הערך True אם הורדנו את ה-build בהצלחה, אחרת הערך False. |
זריקות | |
---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
reportLogs
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 : חריגה מקורית שהופקה על ידי הבדיקה שפועלת, אם יש כזו. |
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 |
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)
אחזור רשימה של מכשירי Lab Prep לצורך הפעלה במכשיר הזה.
מוחרגות בכיתות של ארגז החול כדי להגביל את ההרצה של כלי ההכנה של המעבדה בתוך הצאצא של ארגז החול
פרמטרים | |
---|---|
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 |