MetricsXMLResultReporter

public class MetricsXMLResultReporter
extends CollectingTestListener

java.lang.Object 中
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.MetricsXMLResultReporter


MetricsXMLResultReporter 将测试指标和运行指标写入指定文件夹内的 XML 文件中 。该 XML 文件将通过管道 转换为用于检测回归的算法。

所有 k-v paris in run 指标映射都将格式化为 ,并放置在 标记下

运行指标映射中的所有 k-v paris 都将设置为: ,并放置在 标记下(嵌套在 下)。

XML 格式示例:

摘要

公共构造函数

MetricsXMLResultReporter()

公共方法

OutputStream createOutputStream()
String getTimeStamp()

String 形式返回当前时间戳。

void invocationEnded(long elapsedTime)

公共构造函数

MetricsXMLResultReporter

public MetricsXMLResultReporter ()

公共方法

createOutputStream

public OutputStream createOutputStream ()

返回
OutputStream

getTimeStamp

public String getTimeStamp ()

String 形式返回当前时间戳。

返回
String

invocationEnded

public void invocationEnded (long elapsedTime)

参数
elapsedTime long