결과 전달자
public class ResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.ResultForwarder |
호출 결과를 다른 리스너 목록으로 전달하는 ITestInvocationListener
입니다.
요약
공개 메소드 |
---|
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) |
공개 생성자
결과 전달자
public ResultForwarder (ITestInvocationListener... listeners)
ResultForwarder
에 대한 대체 변수 arg 생성자입니다.
보호된 생성자
결과 전달자
protected ResultForwarder ()
지연된 리스너 설정을 사용하여 ResultForwarder
생성합니다. 서브클래스에서만 사용하도록 의도되었습니다.
공개 메소드
getSummary
public TestSummary getSummary ()
호출종료됨
public void invocationEnded (long elapsedTime)
호출 실패
public void invocationFailed (FailureDescription failure)
매개변수 |
---|
failure | FailureDescription |
호출 실패
public void invocationFailed (Throwable cause)
호출시작됨
public void invocationStarted (IInvocationContext context)
매개변수 |
---|
context | IInvocationContext |
테스트가정실패
public void testAssumptionFailure (TestDescription test,
String trace)
매개변수 |
---|
test | TestDescription |
trace | String |
테스트가정실패
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
매개변수 |
---|
test | TestDescription |
failure | FailureDescription |
테스트 종료됨
public void testEnded (TestDescription test,
long endTime,
testMetrics)
매개변수 |
---|
test | TestDescription |
endTime | long |
testMetrics | |
테스트 종료됨
public void testEnded (TestDescription test,
testMetrics)
매개변수 |
---|
test | TestDescription |
testMetrics | |
테스트 실패
public void testFailed (TestDescription test,
FailureDescription failure)
매개변수 |
---|
test | TestDescription |
failure | FailureDescription |
테스트 실패
public void testFailed (TestDescription test,
String trace)
매개변수 |
---|
test | TestDescription |
trace | String |
테스트는 무시됨
public void testIgnored (TestDescription test)
매개변수 |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
매개변수 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
테스트모듈종료됨
public void testModuleEnded ()
테스트모듈시작됨
public void testModuleStarted (IInvocationContext moduleContext)
매개변수 |
---|
moduleContext | IInvocationContext |
테스트실행이 종료됨
public void testRunEnded (long elapsedTime,
runMetrics)
매개변수 |
---|
elapsedTime | long |
runMetrics | |
테스트실행실패
public void testRunFailed (FailureDescription failure)
매개변수 |
---|
failure | FailureDescription |
테스트실행실패
public void testRunFailed (String errorMessage)
테스트실행시작됨
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
매개변수 |
---|
runName | String |
testCount | int |
attemptNumber | int |
테스트실행시작됨
public void testRunStarted (String runName,
int testCount)
매개변수 |
---|
runName | String |
testCount | int |
테스트실행시작됨
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
매개변수 |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
테스트실행중지됨
public void testRunStopped (long elapsedTime)
테스트시작됨
public void testStarted (TestDescription test,
long startTime)
매개변수 |
---|
test | TestDescription |
startTime | long |
테스트시작됨
public void testStarted (TestDescription test)
매개변수 |
---|
test | TestDescription |
보호된 방법
getListeners
protected getListeners ()
청취자 목록을 가져옵니다. 서브클래스에서만 사용하도록 의도되었습니다.
setListeners
protected void setListeners ( listeners)
생성 후 리스너를 설정합니다. 서브클래스에서만 사용하도록 의도되었습니다.
setListeners
protected void setListeners (ITestInvocationListener... listeners)
생성 후 리스너를 설정합니다. 서브클래스에서만 사용하도록 의도되었습니다.