PrettyTestEventLogger
public class PrettyTestEventLogger
extends Object
implements ITestInvocationListener
java.lang.Object | |
↳ | com.android.tradefed.testtype.host.PrettyTestEventLogger |
לוגר התאמת האירועים ורישום אותם על מנת להקל על ניפוי הבאגים. היומן בצד המארח ובצד המכשיר יתאים בקפדנות כדי להקל על החיפוש אחריו.
סיכום
בנאים ציבוריים | |
---|---|
PrettyTestEventLogger ( devices) PrettyTestEventLogger ( devices) |
שיטות ציבוריות | |
---|---|
void | testEnded ( TestDescription test, testMetrics) testEnded ( TestDescription test, testMetrics) מדווח על סיום הביצוע של מקרה בדיקה בודד. |
void | testFailed ( TestDescription test, String trace) מדווח על כישלון של מקרה בדיקה בודד. |
void | testStarted ( TestDescription test) מדווח על תחילת מקרה בדיקה בודד. |
בנאים ציבוריים
PrettyTestEventLogger
public PrettyTestEventLogger (devices)
פרמטרים | |
---|---|
devices |
שיטות ציבוריות
הבדיקה הסתיים
public void testEnded (TestDescription test,testMetrics)
מדווח על סיום הביצוע של מקרה בדיקה בודד.
אם testFailed(TestDescription, FailureDescription)
לא הופעל, מבחן זה עבר. מחזירה גם כל מדדי מפתח/ערך שייתכן שנפלטו במהלך ביצוע מקרה הבדיקה.
פרמטרים | |
---|---|
test | TestDescription : מזהה את הבדיקה |
testMetrics | ERROR(/Map) של המדדים הנפלטים |
מבחן נכשל
public void testFailed (TestDescription test, String trace)
מדווח על כישלון של מקרה בדיקה בודד.
ייקרא בין testStarted לבין testEnded.
פרמטרים | |
---|---|
test | TestDescription : מזהה את הבדיקה |
trace | String : עקבות מחסנית של כישלון |
הבדיקה התחילה
public void testStarted (TestDescription test)
מדווח על תחילת מקרה בדיקה בודד. ממשק ישן יותר, צריך להשתמש ב- testStarted(com.android.tradefed.result.TestDescription)
במידת האפשר.
פרמטרים | |
---|---|
test | TestDescription : מזהה את הבדיקה |