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)

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

default void notifyInvocationStopped (String message)

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

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