Przesyłanie wyników
public class ResultForwarder
extends Object
implements ITestInvocationListener
Obiekt Java.lang.Object |
↳ | com.android.tradefed.result.ResultForwarder |
Znane bezpośrednie podklasy |
ITestInvocationListener
, który przekazuje wyniki wywołania do listy innych odbiorników.
Streszczenie
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, 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) |
Metody chronione |
---|
| getListeners () Pobierz listę słuchaczy. |
void | setListeners ( listeners) setListeners ( listeners) Ustaw słuchaczy po zakończeniu budowy. |
void | setListeners (ITestInvocationListener... listeners) Ustaw słuchaczy po zakończeniu budowy. |
Konstruktorzy publiczni
Przesyłanie wyników
public ResultForwarder ( listeners)
Utwórz usługę ResultForwarder
.
Przesyłanie wyników
public ResultForwarder (ITestInvocationListener... listeners)
Alternatywny konstruktor zmiennej arg dla ResultForwarder
.
Parametry |
---|
listeners | ITestInvocationListener : prawdziwy obiekt ITestInvocationListener , do którego mają być przesyłane wyniki |
Konstruktorzy chronieni
Przesyłanie wyników
protected ResultForwarder ()
Utwórz element ResultForwarder
z ustawieniem odroczonego odbiornika. Przeznaczone wyłącznie do użytku przez podklasy.
Metody publiczne
pobierz podsumowanie
public TestSummary getSummary ()
wywołanieZakończone
public void invocationEnded (long elapsedTime)
Parametry |
---|
elapsedTime | long |
wywołanie nie powiodło się
public void invocationFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
wywołanie nie powiodło się
public void invocationFailed (Throwable cause)
Parametry |
---|
cause | Throwable |
wywołanieRozpoczęte
public void invocationStarted (IInvocationContext context)
Parametry |
---|
context | IInvocationContext |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
testZakończony
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametry |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testZakończony
public void testEnded (TestDescription test,
testMetrics)
Parametry |
---|
test | TestDescription |
testMetrics | |
Test nieudany
public void testFailed (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
Test nieudany
public void testFailed (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testIgnorowany
public void testIgnored (TestDescription test)
Parametry |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametry |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
moduł testowyZakończony
public void testModuleEnded ()
Uruchomiono moduł testowy
public void testModuleStarted (IInvocationContext moduleContext)
Parametry |
---|
moduleContext | IInvocationContext |
testRunZakończony
public void testRunEnded (long elapsedTime,
runMetrics)
Parametry |
---|
elapsedTime | long |
runMetrics | |
testRun nie powiódł się
public void testRunFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
testRun nie powiódł się
public void testRunFailed (String errorMessage)
Parametry |
---|
errorMessage | String |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parametry |
---|
runName | String |
testCount | int |
attemptNumber | int |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount)
Parametry |
---|
runName | String |
testCount | int |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parametry |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunZatrzymany
public void testRunStopped (long elapsedTime)
Parametry |
---|
elapsedTime | long |
test rozpoczęty
public void testStarted (TestDescription test,
long startTime)
Parametry |
---|
test | TestDescription |
startTime | long |
test rozpoczęty
public void testStarted (TestDescription test)
Parametry |
---|
test | TestDescription |
Metody chronione
zdobądź słuchaczy
protected getListeners ()
Pobierz listę słuchaczy. Przeznaczone wyłącznie do użytku przez podklasy.
ustaw słuchaczy
protected void setListeners ( listeners)
Ustaw słuchaczy po zakończeniu budowy. Przeznaczone wyłącznie do użytku przez podklasy.
ustaw słuchaczy
protected void setListeners (ITestInvocationListener... listeners)
Ustaw słuchaczy po zakończeniu budowy. Przeznaczone wyłącznie do użytku przez podklasy.
Parametry |
---|
listeners | ITestInvocationListener : prawdziwy obiekt ITestInvocationListener , do którego mają być przesyłane wyniki |