SubprocessResultsReporter
public
class
SubprocessResultsReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
java.lang.Object | |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Triển khai ITestInvocationListener
được chỉ định là trình báo cáo kết quả và chuyển tiếp từ quy trình con kết quả kiểm thử, lần chạy kiểm thử, lệnh gọi kiểm thử.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
SubprocessResultsReporter()
|
Phương thức công khai | |
---|---|
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)
Trình trợ giúp để in khoá sự kiện, sau đó là đối tượng json. |
void
|
setOutputTestLog(boolean outputTestLog)
Đặt xem chúng ta có nên xuất kết quả kiểm thử được ghi nhật ký hay không. |
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)
|
Hàm khởi tạo công khai
SubprocessResultsReporter
public SubprocessResultsReporter ()
Phương thức công khai
đóng
public void close ()
getSummary
public TestSummary getSummary ()
Giá trị trả về | |
---|---|
TestSummary |
invocationEnded
public void invocationEnded (long elapsedTime)
Tham số | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
Tham số | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
Tham số | |
---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Tham số | |
---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Tham số | |
---|---|
dataName |
String |
logFile |
LogFile |
printEvent
public void printEvent (String key, Object event)
Trình trợ giúp để in khoá sự kiện, sau đó là đối tượng json.
Tham số | |
---|---|
key |
String |
event |
Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Đặt xem chúng ta có nên xuất kết quả kiểm thử được ghi nhật ký hay không.
Tham số | |
---|---|
outputTestLog |
boolean |
supportGranularResults
public boolean supportGranularResults ()
Giá trị trả về | |
---|---|
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, String trace)
Tham số | |
---|---|
testId |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, FailureDescription failure)
Tham số | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription testId, long endTime,metrics)
Tham số | |
---|---|
testId |
TestDescription |
endTime |
long |
metrics |
|
testEnded
public void testEnded (TestDescription testId,metrics)
Tham số | |
---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId, FailureDescription failure)
Tham số | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription testId, String reason)
Tham số | |
---|---|
testId |
TestDescription |
reason |
String |
testIgnored
public void testIgnored (TestDescription testId)
Tham số | |
---|---|
testId |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Tham số | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Tham số | |
---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long time,runMetrics)
Tham số | |
---|---|
time |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Tham số | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String reason)
Tham số | |
---|---|
reason |
String |
testRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber)
Tham số | |
---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String runName, int testCount)
Tham số | |
---|---|
runName |
String |
testCount |
int |
testRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
Tham số | |
---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testRunStopped
public void testRunStopped (long arg0)
Tham số | |
---|---|
arg0 |
long |
testStarted
public void testStarted (TestDescription testId, long startTime)
Tham số | |
---|---|
testId |
TestDescription |
startTime |
long |
testStarted
public void testStarted (TestDescription testId)
Tham số | |
---|---|
testId |
TestDescription |