SubprocessResultsReporter
public
class
SubprocessResultsReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
java.lang.Object | |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Menerapkan ITestInvocationListener
untuk ditentukan sebagai result_reporter dan diteruskan dari
subproses hasil pengujian, pengujian
yang berjalan, dan pemanggilan pengujian.
Ringkasan
Konstruktor publik | |
---|---|
SubprocessResultsReporter()
|
Metode publik | |
---|---|
void
|
close()
|
TestSummary
|
getSummary()
|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
printEvent(String key, Object event)
Bantuan untuk mencetak kunci peristiwa, lalu objek json. |
void
|
setOutputTestLog(boolean outputTestLog)
Menetapkan apakah kita harus menghasilkan output pengujian dalam log atau tidak. |
boolean
|
supportGranularResults()
|
void
|
testAssumptionFailure(TestDescription testId, String trace)
|
void
|
testAssumptionFailure(TestDescription testId, FailureDescription failure)
|
void
|
testEnded(TestDescription testId, long endTime,
|
void
|
testEnded(TestDescription testId,
|
void
|
testFailed(TestDescription testId, FailureDescription failure)
|
void
|
testFailed(TestDescription testId, String reason)
|
void
|
testIgnored(TestDescription testId)
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testModuleEnded()
|
void
|
testModuleStarted(IInvocationContext moduleContext)
|
void
|
testRunEnded(long time,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String reason)
|
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 arg0)
|
void
|
testStarted(TestDescription testId, long startTime)
|
void
|
testStarted(TestDescription testId)
|
Konstruktor publik
SubprocessResultsReporter
public SubprocessResultsReporter ()
Metode publik
tutup
public void close ()
getSummary
public TestSummary getSummary ()
Hasil | |
---|---|
TestSummary |
pemanggilanBerakhir
public void invocationEnded (long elapsedTime)
Parameter | |
---|---|
elapsedTime |
long |
pemanggilanGagal
public void invocationFailed (FailureDescription failure)
Parameter | |
---|---|
failure |
FailureDescription |
pemanggilanGagal
public void invocationFailed (Throwable cause)
Parameter | |
---|---|
cause |
Throwable |
pemanggilanDimulai
public void invocationStarted (IInvocationContext context)
Parameter | |
---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Parameter | |
---|---|
dataName |
String |
logFile |
LogFile |
printEvent
public void printEvent (String key, Object event)
Bantuan untuk mencetak kunci peristiwa, lalu objek json.
Parameter | |
---|---|
key |
String |
event |
Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Menetapkan apakah kita harus menghasilkan output pengujian dalam log atau tidak.
Parameter | |
---|---|
outputTestLog |
boolean |
dukunganGranularResults
public boolean supportGranularResults ()
Hasil | |
---|---|
boolean |
testAsumsiKegagalan
public void testAssumptionFailure (TestDescription testId, String trace)
Parameter | |
---|---|
testId |
TestDescription |
trace |
String |
testAsumsiKegagalan
public void testAssumptionFailure (TestDescription testId, FailureDescription failure)
Parameter | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
testBerakhir
public void testEnded (TestDescription testId, long endTime,metrics)
Parameter | |
---|---|
testId |
TestDescription |
endTime |
long |
metrics |
|
testBerakhir
public void testEnded (TestDescription testId,metrics)
Parameter | |
---|---|
testId |
TestDescription |
metrics |
|
pengujianGagal
public void testFailed (TestDescription testId, FailureDescription failure)
Parameter | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
pengujianGagal
public void testFailed (TestDescription testId, String reason)
Parameter | |
---|---|
testId |
TestDescription |
reason |
String |
testDiabaikan
public void testIgnored (TestDescription testId)
Parameter | |
---|---|
testId |
TestDescription |
Loguji
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 time,runMetrics)
Parameter | |
---|---|
time |
long |
runMetrics |
|
{i>testRunFailed<i}
public void testRunFailed (FailureDescription failure)
Parameter | |
---|---|
failure |
FailureDescription |
{i>testRunFailed<i}
public void testRunFailed (String reason)
Parameter | |
---|---|
reason |
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 |
testRunBerhenti
public void testRunStopped (long arg0)
Parameter | |
---|---|
arg0 |
long |
pengujianDimulai
public void testStarted (TestDescription testId, long startTime)
Parameter | |
---|---|
testId |
TestDescription |
startTime |
long |
pengujianDimulai
public void testStarted (TestDescription testId)
Parameter | |
---|---|
testId |
TestDescription |