Penerus Hasil
public class ResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Objek |
↳ | com.android.tradefed.result.ResultForwarder |
Subkelas langsung yang diketahui |
Subkelas tidak langsung yang diketahui |
ITestInvocationListener
yang meneruskan hasil pemanggilan ke daftar pendengar lainnya.
Ringkasan
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 pendengar. |
void | setListeners ( listeners) setListeners ( listeners) Atur pendengar setelah konstruksi. |
void | setListeners (ITestInvocationListener... listeners) Atur pendengar setelah konstruksi. |
Konstruktor publik
Penerus Hasil
public ResultForwarder (ITestInvocationListener... listeners)
Konstruktor arg variabel alternatif untuk ResultForwarder
.
Konstruktor yang dilindungi
Penerus Hasil
protected ResultForwarder ()
Buat ResultForwarder
dengan pengaturan pendengar yang ditangguhkan. Ditujukan hanya untuk digunakan oleh subkelas.
Metode publik
dapatkan Ringkasan
public TestSummary getSummary ()
doaBerakhir
public void invocationEnded (long elapsedTime)
Parameter |
---|
elapsedTime | long |
doaGagal
public void invocationFailed (FailureDescription failure)
Parameter |
---|
failure | FailureDescription |
doaGagal
public void invocationFailed (Throwable cause)
Parameter |
---|
cause | Throwable |
doaDimulai
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 |
tesBerakhir
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
tesBerakhir
public void testEnded (TestDescription test,
testMetrics)
Parameter |
---|
test | TestDescription |
testMetrics | |
tesGagal
public void testFailed (TestDescription test,
FailureDescription failure)
Parameter |
---|
test | TestDescription |
failure | FailureDescription |
tesGagal
public void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
tesIgnored
public void testIgnored (TestDescription test)
Parameter |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parameter |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleBerakhir
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 |
tesRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parameter |
---|
runName | String |
testCount | int |
attemptNumber | int |
tesRunStarted
public void testRunStarted (String runName,
int testCount)
Parameter |
---|
runName | String |
testCount | int |
tesRunStarted
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 |
tesDimulai
public void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |
tesDimulai
public void testStarted (TestDescription test)
Parameter |
---|
test | TestDescription |
Metode yang dilindungi
dapatkan Pendengar
protected getListeners ()
Dapatkan daftar pendengar. Ditujukan hanya untuk digunakan oleh subkelas.
setListeners
protected void setListeners ( listeners)
Atur pendengar setelah konstruksi. Ditujukan hanya untuk digunakan oleh subkelas.
setListeners
protected void setListeners (ITestInvocationListener... listeners)
Atur pendengar setelah konstruksi. Ditujukan hanya untuk digunakan oleh subkelas.