ITestInvocation
public
interface
ITestInvocation
com.android.tradefed.invoker.ITestInvocation |
טיפול בהפעלה אחת של בדיקת TradeFederation.
סיכום
כיתות בתצוגת עץ | |
---|---|
class |
ITestInvocation.ExitInformation
מייצג פרטי יציאה מסוימים של קריאה. |
שיטות ציבוריות | |
---|---|
default
ITestInvocation.ExitInformation
|
getExitInfo()
פרטי היציאה של ההפעלה הנתונה. |
abstract
void
|
invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
מבצעים את הקריאה לבדיקה. |
default
void
|
notifyInvocationForceStopped(String message, ErrorIdentifier errorId)
מודיעים ל- |
default
void
|
notifyInvocationStopped(String message)
להודיע ל- |
default
void
|
setClearcutClient(ClearcutClient client)
מעבירים את הלקוח של Clearcut כדי לדווח על מדדים. |
שיטות ציבוריות
getExitInfo
public ITestInvocation.ExitInformation getExitInfo ()
פרטי היציאה של ההפעלה הנתונה.
החזרות | |
---|---|
ITestInvocation.ExitInformation |
להפעיל
public abstract void invoke (IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
מבצעים את הקריאה לבדיקה.
פרמטרים | |
---|---|
metadata |
IInvocationContext : ה-IInvocationContext לביצוע בדיקות. |
config |
IConfiguration : ה-IConfiguration של הריצת הבדיקה הזו. |
rescheduler |
IRescheduler : IRescheduler , כדי לתזמן מחדש חלקים מהקריאה להפעלה לביצוע במשאבים אחרים |
extraListeners |
ITestInvocationListener : ITestInvocationListener שרוצים לשלוח אליהם התראה, בנוסף לconfig |
זריקות | |
---|---|
DeviceNotAvailableException |
אם התקשורת עם המכשיר נותקה |
|
ניתן להשלכה |
notifyInvocationForceStopped
public void notifyInvocationForceStopped (String message, ErrorIdentifier errorId)
מודיעים ל-TestInvocation
ש-TradeFed התבקש להפסיק.
פרמטרים | |
---|---|
message |
String : ההודעה שמשויכת להפסקת ההפעלה |
errorId |
ErrorIdentifier : המזהה שמשויך להפסקה הכפויה |
notifyInvocationStopped
public void notifyInvocationStopped (String message)
להודיע ל-TestInvocation
ש-TradeFed יושבת בסופו של דבר.
פרמטרים | |
---|---|
message |
String : ההודעה שמשויכת להפסקת ההפעלה |
setClearcutClient
public void setClearcutClient (ClearcutClient client)
מעבירים את הלקוח של Clearcut כדי לדווח על מדדים.
פרמטרים | |
---|---|
client |
ClearcutClient |