InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
כיתה שמאזינה לאירועי ITestInvocationListener
ומעבירה אותם ל- TestListener
.
סיכום
בנאים ציבוריים
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
פרמטרים |
---|
junitListener | TestListener |
שיטות ציבוריות
getSummary
public TestSummary getSummary ()
הקריאה הסתיימה
public void invocationEnded (long elapsedTime)
הפניה נכשלה
public void invocationFailed (Throwable cause)
התראה התחילה
public void invocationStarted (IInvocationContext context)
פרמטרים |
---|
context | IInvocationContext |
testAssumption Failure
public void testAssumptionFailure (TestDescription testId,
String trace)
פרמטרים |
---|
testId | TestDescription |
trace | String |
הבדיקה הסתיים
public void testEnded (TestDescription test,
testMetrics)
פרמטרים |
---|
test | TestDescription |
testMetrics | |
מבחן נכשל
public void testFailed (TestDescription testId,
String trace)
פרמטרים |
---|
testId | TestDescription |
trace | String |
התעלמו מהבדיקה
public void testIgnored (TestDescription test)
פרמטרים |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType logData,
InputStreamSource dataStream)
פרמטרים |
---|
dataName | String |
logData | 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)
הבדיקה התחילה
public void testStarted (TestDescription test)
פרמטרים |
---|
test | TestDescription |
שיטות מוגנות
getJUnitListener
protected TestListener getJUnitListener ()