StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

java.lang.Object
com.android.tradefed.result.proto.ProtoResultReporter
com.android.tradefed.result.proto.StreamProtoResultReporter


ProtoResultReporter的实现

概括

领域

public static final String PROTO_REPORT_PORT_OPTION

公共构造函数

StreamProtoResultReporter ()

公共方法

Integer getProtoReportPort ()
void processFinalProto (TestRecordProto.TestRecord finalRecord)

处理带有所有结果的最终原型。

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)

发生invocationStarted(com.android.tradefed.invoker.IInvocationContext)后处理部分调用测试记录原型。

void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap)发生后处理最终的测试用例记录原型。

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long)发生后处理部分测试用例记录原型。

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded()发生后处理最终的模块记录原型。

void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext)发生后处理部分模块记录原型。

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap)发生后处理最终的运行记录原型。

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int)发生后处理部分测试运行记录原型。

void setProtoReportPort (Integer portValue)

领域

PROTO_REPORT_PORT_OPTION

public static final String PROTO_REPORT_PORT_OPTION

公共构造函数

StreamProtoResultReporter

public StreamProtoResultReporter ()

公共方法

获取ProtoReportPort

public Integer getProtoReportPort ()

退货
Integer

流程最终原型

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)

ITestLifeCycleReceiver.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)

ITestLifeCycleReceiver.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