SuiteResultReporter

public class SuiteResultReporter
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.result.suite.SuiteResultReporter


전체 제품군 호출에 대한 테스트 결과를 수집하고 최종 결과를 출력합니다.

요약

중첩 클래스

class SuiteResultReporter.ModulePrepTimes

하나의 모듈을 준비하고 해체하는 시간을 위한 개체 홀더입니다.

필드

public static final String SUITE_REPORTER_SOURCE

공개 생성자

SuiteResultReporter ()

공개 메소드

int getCompleteModules ()
long getFailedTests ()
getModulesAbi ()

모듈 abi의 맵을 반환합니다. .

long getPassedTests ()
TestSummary getSummary ()
int getTotalModules ()
long getTotalTests ()
void invocationEnded (long elapsedTime)

성공적으로 또는 일부 오류 조건으로 인해 호출이 종료되었음을 보고합니다.

void invocationStarted ( IInvocationContext context)

테스트 호출의 시작을 보고합니다.

void testModuleStarted ( IInvocationContext moduleContext)

실행 중인 모듈의 시작을 보고합니다.

보호된 방법

long getCurrentTime ()
long getEndTime ()

호출의 종료 시간을 반환합니다.

long getStartTime ()

호출의 시작 시간을 반환합니다.

필드

SUITE_REPORTER_SOURCE

public static final String SUITE_REPORTER_SOURCE

공개 생성자

SuiteResultReporter

public SuiteResultReporter ()

공개 메소드

getComplete모듈

public int getCompleteModules ()

보고
int

getFailedTests

public long getFailedTests ()

보고
long

getModulesAbi

public  getModulesAbi ()

모듈 abi의 맵을 반환합니다. .

보고

getPassedTests

public long getPassedTests ()

보고
long

getSummary

public TestSummary getSummary ()

보고
TestSummary

getTotalModules

public int getTotalModules ()

보고
int

getTotalTests

public long getTotalTests ()

보고
long

호출종료됨

public void invocationEnded (long elapsedTime)

성공적으로 또는 일부 오류 조건으로 인해 호출이 종료되었음을 보고합니다.

TradeFederation 프레임워크에 의해 자동으로 호출됩니다.

매개변수
elapsedTime long : 호출 경과 시간(ms)

호출시작됨

public void invocationStarted (IInvocationContext context)

테스트 호출의 시작을 보고합니다.

TradeFederation 프레임워크에 의해 자동으로 호출됩니다. 보고자는 여러 장치 보고를 지원하기 위해 이 방법을 재정의해야 합니다.

매개변수
context IInvocationContext : 호출에 대한 정보

테스트모듈시작됨

public void testModuleStarted (IInvocationContext moduleContext)

실행 중인 모듈의 시작을 보고합니다. 이 콜백은 testModuleEnded() 와 연결되어 있으며 시퀀스에서 선택 사항입니다. 모듈 기반 실행기 등을 사용하는 실행 중에만 사용됩니다.

매개변수
moduleContext IInvocationContext : 모듈의 IInvocationContext .

보호된 방법

getCurrentTime

protected long getCurrentTime ()

보고
long

getEndTime

protected long getEndTime ()

호출의 종료 시간을 반환합니다.

보고
long

getStartTime

protected long getStartTime ()

호출의 시작 시간을 반환합니다.

보고
long