hudson.plugins.testng.parser
Class ResultPullParserHelper
java.lang.Object
hudson.plugins.testng.parser.ResultPullParserHelper
public class ResultPullParserHelper
- extends java.lang.Object
Helper class for parsing TestNG result XML files
- Author:
- farshidce, nullin
|
Method Summary |
static org.xmlpull.v1.XmlPullParser |
createXmlPullParser(java.io.BufferedInputStream bufferedInputStream)
|
static java.lang.String |
parseToTagIfAnyFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.util.List<java.lang.String> tags,
int initialDepth)
|
static boolean |
parseToTagIfFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.lang.String name)
|
static boolean |
parseToTagIfFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.lang.String name,
int initialDepth)
Attempts to find and move the parser forward to the opening tag with the
specified name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultPullParserHelper
public ResultPullParserHelper()
parseToTagIfFound
public static boolean parseToTagIfFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.lang.String name,
int initialDepth)
- Attempts to find and move the parser forward to the opening tag with the
specified name
- Parameters:
xmlPullParser - XML Parsername - name of the XML taginitialDepth -
- Returns:
- true, if such a tag is found, false otherwise
parseToTagIfFound
public static boolean parseToTagIfFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.lang.String name)
parseToTagIfAnyFound
public static java.lang.String parseToTagIfAnyFound(org.xmlpull.v1.XmlPullParser xmlPullParser,
java.util.List<java.lang.String> tags,
int initialDepth)
- Parameters:
xmlPullParser - tags - initialDepth -
- Returns:
createXmlPullParser
public static org.xmlpull.v1.XmlPullParser createXmlPullParser(java.io.BufferedInputStream bufferedInputStream)
throws org.xmlpull.v1.XmlPullParserException
- Throws:
org.xmlpull.v1.XmlPullParserException
Copyright © 2004-2011. All Rights Reserved.