StreamProtoResultReporter
public final class StreamProtoResultReporter
extends ProtoResultReporter
java.lang.Object | ||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
↳ | com.android.tradefed.result.proto.StreamProtoResultReporter |
概括
領域 | |
---|---|
public static final String | PROTO_REPORT_PORT_OPTION
|
公共構造函數 | |
---|---|
StreamProtoResultReporter () |
公共方法 | |
---|---|
Integer | getProtoReportPort () |
void | processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs) 使用呼叫記錄一一發送所有呼叫的最終日誌。 |
void | processFinalProto (TestRecordProto.TestRecord finalRecord) 處理帶有所有結果的最終原型。 |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context) 發生 |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) 發生 |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) 在 |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) 在 |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) 在 |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) 發生 |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) |
void | setProtoReportPort (Integer portValue) |
受保護的方法 | |
---|---|
void | closeSocket () |
領域
PROTO_REPORT_PORT_OPTION
public static final String PROTO_REPORT_PORT_OPTION
公共構造函數
StreamProtoResultReporter
public StreamProtoResultReporter ()
公共方法
取得ProtoReportPort
public Integer getProtoReportPort ()
退貨 | |
---|---|
Integer |
處理最終呼叫日誌
public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)
使用呼叫記錄一一發送所有呼叫的最終日誌。
參數 | |
---|---|
invocationLogs | TestRecordProto.TestRecord :表示呼叫的最終原型。 |
流程最終原型
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
處理帶有所有結果的最終原型。
參數 | |
---|---|
finalRecord | TestRecordProto.TestRecord :包含所有呼叫結果的最終原型。 |
進程開始調用
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)
發生invocationStarted(com.android.tradefed.invoker.IInvocationContext)
後處理部分呼叫測試記錄原型。
參數 | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord :呼叫開始後填入的部分原型。 |
context | IInvocationContext :呼叫IInvocationContext 。 |
流程測試用例結束
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
發生ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap))
後處理最終測試案例記錄原型。
參數 | |
---|---|
testCaseRecord | TestRecordProto.TestRecord :代表測試用例的最終原型。 |
流程測試用例開始
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
在testStarted(com.android.tradefed.result.TestDescription, long)
發生後處理部分測試案例記錄原型。
參數 | |
---|---|
testCaseStartedRecord | TestRecordProto.TestRecord :表示測試案例的部分原型。 |
進程測試模組結束
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
在testModuleEnded()
發生後處理最終的模組記錄原型。
參數 | |
---|---|
moduleRecord | TestRecordProto.TestRecord :表示模組的最終原型。 |
進程測試模組已啟動
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
在testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
發生後處理部分模組記錄原型。
參數 | |
---|---|
moduleStartRecord | TestRecordProto.TestRecord :表示模組的部分原型。 |
進程測試運行結束
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
發生ERROR(/#testRunEnded(long,HashMap))
後最終運行記錄原型的處理。
參數 | |
---|---|
runRecord | TestRecordProto.TestRecord :代表運行的最終原型。 |
moduleInProgress | boolean :模組是否正在進行中。 |
進程測試運行開始
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)
發生後處理部分測試運行記錄原型。
參數 | |
---|---|
runStartedRecord | TestRecordProto.TestRecord :表示運行的部分原型。 |
設定ProtoReportPort
public void setProtoReportPort (Integer portValue)
參數 | |
---|---|
portValue | Integer |
受保護的方法
關閉套接字
protected void closeSocket ()