SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

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


מיישמת ITestInvocationListener שיצוין כ-Result_reporter ומעבירה מתהליך התוצאות של בדיקות, ריצות בדיקה, קריאות בדיקה.

סיכום

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

SubprocessResultsReporter ()

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

void close ()

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void printEvent (String key, Object event)

עוזר להדפיס את מפתח האירוע ולאחר מכן את אובייקט json.

void setOutputTestLog (boolean outputTestLog)

קובע אם עלינו להפיק את הבדיקה שנרשמה או לא.

boolean supportGranularResults ()
void testAssumptionFailure (TestDescription testId, String trace)

void testAssumptionFailure (TestDescription testId, FailureDescription failure)

void testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics)

void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

void testFailed (TestDescription testId, FailureDescription failure)

void testFailed (TestDescription testId, String reason)

void testIgnored (TestDescription testId)

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

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String reason)

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

void testRunStarted (String runName, int testCount)

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

void testRunStopped (long arg0)

void testStarted (TestDescription testId, long startTime)

void testStarted (TestDescription testId)

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

SubprocessResultsReporter

public SubprocessResultsReporter ()

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

סגור

public void close ()

getSummary

public TestSummary getSummary ()

החזרות
TestSummary

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

public void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

הפניה נכשלה

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

הפניה נכשלה

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

התראה התחילה

public void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

פרמטרים
dataName String

logFile LogFile

printEvent

public void printEvent (String key, 
                Object event)

עוזר להדפיס את מפתח האירוע ולאחר מכן את אובייקט json.

פרמטרים
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

קובע אם עלינו להפיק את הבדיקה שנרשמה או לא.

פרמטרים
outputTestLog boolean

תומך ב-GranularResults

public boolean supportGranularResults ()

החזרות
boolean

testAssumption Failure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

פרמטרים
testId TestDescription

trace String

testAssumption Failure

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

פרמטרים
testId TestDescription

failure FailureDescription

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

public void testEnded (TestDescription testId, 
                long endTime, 
                 metrics)

פרמטרים
testId TestDescription

endTime long

metrics

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

public void testEnded (TestDescription testId, 
                 metrics)

פרמטרים
testId TestDescription

metrics

מבחן נכשל

public void testFailed (TestDescription testId, 
                FailureDescription failure)

פרמטרים
testId TestDescription

failure FailureDescription

מבחן נכשל

public void testFailed (TestDescription testId, 
                String reason)

פרמטרים
testId TestDescription

reason String

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

public void testIgnored (TestDescription testId)

פרמטרים
testId TestDescription

testLog

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

פרמטרים
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

פרמטרים
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

פרמטרים
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

פרמטרים
reason String

testRunStarted

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

פרמטרים
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

פרמטרים
runName String

testCount int

testRunStarted

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

פרמטרים
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

פרמטרים
arg0 long

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

public void testStarted (TestDescription testId, 
                long startTime)

פרמטרים
testId TestDescription

startTime long

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

public void testStarted (TestDescription testId)

פרמטרים
testId TestDescription