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 ()