2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
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 |
|
testFailed
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 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-03-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-26(UTC)"],[],[]]