public class TestcaseParser extends DefaultHandler
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ac,
int i,
int j) |
void |
endElement(String uri,
String localName,
String qName) |
static Testcase |
parseXml(hudson.FilePath xmlFile)
Parse an XML file to retrieve a testcase info instance (non null)
|
void |
startElement(String s,
String s1,
String elementName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static Testcase parseXml(hudson.FilePath xmlFile) throws IOException, InterruptedException
xmlFile - testcase_information.xmlIOException - if the xml file cannot be read or has a wrong formatInterruptedException - If the Job is cancelledpublic void startElement(String s, String s1, String elementName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ac,
int i,
int j)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionCopyright © 2016–2018 PikeTec GmbH. All rights reserved.