LUCIResultReporter

public class LUCIResultReporter
extends CollectingTestListener implements ILogSaverListener , ISupportGranularResults

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.result.LUCIResultReporter


ResultDB 및 LUCI에서 필요한 테스트 결과를 JSON 형식(go/result-sink)으로 저장하고 파일 위치를 콘솔에 기록하는 결과 보고자입니다. https://pkg.go.dev/go.chromium.org/luci/resultdb/proto/v1#TestResult 테스트 실행 시 각 테스트 케이스에 대한 테스트 결과를 배열로 저장합니다.

요약

공개 생성자

LUCIResultReporter ()

공개 메소드

void invocationEnded (long elapsedTime)

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

void invocationFailed (Throwable cause)

일부 오류 조건으로 인해 불완전한 호출을 보고합니다.

void invocationStarted ( IInvocationContext context)

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

void logAssociation (String dataName, LogFile logFile)

결과 파일을 수집합니다.

void saveJsonFile (JSONObject jsonResults)

JSON 결과 파일을 저장합니다.

void setGranularResults (boolean granularResults)
boolean supportGranularResults ()

보고자가 세부적인 결과를 지원하면 True를 반환하고, 그렇지 않으면 False를 반환합니다.

공개 생성자

LUCIResultReporter

public LUCIResultReporter ()

공개 메소드

호출종료됨

public void invocationEnded (long elapsedTime)

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

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

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

호출 실패

public void invocationFailed (Throwable cause)

일부 오류 조건으로 인해 불완전한 호출을 보고합니다.

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

매개변수
cause Throwable : Throwable 실패 원인

호출시작됨

public void invocationStarted (IInvocationContext context)

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

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

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

로그 연관

public void logAssociation (String dataName, 
                LogFile logFile)

결과 파일을 수집합니다.

매개변수
dataName String : 데이터의 이름

logFile LogFile : 이전에 기록되었으며 테스트 사례와 연결되어야 하는 LogFile 입니다.

saveJson파일

public void saveJsonFile (JSONObject jsonResults)

JSON 결과 파일을 저장합니다.

매개변수
jsonResults JSONObject

setGranularResults

public void setGranularResults (boolean granularResults)

매개변수
granularResults boolean

지원세분화된 결과

public boolean supportGranularResults ()

보고자가 세부적인 결과를 지원하면 True를 반환하고, 그렇지 않으면 False를 반환합니다.

보고
boolean