Trình chuyển tiếp kết quả
public class ResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.ResultForwarder |
Các lớp con trực tiếp đã biết |
Các lớp con gián tiếp đã biết |
ITestInvocationListener
chuyển tiếp kết quả lệnh gọi tới danh sách các trình nghe khác.
Bản tóm tắt
Phương pháp công cộng |
---|
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) |
Phương pháp được bảo vệ |
---|
| getListeners () Lấy danh sách người nghe. |
void | setListeners ( listeners) setListeners ( listeners) Đặt trình nghe sau khi xây dựng. |
void | setListeners (ITestInvocationListener... listeners) Đặt trình nghe sau khi xây dựng. |
Nhà thầu xây dựng công cộng
Trình chuyển tiếp kết quả
public ResultForwarder ( listeners)
Tạo một ResultForwarder
.
Trình chuyển tiếp kết quả
public ResultForwarder (ITestInvocationListener... listeners)
Hàm tạo đối số biến thay thế cho ResultForwarder
.
Nhà xây dựng được bảo vệ
Trình chuyển tiếp kết quả
protected ResultForwarder ()
Tạo ResultForwarder
với cài đặt trình nghe bị trì hoãn. Chỉ dành cho các lớp con sử dụng.
Phương pháp công cộng
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 |
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription test,
String trace)
Thông số |
---|
test | TestDescription |
trace | String |
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Thông số |
---|
test | TestDescription |
failure | FailureDescription |
kiểm traĐã kết thúc
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Thông số |
---|
test | TestDescription |
endTime | long |
testMetrics | |
kiểm traĐã kết thúc
public void testEnded (TestDescription test,
testMetrics)
Thông số |
---|
test | TestDescription |
testMetrics | |
thử nghiệm thất bại
public void testFailed (TestDescription test,
FailureDescription failure)
Thông số |
---|
test | TestDescription |
failure | FailureDescription |
thử nghiệm thất bại
public void testFailed (TestDescription test,
String trace)
Thông số |
---|
test | TestDescription |
trace | String |
kiểm traBỏ qua
public void testIgnored (TestDescription test)
Thông số |
---|
test | 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 elapsedTime,
runMetrics)
Thông số |
---|
elapsedTime | 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 errorMessage)
Thông số |
---|
errorMessage | String |
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 elapsedTime)
Thông số |
---|
elapsedTime | long |
thử nghiệmBắt đầu
public void testStarted (TestDescription test,
long startTime)
Thông số |
---|
test | TestDescription |
startTime | long |
thử nghiệmBắt đầu
public void testStarted (TestDescription test)
Thông số |
---|
test | TestDescription |
Phương pháp được bảo vệ
getListener
protected getListeners ()
Lấy danh sách người nghe. Chỉ dành cho các lớp con sử dụng.
setListener
protected void setListeners ( listeners)
Đặt trình nghe sau khi xây dựng. Chỉ dành cho các lớp con sử dụng.
setListener
protected void setListeners (ITestInvocationListener... listeners)
Đặt trình nghe sau khi xây dựng. Chỉ dành cho các lớp con sử dụng.