Package hudson.plugins.testng.parser
Class ResultsParser
java.lang.Object
hudson.plugins.testng.parser.ResultsParser
Parses TestNG result XMLs generated using org.testng.reporters.XmlReporter into objects that are
then used to display results in Jenkins.
(For those trying to modify this class, pay attention to logging. We are using two different
loggers. If build's PrintStream
is not available, we log using Logger
. Also,
logging is done only using the log(String)
and log(Exception)
methods.)
Note that instances of this class are not thread-safe to use!
- Author:
- nullin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final org.xmlpull.v1.XmlPullParserFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses the XML for relevant information
-
Field Details
-
DATE_FORMAT
- See Also:
-
PARSER_FACTORY
public static final org.xmlpull.v1.XmlPullParserFactory PARSER_FACTORY
-
-
Constructor Details
-
ResultsParser
public ResultsParser() -
ResultsParser
-
-
Method Details
-
parse
Parses the XML for relevant information- Parameters:
paths
- a file hopefully containing test related data in correct format- Returns:
- a collection of test results
-