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 都會採用以下格式: ,並放在 標記底下

在執行指標對應中,所有 k-v 比對都會採用以下格式: ,放在 標記底下,標記巢狀結構位於 底下。

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

已叫用

public void invocationEnded (long elapsedTime)

參數
elapsedTime long