DelegatedInvocationExecution
public class DelegatedInvocationExecution
extends InvocationExecution
java.lang.Object | ||
↳ | com.android.tradefed.invoker.InvocationExecution | |
↳ | com.android.tradefed.invoker.DelegatedInvocationExecution |
InvocationExecution
אשר להאציל ביצוע בינארי Tradefed אחר.
סיכום
שדות | |
---|---|
public static final String | DELEGATED_MODE_VAR אם קיים ההפעלה מתבצעת במסגרת האצלה |
בוני ציבור | |
---|---|
DelegatedInvocationExecution () |
שיטות ציבוריות | |
---|---|
void | doCleanUp (IInvocationContext context, IConfiguration config, Throwable exception) בצע את שלב הניקוי של target_preparer ו- multi_target_preparer. |
void | doSetup (TestInformation testInfo, IConfiguration config, ITestLogger listener) בצע את שלב setUp target_preparer ו- multi_target_preparer. |
void | doTeardown (TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception) בצע את שלב פירוק target_preparer ו- multi_target_preparer. |
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) מבצע את המבחן. |
boolean | shardConfig ( IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger) ניסיון לרסק את התצורה לתצורות משנה, לתזמן מחדש להפעלה במספר משאבים במקביל. |
שדות
DELEGATED_MODE_VAR
public static final String DELEGATED_MODE_VAR
אם קיים ההפעלה מתבצעת במסגרת האצלה
בוני ציבור
DelegatedInvocationExecution
public DelegatedInvocationExecution ()
שיטות ציבוריות
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 : למעט המקורי נזרק על ידי והרצתו. |
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 של תוצאות הבדיקה |
shardConfig
public boolean shardConfig (IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
ניסיון לרסק את התצורה לתצורות משנה, לתזמן מחדש להפעלה במספר משאבים במקביל.
אם ספירת הרסיסים גדולה מ -1, היא פשוט תיצור קונפי עבור כל רסיס על ידי הגדרת מדדי רסיס ותזמן אותם מחדש. אם ספירה שבר אינו מוגדר, זה היה שחזור ל- IShardHelper#shardConfig
.
פרמטרים | |
---|---|
config | IConfiguration : זרם IConfiguration . |
testInfo | TestInformation : את TestInformation החזיקה המידע של הבדיקות. |
rescheduler | IRescheduler : את IRescheduler . |
logger | ITestLogger : ITestLogger המשמש להתחברות קובץ במהלך sharding. |
החזרות | |
---|---|
boolean | נכון אם הבדיקה הייתה מרוסקת. בתמורה אחרת false |