NameMangleListener

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.NameMangleListener


מאזין פרוקסי לתרגום שיטות בדיקה, מחלקות וחבילות כפי שמדווחות התוצאות.

סיכום

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

NameMangleListener (ITestInvocationListener listener)

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

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

שיטות מוגנות

TestDescription mangleTestId (TestDescription test)

שיטה זו מופעלת על כל ה- TestDescription המועברים ל- testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) ו- ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) התקשרויות חוזרות.

String mangleTestRunName (String name)

שיטה זו מופעלת על כל שמות ריצת הבדיקה המועברים ל- testRunStarted(String, int) callback.

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

NameMangleListener

public NameMangleListener (ITestInvocationListener listener)

פרמטרים
listener ITestInvocationListener

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

getSummary

public TestSummary getSummary ()

החזרות
TestSummary

הקריאה הסתיימה

public void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

הפניה נכשלה

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

התראה התחילה

public void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

testAssumption Failure

public void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

הבדיקה הסתיים

public void testEnded (TestDescription test, 
                 testMetrics)

פרמטרים
test TestDescription

testMetrics

מבחן נכשל

public void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

התעלמו מהבדיקה

public void testIgnored (TestDescription test)

פרמטרים
test TestDescription

testLog

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

פרמטרים
dataName String

dataType LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

פרמטרים
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

פרמטרים
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

פרמטרים
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

פרמטרים
elapsedTime long

הבדיקה התחילה

public void testStarted (TestDescription test)

פרמטרים
test TestDescription

שיטות מוגנות

mangleTestId

protected TestDescription mangleTestId (TestDescription test)

שיטה זו מופעלת על כל ה- TestDescription המועברים ל- testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) ו- ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) התקשרויות חוזרות. השיטה צריכה להחזיר TestDescription אולי שונה שיועבר ל- ITestInvocationListener במורד הזרם שצוין במהלך הבנייה.

היישום צריך להיזהר שלא לשנות את ה- TestDescription המקורי.

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

פרמטרים
test TestDescription

החזרות
TestDescription

mangleTestRunName

protected String mangleTestRunName (String name)

שיטה זו מופעלת על כל שמות ריצת הבדיקה המועברים ל- testRunStarted(String, int) callback. השיטה אמורה להחזיר שם אולי-שונה של הפעלת בדיקה שיועבר ל- ITestInvocationListener במורד הזרם שצוין במהלך הבנייה.

היישום צריך להיזהר שלא לשנות את שם הריצה המקורי.

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

פרמטרים
name String

החזרות
String