ITestInvocation

public interface ITestInvocation

com.android.tradefed.invoker.ITestInvocation


מטפל בהפעלת בדיקה אחת של TradeFederation.

סיכום

כיתות מוטמעות

class ITestInvocation.ExitInformation

מייצג מידע מסוים על יציאה מהפעלה. 

‫methods ציבוריים

default ITestInvocation.ExitInformation getExitInfo()

פרטי היציאה של הקריאה הנתונה.

abstract void invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)

מבצעים את קריאת הבדיקה.

default void notifyInvocationForceStopped(String message, ErrorIdentifier errorId)

הודעה ל-TestInvocation שבוצעה בקשה להפסקת TradeFed.

default void notifyInvocationStopped(String message)

הודעה ל-TestInvocation על כך ש-TradeFed ייסגר בסופו של דבר.

default void setClearcutClient(ClearcutClient client)

העברת הלקוח clearcut לדיווח על מדדים.

‫methods ציבוריים

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

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException אם התקשורת עם המכשיר נותקה
java.lang.Throwable
Throwable

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