InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
Các lớp con trực tiếp đã biết |
Một lớp lắng nghe các sự kiện ITestInvocationListener
và chuyển tiếp chúng tới TestListener
.
Bản tóm tắt
Nhà thầu xây dựng công cộng
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
Thông số |
---|
junitListener | TestListener |
Phương pháp công khai
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 (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 testId,
String trace)
Thông số |
---|
testId | TestDescription |
trace | String |
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 testId,
String trace)
Thông số |
---|
testId | TestDescription |
trace | String |
kiểm traBỏ qua
public void testIgnored (TestDescription test)
Thông số |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType logData,
InputStreamSource dataStream)
Thông số |
---|
dataName | String |
logData | LogDataType |
dataStream | InputStreamSource |
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 (String errorMessage)
Thông số |
---|
errorMessage | String |
thử nghiệmChạyBắt đầu
public void testRunStarted (String runName,
int testCount)
Thông số |
---|
runName | String |
testCount | int |
thử nghiệmRunStopped
public void testRunStopped (long elapsedTime)
Thông số |
---|
elapsedTime | long |
thử nghiệmBắt đầu
public void testStarted (TestDescription test)
Thông số |
---|
test | TestDescription |
Phương pháp được bảo vệ
getJUnitListener
protected TestListener getJUnitListener ()