TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.tptp.test.auto.gui.internal.runner
Class ExtendedScriptParser

java.lang.Object
  extended byorg.eclipse.tptp.test.manual.runner.core.internal.model.util.ScriptParser
      extended byorg.eclipse.tptp.test.auto.gui.internal.runner.ExtendedScriptParser

public class ExtendedScriptParser
extends ScriptParser

Extends the script parser that the manual runner provides to include data that is specific to the automatic test suite.


Nested Class Summary
 class ExtendedScriptParser.ExtendedTestCase
          Extends the test case class that the manual runner uses to serialize a test suite into XML.
 class ExtendedScriptParser.ExtendedTestInvocation
          Extends the test invocation to be able to provide APIs for retrieving properties of test invocations
 class ExtendedScriptParser.ExtendedTestSuite
          Extends the test suite class to allow for dependencies to be set
 class ExtendedScriptParser.GeneralPropertyRetriever
           
static interface ExtendedScriptParser.IProeprtyHolder
           
 
Constructor Summary
ExtendedScriptParser()
           
 
Method Summary
 TestSuite parse(byte[] xmlBytes)
          Overwrite so that an extended test suite is returned (as opposed to a standard test suite that the manual parser uses)
protected  void parse(TestSuite testSuite, org.w3c.dom.Element element)
           
protected  void parseProperties(org.w3c.dom.Element element, ExtendedScriptParser.IProeprtyHolder propertyHolder)
           
protected  void parseTestCase(TestSuite testSuite, org.w3c.dom.NodeList testCases)
          This method needs to be over-written so that properties are associated with each test case
protected  void parseTestInvocation(IActionOwner actionOwner, org.w3c.dom.Element actionElement)
           
 
Methods inherited from class org.eclipse.tptp.test.manual.runner.core.internal.model.util.ScriptParser
adjust, dispose, getTestInvocations, getVerdictReasons, getVerdicts, parse, parse, parse, parse, parse, parse, parse, parseVerdictReasons, parseVerdicts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedScriptParser

public ExtendedScriptParser()
Method Detail

parse

public TestSuite parse(byte[] xmlBytes)
                throws java.lang.Exception
Overwrite so that an extended test suite is returned (as opposed to a standard test suite that the manual parser uses)

Overrides:
parse in class ScriptParser
Throws:
java.lang.Exception

parseTestCase

protected void parseTestCase(TestSuite testSuite,
                             org.w3c.dom.NodeList testCases)
This method needs to be over-written so that properties are associated with each test case

Overrides:
parseTestCase in class ScriptParser

parseTestInvocation

protected void parseTestInvocation(IActionOwner actionOwner,
                                   org.w3c.dom.Element actionElement)
Overrides:
parseTestInvocation in class ScriptParser

parseProperties

protected void parseProperties(org.w3c.dom.Element element,
                               ExtendedScriptParser.IProeprtyHolder propertyHolder)

parse

protected void parse(TestSuite testSuite,
                     org.w3c.dom.Element element)
Overrides:
parse in class ScriptParser

TPTP 4.4.0 Testing Tools Project
Internal API Specification