Przesyłanie wyników
public
class
ResultForwarder
extends Object
implements
ITestInvocationListener
| java.lang.Object | |
| ↳ | com.android.tradefed.result.ResultForwarder |
ITestInvocationListener, który przekazuje wyniki wywołania do listy innych odbiorców.
Podsumowanie
Konstruktory publiczne | |
|---|---|
ResultForwarder(
Utwórz |
|
ResultForwarder(ITestInvocationListener... listeners)
Alternatywny konstruktor argumentu zmiennej dla |
|
Chronione konstruktory | |
|---|---|
ResultForwarder()
Utwórz |
|
Metody publiczne | |
|---|---|
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,
|
void
|
testEnded(TestDescription test,
|
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,
|
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)
|
Chronione metody | |
|---|---|
|
getListeners()
Pobierz listę słuchaczy. |
void
|
setListeners(
Ustaw słuchaczy po zakończeniu budowy. |
void
|
setListeners(ITestInvocationListener... listeners)
Ustaw słuchaczy po zakończeniu budowy. |
Konstruktory publiczne
Przesyłanie wyników
public ResultForwarder (listeners)
Utwórz ResultForwarder.
| Parametry | |
|---|---|
listeners |
: prawdziwe ITestInvocationListener, do których mają być przesyłane wyniki
|
Przesyłanie wyników
public ResultForwarder (ITestInvocationListener... listeners)
Alternatywny konstruktor argumentu zmiennej dla ResultForwarder.
| Parametry | |
|---|---|
listeners |
ITestInvocationListener: prawdziwe ITestInvocationListener, do których mają być przesyłane wyniki
|
Chronione konstruktory
Przesyłanie wyników
protected ResultForwarder ()
Utwórz ResultForwarder z opóźnionym odbiornikiem. Przeznaczony tylko do użycia przez podklasy.
Metody publiczne
getSummary
public TestSummary getSummary ()
| Zwroty | |
|---|---|
TestSummary |
|
invocationEnded
public void invocationEnded (long elapsedTime)
| Parametry | |
|---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
| Parametry | |
|---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
| Parametry | |
|---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parametry | |
|---|---|
context |
IInvocationContext |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)| Parametry | |
|---|---|
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)| Parametry | |
|---|---|
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
| Parametry | |
|---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,
testMetrics)
| Parametry | |
|---|---|
test |
TestDescription |
testMetrics |
|
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
| Parametry | |
|---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
| Parametry | |
|---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
| Parametry | |
|---|---|
test |
TestDescription |
testLog
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
| Parametry | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| Parametry | |
|---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
| Parametry | |
|---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
| Parametry | |
|---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
| Parametry | |
|---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
| Parametry | |
|---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
| Parametry | |
|---|---|
runName |
String |
testCount |
int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
| Parametry | |
|---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testRunStopped
public void testRunStopped (long elapsedTime)
| Parametry | |
|---|---|
elapsedTime |
long |
testStarted
public void testStarted (TestDescription test,
long startTime)
| Parametry | |
|---|---|
test |
TestDescription |
startTime |
long |
testStarted
public void testStarted (TestDescription test)
| Parametry | |
|---|---|
test |
TestDescription |
Chronione metody
getListeners
protectedgetListeners ()
Pobierz listę słuchaczy. Jest przeznaczony tylko do użytku przez podklasy.
| Zwroty | |
|---|---|
|
Lista ITestInvocationListener.
|
setListeners
protected void setListeners (listeners)
Ustaw słuchaczy po zakończeniu budowy. Jest przeznaczony tylko do użytku przez podklasy.
| Parametry | |
|---|---|
listeners |
: prawdziwe ITestInvocationListener, do których mają być przesyłane wyniki
|
setListeners
protected void setListeners (ITestInvocationListener... listeners)
Ustaw słuchaczy po zakończeniu budowy. Jest przeznaczony tylko do użytku przez podklasy.
| Parametry | |
|---|---|
listeners |
ITestInvocationListener: prawdziwe ITestInvocationListener, do których mają być przesyłane wyniki
|