com.neotys.nl.controller.report.transform
Class NeoLoadReportDoc

java.lang.Object
  extended by com.neotys.nl.controller.report.transform.NeoLoadReportDoc

public class NeoLoadReportDoc
extends Object

A wrapper for an xml document.

Author:
ajohnson

Field Summary
static Date DATE_1970
          A default return value when a valid date can't be found (January 1, 1970, 00:00:00 GMT).
static String STANDARD_TIME_FORMAT
          A time format that is used for all languages in the context of this plugin.
 
Constructor Summary
NeoLoadReportDoc(Document doc)
           
NeoLoadReportDoc(String xmlFilePath)
          Constructor.
 
Method Summary
 Float getAverageResponseTime()
           
 Document getDoc()
           
 Float getErrorRatePercentage()
           
 boolean hasCorrespondingDate(hudson.model.AbstractBuild<?,?> build)
           
 boolean isValidReportDoc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_1970

public static final Date DATE_1970
A default return value when a valid date can't be found (January 1, 1970, 00:00:00 GMT).


STANDARD_TIME_FORMAT

public static final String STANDARD_TIME_FORMAT
A time format that is used for all languages in the context of this plugin.

See Also:
Constant Field Values
Constructor Detail

NeoLoadReportDoc

public NeoLoadReportDoc(String xmlFilePath)
Constructor.

Parameters:
xmlFilePath -
Throws:
ParserConfigurationException
SAXException
IOException

NeoLoadReportDoc

public NeoLoadReportDoc(Document doc)
Method Detail

isValidReportDoc

public boolean isValidReportDoc()
                         throws XPathExpressionException
Returns:
true if this is a valid NeoLoad report document. false otherwise.
Throws:
XPathExpressionException

getAverageResponseTime

public Float getAverageResponseTime()
                             throws XPathExpressionException
Returns:
Throws:
XPathExpressionException

getErrorRatePercentage

public Float getErrorRatePercentage()
                             throws XPathExpressionException
Returns:
Throws:
XPathExpressionException

getDoc

public Document getDoc()
Returns:
the doc

hasCorrespondingDate

public boolean hasCorrespondingDate(hudson.model.AbstractBuild<?,?> build)
                             throws XPathExpressionException
Parameters:
cal -
Returns:
Throws:
XPathExpressionException


Copyright © 2004-2016. All Rights Reserved.