Search in sources :

Example 1 with XMLParser

use of apet.testCases.XMLParser in project abstools by abstools.

the class apetHandler method callXMLParser.

private ApetTestSuite callXMLParser() {
    // TODO The xml filename should be a constant
    XMLParser parser = new XMLParser(ApetShellCommand.XML_FILE_PATH);
    ApetTestSuite suite = null;
    try {
        suite = parser.read();
        System.out.println("Test cases parsed from the xml file and stored in the APetTestSuite");
    } catch (Exception e) {
        System.out.println("aPET error: Error parsing the XML file");
    }
    return suite;
}
Also used : ApetTestSuite(apet.testCases.ApetTestSuite) XMLParser(apet.testCases.XMLParser) IOException(java.io.IOException) ExecutionException(org.eclipse.core.commands.ExecutionException)

Aggregations

ApetTestSuite (apet.testCases.ApetTestSuite)1 XMLParser (apet.testCases.XMLParser)1 IOException (java.io.IOException)1 ExecutionException (org.eclipse.core.commands.ExecutionException)1