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 ()
公共方法
獲取原型報告端口
public Integer getProtoReportPort ()
退貨 | |
---|---|
Integer |
processFinalInvocationLogs
public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)
使用調用記錄將調用的所有最終日誌一一發送。
參數 | |
---|---|
invocationLogs | TestRecordProto.TestRecord :表示調用的最終原型。 |
處理最終協議
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
處理具有所有結果的最終原型。
參數 | |
---|---|
finalRecord | TestRecordProto.TestRecord :具有所有調用結果的最終原型。 |
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)
在發生invocationStarted(com.android.tradefed.invoker.IInvocationContext)
後處理部分調用測試記錄原型。
參數 | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord :在 invocationStart 之後填充的部分原型。 |
context | IInvocationContext :調用IInvocationContext 。 |
流程測試用例結束
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
在ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap))
發生後處理最終的測試用例記錄原型。
參數 | |
---|---|
testCaseRecord | TestRecordProto.TestRecord :表示測試用例的最終原型。 |
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
在testStarted(com.android.tradefed.result.TestDescription, long)
發生後處理部分測試用例記錄原型。
參數 | |
---|---|
testCaseStartedRecord | TestRecordProto.TestRecord :表示測試用例的部分原型。 |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
在testModuleEnded()
發生後處理最終模塊記錄原型。
參數 | |
---|---|
moduleRecord | TestRecordProto.TestRecord :表示模塊的最終原型。 |
processTestModuleStarted
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
在testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
發生後處理部分模塊記錄原型。
參數 | |
---|---|
moduleStartRecord | TestRecordProto.TestRecord :表示模塊的部分原型。 |
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
ERROR(/#testRunEnded(long,HashMap))
發生後最終運行記錄原型的處理。
參數 | |
---|---|
runRecord | TestRecordProto.TestRecord :代表運行的最終原型。 |
moduleInProgress | boolean : 模塊是否在進行中。 |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
在testRunStarted(String, int)
發生後處理部分測試運行記錄原型。
參數 | |
---|---|
runStartedRecord | TestRecordProto.TestRecord :代表運行的部分原型。 |
設置原型報告端口
public void setProtoReportPort (Integer portValue)
參數 | |
---|---|
portValue | Integer |
受保護的方法
關閉套接字
protected void closeSocket ()