컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
TestResultListener
public
abstract
class
TestResultListener
extends Object
implements
ITestLifeCycleReceiver
java.lang.Object의 클래스
|
↳ |
com.android.tradefed.result.TestResultListener의 클래스
|
개별 테스트에만 관심이 있는 구현자를 위해 ITestLifecycleListener를 간소화했습니다.
있습니다.
다양한 수명 주기 이벤트를 testResult 메서드로 필터링합니다.
스레드로부터 안전하지 않으며 특히 ITestLifecycleListener 이벤트가
순서대로 받습니다.
요약
공개 메서드 |
final
void
|
testAssumptionFailure(TestDescription test, String trace)
|
final
void
|
testEnded(TestDescription test, testMetrics)
|
final
void
|
testEnded(TestDescription test, long endTime, testMetrics)
|
final
void
|
testFailed(TestDescription test, String trace)
|
final
void
|
testIgnored(TestDescription test)
|
abstract
void
|
testResult(TestDescription test, TestResult result)
|
void
|
testRunEnded(long elapsedTimeMillis, runMetrics)
|
final
void
|
testStarted(TestDescription test, long startTime)
|
final
void
|
testStarted(TestDescription test)
|
공개 생성자
TestResultListener
public TestResultListener ()
공개 메서드
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
String trace)
매개변수 |
test |
TestDescription |
trace |
String |
testEnded
public final void testEnded (TestDescription test,
testMetrics)
매개변수 |
test |
TestDescription |
testMetrics |
|
testEnded
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
매개변수 |
test |
TestDescription |
endTime |
long |
testMetrics |
|
테스트 실패
public final void testFailed (TestDescription test,
String trace)
매개변수 |
test |
TestDescription |
trace |
String |
testIgnored
public final void testIgnored (TestDescription test)
매개변수 |
test |
TestDescription |
testResult
public abstract void testResult (TestDescription test,
TestResult result)
매개변수 |
test |
TestDescription |
result |
TestResult |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
매개변수 |
elapsedTimeMillis |
long |
runMetrics |
|
testStarted
public final void testStarted (TestDescription test,
long startTime)
매개변수 |
test |
TestDescription |
startTime |
long |
testStarted
public final void testStarted (TestDescription test)
매개변수 |
test |
TestDescription |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]
{
"lastModified": "최종 업데이트: 2024-08-22(UTC)",
"confidential": False
}