Package com.piketec.jenkins.plugins.tpt
Class TestcaseParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.piketec.jenkins.plugins.tpt.TestcaseParser
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Parser for TPT test case execution result (testcase_information.xml) files.
- Author:
- jkuhnert, Synopsys Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ac, int i, int j) voidendElement(String uri, String localName, String qName) static TestcaseParse an XML file to retrieve a testcase info instance (non null)voidstartElement(String s, String s1, String elementName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Method Details
-
parseXml
Parse an XML file to retrieve a testcase info instance (non null)- Parameters:
xmlFile- testcase_information.xml- Returns:
- A testcase, filled with the content of the xml-file.
- Throws:
IOException- if the xml file cannot be read or has a wrong formatInterruptedException- If the Job is cancelled
-
startElement
public void startElement(String s, String s1, String elementName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-