Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

ResultForwarder

public class ResultForwarder
extends Object implements ITestInvocationListener

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


ITestInvocationListener yang meneruskan hasil pemanggilan ke daftar listener lain.

Ringkasan

Konstruktor publik

ResultForwarder ( listeners) ResultForwarder ( listeners)

Buat ResultForwarder .

ResultForwarder (ITestInvocationListener... listeners)

Konstruktor arg variabel alternatif untuk ResultForwarder .

Konstruktor yang dilindungi

ResultForwarder ()

Buat ResultForwarder dengan pengaturan deferred listener.

Metode publik

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

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

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

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 elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

Metode yang dilindungi

getListeners ()

Dapatkan daftar pendengarnya.

void setListeners ( listeners) setListeners ( listeners)

Atur pendengar setelah konstruksi.

void setListeners (ITestInvocationListener... listeners)

Atur pendengar setelah konstruksi.

Konstruktor publik

ResultForwarder

public ResultForwarder ( listeners)

Buat ResultForwarder .

Parameter
listeners : ITestInvocationListener sebenarnya untuk meneruskan hasil ke

ResultForwarder

public ResultForwarder (ITestInvocationListener... listeners)

Konstruktor arg variabel alternatif untuk ResultForwarder .

Parameter
listeners ITestInvocationListener : nyata ITestInvocationListener s untuk meneruskan hasil untuk

Konstruktor yang dilindungi

ResultForwarder

protected ResultForwarder ()

Buat ResultForwarder dengan pengaturan deferred listener. Ditujukan hanya untuk digunakan oleh subclass.

Metode publik

getSummary

public TestSummary getSummary ()

Kembali
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

seruanFailed

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

seruanFailed

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Parameter
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parameter
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parameter
test TestDescription

testLog

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parameter
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parameter
runName String

testCount int

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

Parameter
elapsedTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)
.dll

Parameter
test TestDescription

Metode yang dilindungi

getListeners

protected  getListeners ()

Dapatkan daftar pendengarnya. Ditujukan hanya untuk digunakan oleh subclass.

Kembali
Daftar ITestInvocationListener s.

setListeners

protected void setListeners ( listeners)

Atur pendengar setelah konstruksi. Ditujukan hanya untuk digunakan oleh subclass.

Parameter
listeners : ITestInvocationListener sebenarnya untuk meneruskan hasil ke

setListeners

protected void setListeners (ITestInvocationListener... listeners)

Atur pendengar setelah konstruksi. Ditujukan hanya untuk digunakan oleh subclass.

Parameter
listeners ITestInvocationListener : nyata ITestInvocationListener s untuk meneruskan hasil untuk