SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Các lớp con trực tiếp đã biết LegacySubprocessResultsReporter | Việc triển khai cố định trình báo cáo kết quả quy trình con sẽ vẫn tương thích với các phiên bản trước của TF/CTS (ví dụ 8+), bất chấp những thay đổi trong siêu lớp của nó. |
|
Triển khai ITestInvocationListener
để được chỉ định dưới dạng result_reporter và chuyển tiếp từ quy trình con các kết quả kiểm tra, chạy thử nghiệm, lệnh gọi kiểm tra.
Bản tóm tắt
Phương pháp 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 khóa sự kiện và sau đó là đối tượng json. |
void | setOutputTestLog (boolean outputTestLog) Đặt xem chúng tôi có nên xuất bản kiểm tra được ghi lại hay không. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
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, runMetrics) testRunEnded (long time, runMetrics) |
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) |
Nhà thầu xây dựng công cộng
SubprocessResultsReporter
public SubprocessResultsReporter ()
Phương pháp công khai
đóng
public void close ()
lấyTóm tắt
public TestSummary getSummary ()
lời mờiĐã kết thúc
public void invocationEnded (long elapsedTime)
Thông số |
---|
elapsedTime | long |
lời gọi không thành công
public void invocationFailed (FailureDescription failure)
Thông số |
---|
failure | FailureDescription |
lời gọi không thành công
public void invocationFailed (Throwable cause)
lời gọiBắt đầu
public void invocationStarted (IInvocationContext context)
Thông số |
---|
context | IInvocationContext |
logHiệp hội
public void logAssociation (String dataName,
LogFile logFile)
Thông số |
---|
dataName | String |
logFile | LogFile |
inSự kiện
public void printEvent (String key,
Object event)
Trình trợ giúp in khóa sự kiện và sau đó là đối tượng json.
Thông số |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Đặt xem chúng tôi có nên xuất bản kiểm tra được ghi lại hay không.
Thông số |
---|
outputTestLog | boolean |
hỗ trợGranularKết quả
public boolean supportGranularResults ()
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription testId,
String trace)
Thông số |
---|
testId | TestDescription |
trace | String |
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Thông số |
---|
testId | TestDescription |
failure | FailureDescription |
kiểm traĐã kết thúc
public void testEnded (TestDescription testId,
long endTime,
metrics)
Thông số |
---|
testId | TestDescription |
endTime | long |
metrics | |
kiểm traĐã kết thúc
public void testEnded (TestDescription testId,
metrics)
Thông số |
---|
testId | TestDescription |
metrics | |
thử nghiệm thất bại
public void testFailed (TestDescription testId,
FailureDescription failure)
Thông số |
---|
testId | TestDescription |
failure | FailureDescription |
thử nghiệm thất bại
public void testFailed (TestDescription testId,
String reason)
Thông số |
---|
testId | TestDescription |
reason | String |
kiểm traBỏ qua
public void testIgnored (TestDescription testId)
Thông số |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Thông số |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleĐã kết thúc
public void testModuleEnded ()
testModuleBắt đầu
public void testModuleStarted (IInvocationContext moduleContext)
Thông số |
---|
moduleContext | IInvocationContext |
thử nghiệmChạyĐã kết thúc
public void testRunEnded (long time,
runMetrics)
Thông số |
---|
time | long |
runMetrics | |
thử nghiệm Chạy không thành công
public void testRunFailed (FailureDescription failure)
Thông số |
---|
failure | FailureDescription |
thử nghiệm Chạy không thành công
public void testRunFailed (String reason)
thử nghiệmChạyBắt đầu
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Thông số |
---|
runName | String |
testCount | int |
attemptNumber | int |
thử nghiệmChạyBắt đầu
public void testRunStarted (String runName,
int testCount)
Thông số |
---|
runName | String |
testCount | int |
thử nghiệmChạyBắt đầu
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Thông số |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
thử nghiệmRunStopped
public void testRunStopped (long arg0)
thử nghiệmBắt đầu
public void testStarted (TestDescription testId,
long startTime)
Thông số |
---|
testId | TestDescription |
startTime | long |
thử nghiệmBắt đầu
public void testStarted (TestDescription testId)
Thông số |
---|
testId | TestDescription |