TestRunResultListener
public
final
class
TestRunResultListener
extends Object
implements
ITestInvocationListener
java.lang.Object | |
↳ | com.android.tradefed.result.TestRunResultListener |
מאזין שמאפשר לקרוא את סטטוס ההרצה הסופית של הבדיקה.
סיכום
קונסטרוקטורים גלויים לכולם | |
---|---|
TestRunResultListener()
|
שיטות ציבוריות | |
---|---|
boolean
|
isTestFailed(String testName)
|
boolean
|
isTestRunFailed(String testRunName)
|
void
|
testFailed(TestDescription test, FailureDescription failure)
דיווח על כשל של מקרה בדיקה ספציפי. |
void
|
testFailed(TestDescription test, String trace)
דיווח על כשל של מקרה בדיקה ספציפי. |
void
|
testRunEnded(long elapsedTime,
דיווח על סיום הרצת הבדיקה. |
void
|
testRunFailed(FailureDescription failure)
הרצת הבדיקה של הדוחות נכשלה בגלל כשל שמתואר ב- |
void
|
testRunFailed(String errorMessage)
הרצת הבדיקה של הדוחות נכשלה בגלל שגיאה קטלנית. |
void
|
testRunStarted(String runName, int testCount)
דיווח על התחלת הרצה של בדיקה. |
קונסטרוקטורים גלויים לכולם
TestRunResultListener
public TestRunResultListener ()
שיטות ציבוריות
isTestFailed
public boolean isTestFailed (String testName)
פרמטרים | |
---|---|
testName |
String |
החזרות | |
---|---|
boolean |
isTestRunFailed
public boolean isTestRunFailed (String testRunName)
פרמטרים | |
---|---|
testRunName |
String |
החזרות | |
---|---|
boolean |
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
דיווח על כשל של מקרה בדיקה ספציפי.
הקריאה תתבצע בין testStarted ל-testEnded.
פרמטרים | |
---|---|
test |
TestDescription : מזהה את הבדיקה |
failure |
FailureDescription : FailureDescription שמתאר את התקלה ואת ההקשר שלה. |
testFailed
public void testFailed (TestDescription test, String trace)
דיווח על כשל של מקרה בדיקה ספציפי.
הקריאה תתבצע בין testStarted ל-testEnded.
פרמטרים | |
---|---|
test |
TestDescription : מזהה את הבדיקה |
trace |
String : סטאק טריי של הכשל |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
דיווח על סיום הרצת הבדיקה.
פרמטרים | |
---|---|
elapsedTime |
long : הזמן שחלף שדווח על ידי המכשיר, באלפיות השנייה |
runMetrics |
: צמדי מפתח/ערך שמדווחים בסוף הרצה של בדיקה |
testRunFailed
public void testRunFailed (FailureDescription failure)
הרצת הבדיקה של הדוחות נכשלה בגלל כשל שמתואר ב-FailureDescription
.
פרמטרים | |
---|---|
failure |
FailureDescription : FailureDescription שמתאר את התקלה ואת ההקשר שלה. |
testRunFailed
public void testRunFailed (String errorMessage)
הרצת הבדיקה של הדוחות נכשלה בגלל שגיאה קטלנית.
פרמטרים | |
---|---|
errorMessage |
String : String שמתאר את הסיבה לכישלון ההרצה. |
testRunStarted
public void testRunStarted (String runName, int testCount)
דיווח על התחלת הרצה של בדיקה.
פרמטרים | |
---|---|
runName |
String : שם ההרצה לניסיון |
testCount |
int : המספר הכולל של הבדיקות בהרצה לניסיון |