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, long endTime, Map<String, String> testMetrics)
|
void
|
testEnded(TestDescription test, long endTime, HashMap<String, MetricMeasurement.Metric> testMetrics)
종료 시간을 직접 지정할 수 있는 |
void
|
testEnded(TestDescription test, Map<String, String> testMetrics)
|
void
|
testEnded(TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)
개별 테스트 사례의 실행 종료를 보고합니다. |
void
|
testRunEnded(long elapsedTimeMillis, Map<String, String> runMetrics)
|
void
|
testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> runMetrics)
테스트 실행의 종료를 보고합니다. |
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, long endTime, Map<String, String> testMetrics)
| 매개변수 | |
|---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
Map |
testEnded
public void testEnded (TestDescription test, long endTime, HashMap<String, MetricMeasurement.Metric> testMetrics)
종료 시간을 직접 지정할 수 있는 testEnded(TestDescription,Map)의 대안입니다. 정확한 측정을 위해 testStarted(TestDescription,long)와 결합하세요.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
endTime |
long: 테스트가 종료된 시간입니다(System.currentTimeMillis()을 통해 측정됨). |
testMetrics |
HashMap: 내보낸 측정항목의 Map |
testEnded
public void testEnded (TestDescription test, Map<String, String> testMetrics)
| 매개변수 | |
|---|---|
test |
TestDescription |
testMetrics |
Map |
testEnded
public void testEnded (TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)
개별 테스트 사례의 실행 종료를 보고합니다.
testFailed(TestDescription, FailureDescription)가 호출되지 않았다면 이 테스트는 통과입니다. 테스트 사례 실행 중에 발생했을 수 있는 키/값 측정항목도 반환합니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
testMetrics |
HashMap: 내보낸 측정항목의 Map |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
Map<String, String> runMetrics)| 매개변수 | |
|---|---|
elapsedTimeMillis |
long |
runMetrics |
Map |
testRunEnded
public void testRunEnded (long elapsedTime,
HashMap<String, MetricMeasurement.Metric> runMetrics)테스트 실행의 종료를 보고합니다. FIXME: 유형이 다른 Map<> 인터페이스 두 개를 사용할 수 없으므로 여기서는 HashMap을 사용해야 합니다.
| 매개변수 | |
|---|---|
elapsedTime |
long: 기기에서 보고한 경과 시간(밀리초) |
runMetrics |
HashMap: Metric로 테스트 실행이 끝날 때 보고되는 키-값 쌍입니다. |
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(TestDescription)의 대안으로, 정확한 측정을 위해 testEnded(TestDescription,long,Map)와 결합됩니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |
startTime |
long: 테스트가 시작된 시간입니다(System.currentTimeMillis()을 통해 측정됨). |
testStarted
public void testStarted (TestDescription test)
개별 테스트 사례의 시작을 보고합니다. 이전 인터페이스로, 가능하면 testStarted(TestDescription)을 사용해야 합니다.
| 매개변수 | |
|---|---|
test |
TestDescription: 테스트를 식별합니다. |