GTestXmlResultParser

public class GTestXmlResultParser
extends Object

java.lang.Object
com.android.tradefed.testtype.GTestXmlResultParser


Kabuktan çalıştırılan GTest'i kullanarak yerel testlerin 'xml çıktı modu' sonuçlarını ayrıştırır ve sonuçları bir ITestRunListener'a bildirir.

Özet

Kamu inşaatçıları

GTestXmlResultParser (String testRunName, listeners) GTestXmlResultParser (String testRunName, listeners)

GTestXmlResultParser'ı oluşturur.

Genel yöntemler

getFailedTests ()

Geçerli test çalıştırması sırasında başarısız olan testlerin listesini döndürür.

boolean isTestRunIncomplete ()

Test çalıştırmasının eksik olup olmadığı.

void parseResult (File f, CollectingOutputReceiver output)

Xml sonuçlarını ayrıştırın

Kamu inşaatçıları

GTestXmlResultParser

public GTestXmlResultParser (String testRunName, 
                 listeners)

GTestXmlResultParser'ı oluşturur.

Parametreler
testRunName String : ITestLifeCycleReceiver.testRunStarted(String, int) öğesine sağlanacak test çalıştırması adı

listeners : testler yürütülürken test sonuçları hakkında bilgi verilir

Genel yöntemler

getFailedTestler

public  getFailedTests ()

Geçerli test çalıştırması sırasında başarısız olan testlerin listesini döndürür.

İadeler

isTestRunIncomplete

public boolean isTestRunIncomplete ()

Test çalıştırmasının eksik olup olmadığı.

İadeler
boolean doğru, test çalıştırması ayrıştırma sorunları veya çökmeler nedeniyle tamamlanmamışsa.

ayrıştırmaSonucu

public void parseResult (File f, 
                CollectingOutputReceiver output)

Xml sonuçlarını ayrıştırın

Parametreler
f File : Çıktılanan xml'yi içeren ERROR(/File)

output CollectingOutputReceiver : Gerekirse günlükleri tamamlamak için yürütme çalıştırmasından toplanan çıktı