GranularRetriableTestWrapper.StartEndCollector
public
class
GranularRetriableTestWrapper.StartEndCollector
extends ResultAndLogForwarder
| java.lang.Object | |||
| ↳ | com.android.tradefed.result.ResultForwarder | ||
| ↳ | com.android.tradefed.result.ResultAndLogForwarder | ||
| ↳ | com.android.tradefed.testtype.suite.GranularRetriableTestWrapper.StartEndCollector | ||
누락된 실행 시작 및 종료를 포착하는 클래스 도우미
요약
필드 | |
|---|---|
public
TestDescription |
mCurrentTest
|
public
boolean |
mRunEndedReported
|
public
boolean |
mRunStartReported
|
public
boolean |
mTestInProgress
|
공개 메서드 | |
|---|---|
void
|
testEnded(TestDescription test,
개별 테스트 사례의 실행 종료를 보고합니다. |
void
|
testEnded(TestDescription test, long endTime,
종료 시간을 직접 지정할 수 있는 |
void
|
testRunEnded(long elapsedTimeMillis,
테스트 실행의 종료를 보고합니다. |
void
|
testRunStarted(String runName, int testCount)
테스트 실행 시작을 보고합니다. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
테스트 실행 시작을 보고합니다. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
테스트 실행 시작을 보고합니다. |
void
|
testStarted(TestDescription test, long startTime)
테스트가 시작된 시간을 지정하는 |
void
|
testStarted(TestDescription test)
개별 테스트 사례의 시작을 보고합니다. |
필드
mRunEndedReported
public boolean mRunEndedReported
mRunStartReported
public boolean mRunStartReported
mTestInProgress
public boolean mTestInProgress
공개 메서드
testEnded
public void testEnded (TestDescription test,testMetrics)
개별 테스트 사례의 실행 종료를 보고합니다.
testFailed(TestDescription, FailureDescription)가 호출되지 않은 경우 이 테스트는 통과됩니다. 테스트 사례 실행 중에 발생했을 수 있는 키/값 측정항목도 반환합니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
testMetrics |
: 내보낸 측정항목의 ERROR(/Map) |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
종료 시간을 직접 지정할 수 있는 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map))의 대안입니다. 정확한 측정을 위해 testStarted(com.android.tradefed.result.TestDescription, long)와 결합하세요.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
endTime |
long: 테스트가 종료된 시간입니다(System.currentTimeMillis()을 통해 측정됨). |
testMetrics |
: 내보낸 측정항목의 ERROR(/Map) |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
runMetrics) 테스트 실행의 종료를 보고합니다.
| 매개변수 | |
|---|---|
elapsedTimeMillis |
long: 기기에서 보고한 경과 시간(밀리초) |
runMetrics |
: 테스트 실행이 끝날 때 보고되는 키-값 쌍 |
testRunStarted
public void testRunStarted (String runName,
int testCount)테스트 실행 시작을 보고합니다.
| 매개변수 | |
|---|---|
runName |
String: 테스트 실행 이름 |
testCount |
int: 테스트 실행의 총 테스트 수 |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)테스트 실행 시작을 보고합니다.
| 매개변수 | |
|---|---|
runName |
String: 테스트 실행 이름 |
testCount |
int: 테스트 실행의 총 테스트 수 |
attemptNumber |
int: 동일한 runName의 여러 시도를 식별하는 주문 번호입니다. attemptNumber는 0부터 시작하며 새 실행이 발생할 때마다 증가해야 합니다. 예를 들어 테스트가 세부적으로 3번 재시도되면 동일한 runName 아래에 총 4번의 실행이 있어야 하며 attemptNumber는 0~3입니다. |
startTime |
long: System.currentTimeMillis()를 통해 측정된 실행 시작 시간 |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)테스트 실행 시작을 보고합니다.
| 매개변수 | |
|---|---|
runName |
String: 테스트 실행 이름 |
testCount |
int: 테스트 실행의 총 테스트 수 |
attemptNumber |
int: 동일한 runName의 여러 시도를 식별하는 주문 번호입니다. attemptNumber는 0부터 시작하며 새 실행이 발생할 때마다 증가해야 합니다. 예를 들어 테스트가 세부적으로 3번 재시도되면 동일한 runName으로 총 4번 실행되며 attemptNumber는 0~3입니다. |
testStarted
public void testStarted (TestDescription test, long startTime)
테스트가 시작된 시간을 지정하는 testStarted(com.android.tradefed.result.TestDescription)의 대안으로, 정확한 측정을 위해 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map))와 결합됩니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
startTime |
long: 테스트가 시작된 시간입니다(System.currentTimeMillis()을 통해 측정됨). |
testStarted
public void testStarted (TestDescription test)
개별 테스트 사례의 시작을 보고합니다. 이전 인터페이스로, 가능하면 testStarted(com.android.tradefed.result.TestDescription)을 사용해야 합니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |