PythonBinaryHostTest.PythonForwarder

public static class PythonBinaryHostTest.PythonForwarder
extends ResultForwarder

java.lang.Object
com.android.tradefed.result.ResultForwarder
com.android.tradefed.testtype.python.PythonBinaryHostTest.PythonForwarder


מעביר תוצאות כדי להחליף את שם הריצה בשם הבינארי.

סיכום

בנאים ציבוריים

PythonForwarder ( ITestInvocationListener listener, String name)

Ctor עם שם הריצה באמצעות השם הבינארי.

שיטות ציבוריות

void testRunStarted (String runName, int testCount)

מדווח על תחילת ריצת מבחן.

void testRunStarted (String runName, int testCount, int attempt, long startTime)

מדווח על תחילת ריצת מבחן.

void testRunStarted (String runName, int testCount, int attempt)

מדווח על תחילת ריצת מבחן.

בנאים ציבוריים

PythonForwarder

public PythonForwarder (ITestInvocationListener listener, 
                String name)

Ctor עם שם הריצה באמצעות השם הבינארי.

פרמטרים
listener ITestInvocationListener

name String

שיטות ציבוריות

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

מדווח על תחילת ריצת מבחן.

פרמטרים
runName String : שם ריצת המבחן

testCount int : המספר הכולל של בדיקות בריצת מבחן

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attempt, 
                long startTime)

מדווח על תחילת ריצת מבחן.

פרמטרים
runName String : שם ריצת המבחן

testCount int : המספר הכולל של בדיקות בריצת מבחן

attempt int : מספר הזמנה, מזהה את הניסיונות השונים של אותו runName הפועלים מספר פעמים. ה-probyNumber הוא 0 באינדקס ואמור לעלות בכל פעם שמתרחשת ריצה חדשה. לדוגמה, בדיקה מפורטת חוזרת 3 פעמים, היא צריכה לכלול 4 ריצות בסך הכל תחת אותו runName וה-probationNumber הוא מ-0 עד 3.

startTime long : הזמן שבו התחילה הריצה, נמדד באמצעות System.currentTimeMillis()

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attempt)

מדווח על תחילת ריצת מבחן.

פרמטרים
runName String : שם ריצת המבחן

testCount int : המספר הכולל של בדיקות בריצת מבחן

attempt int : מספר הזמנה, מזהה את הניסיונות השונים של אותו runName הפועלים מספר פעמים. ה-probyNumber הוא 0 באינדקס ואמור לעלות בכל פעם שמתרחשת ריצה חדשה. לדוגמה, בדיקה מפורטת חוזרת 3 פעמים, היא צריכה לכלול 4 ריצות בסך הכל תחת אותו runName וה-probationNumber הוא מ-0 עד 3.