|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqat.parser.qaxmlparser.QAXMLParser
* This file loads a single QAT file, and will attempt to resolve all keywords in this qat file * file by first including any .INC statements, and their parent statements etc, until all neccesary files * have been included. * * @author webhiker * @version 2.3, 17 June 1999 *
Constructor Summary | |
QAXMLParser()
|
Method Summary | |
void |
finish()
This method indicates we are finished with this parser, and disposes * any reserved resources. |
java.lang.String[] |
getIncludeList()
This should return the list of files other than standard java.util.Properties files which were * included to parse this test file. |
java.lang.String[] |
getKeyWords()
This method should return all keywords associated with this test. |
java.util.Properties |
getProperties()
This method returns all the properties obtained by parsing this test file. |
java.lang.String[] |
getPropertiesIncludeList()
This should return the list of standard java.util.Properties files which were * included to parse this test file. |
java.lang.String |
getProperty(java.lang.String key)
This method retrieves the specified property from the results of parsing this file. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
This method retrieves the specified property from the results of parsing this file |
java.lang.String[] |
getSyntaxKeyWords()
This method lists all the keywords supported by this syntax, for use in * the Notepad syntax highlighting. |
java.lang.String |
getTestAuthor()
This method should return a test Author which will be used to display the test in * the test tree. |
java.lang.String |
getTestBugInfo()
This method should return a test BugInfo which will be used for displaying the test in * the test tree. |
java.lang.String |
getTestDescription()
This method should return a test Description which will be used to display the test in * the test tree. |
java.lang.String |
getTestName()
This method should return a test name which will be used to display the test in * the test tree. |
java.lang.String[] |
getTraceList()
This method should list all available output files produced by this test when run on the agent, * but relative to the harness. |
boolean |
inEvaluationMode()
|
void |
interrupt()
This method is responsible for killing any processes already started on the agents, * and immediately halt parsing any files. |
static void |
main(java.lang.String[] args)
|
java.io.PrintStream |
openPrintStream(java.lang.String fileName)
Returns a handle to the Printstream the parser will use for any output * resulting from parsing this test. |
int |
parseFile()
This method parses the specified file |
void |
prepare(java.lang.String projectResultsDir)
This is called at the beginning of a parser run on * one or more tests |
void |
printDebug(java.lang.String msg)
|
void |
processCheckAgentNode(org.w3c.dom.Node checkAgentNode)
This tag checks if an agent is running. |
void |
processCleanNode(org.w3c.dom.Node cleanNode)
This task will retrieve the traces of an executed process. |
void |
processCleanZipNode(org.w3c.dom.Node cleanzipNode)
This tag is the start point for a single unit test. |
void |
processEchoNode(org.w3c.dom.Node echoNode)
This tag allows you to echo traces to the harness. |
void |
processLoopNode(org.w3c.dom.Node loopNode)
This tag will loop all nested tasks until the while condition evaluates to true. |
void |
processPrintEnvNode(org.w3c.dom.Node printEnvNode)
This tag will print out the current environment settings. |
void |
processPropertyNode(org.w3c.dom.Node propertyNode)
This tag causes a propery to be set. |
void |
processReleaseAgentNode(org.w3c.dom.Node releaseAgentNode)
This tag is the start point for a single unit test. |
void |
processReportNode(org.w3c.dom.Node reportNode)
This tag causes a global property to be set. |
void |
processRequestAgentNode(org.w3c.dom.Node requestAgentNode)
This tag is the start point for a single unit test. |
void |
processSendZipNode(org.w3c.dom.Node sendzipNode)
This tag is the start point for a single unit test. |
void |
processSleepNode(org.w3c.dom.Node sleepNode)
This tag will cause execution to sleep for the specified period of time. |
void |
processStartNode(org.w3c.dom.Node startNode)
This tag is the start point for a single unit test. |
void |
processStatusNode(org.w3c.dom.Node statusNode)
This task will retrieve the status of an executed process. |
void |
processTestNode(org.w3c.dom.Node testNode)
This processTestNode is the start point for a single unit test. |
void |
processTraceNode(org.w3c.dom.Node traceNode)
This task will retrieve the traces of an executed process. |
java.lang.StringBuffer |
resolveVariable(java.lang.StringBuffer expression)
|
void |
setEvaluationMode(boolean mode)
If set to true, the parser does not actually make contact with the agents * but merely simulates the agent responses to allow standalone parsing. |
void |
setPrintStream(java.io.PrintStream printStream,
boolean useHtml)
This method sets the PrintStream to use for reporting errors * and other types of output from the script. |
void |
setProjectRoot(java.lang.String projectRoot)
This method sets the path to root of the current project. |
void |
setProperties(java.util.Properties p)
This method sets any default properties which will be required * for parsing this file. |
void |
setStatusLabel(javax.swing.JLabel status)
This is the handle to to QAT parent GUI to display which commands * the parser is processing in real-time. |
void |
setTestPath(java.lang.String testPath)
This method sets the path to file file containing the syntax * which will be parsed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QAXMLParser()
Method Detail |
public void setProjectRoot(java.lang.String projectRoot)
setProjectRoot
in interface ParserInterface
public java.lang.String[] getSyntaxKeyWords()
getSyntaxKeyWords
in interface ParserInterface
public void setTestPath(java.lang.String testPath)
setTestPath
in interface ParserInterface
public void setPrintStream(java.io.PrintStream printStream, boolean useHtml)
setPrintStream
in interface ParserInterface
public void setProperties(java.util.Properties p)
setProperties
in interface ParserInterface
public java.util.Properties getProperties()
getProperties
in interface ParserInterface
public final void setEvaluationMode(boolean mode)
setEvaluationMode
in interface ParserInterface
public final boolean inEvaluationMode()
public int parseFile() throws java.lang.Exception
parseFile
in interface ParserInterface
java.lang.Exception
public void processTestNode(org.w3c.dom.Node testNode)
processTestNode
is the start point for a single unit test.
testNode
- an org.w3c.dom.Node
valuepublic void processPrintEnvNode(org.w3c.dom.Node printEnvNode)
public void processSleepNode(org.w3c.dom.Node sleepNode)
public void processPropertyNode(org.w3c.dom.Node propertyNode)
public void processRequestAgentNode(org.w3c.dom.Node requestAgentNode)
public void processReleaseAgentNode(org.w3c.dom.Node releaseAgentNode)
public void processCheckAgentNode(org.w3c.dom.Node checkAgentNode)
public void processLoopNode(org.w3c.dom.Node loopNode)
public void processEchoNode(org.w3c.dom.Node echoNode)
public void processSendZipNode(org.w3c.dom.Node sendzipNode)
public void processCleanZipNode(org.w3c.dom.Node cleanzipNode)
public void processStartNode(org.w3c.dom.Node startNode)
public void processStatusNode(org.w3c.dom.Node statusNode)
public void processTraceNode(org.w3c.dom.Node traceNode)
public void processCleanNode(org.w3c.dom.Node cleanNode)
public void processReportNode(org.w3c.dom.Node reportNode)
public void interrupt()
interrupt
in interface ParserInterface
public java.lang.String getProperty(java.lang.String key)
getProperty
in interface ParserInterface
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
getProperty
in interface ParserInterface
public java.lang.String getTestName()
getTestName
in interface ParserInterface
public java.lang.String getTestAuthor()
getTestAuthor
in interface ParserInterface
public java.lang.String getTestDescription()
getTestDescription
in interface ParserInterface
public java.lang.String getTestBugInfo()
getTestBugInfo
in interface ParserInterface
public java.lang.String[] getKeyWords()
getKeyWords
in interface ParserInterface
public java.lang.String[] getIncludeList()
getIncludeList
in interface ParserInterface
public java.lang.String[] getPropertiesIncludeList()
getPropertiesIncludeList
in interface ParserInterface
public java.lang.String[] getTraceList()
getTraceList
in interface ParserInterface
public void prepare(java.lang.String projectResultsDir)
prepare
in interface ParserInterface
public java.io.PrintStream openPrintStream(java.lang.String fileName) throws java.io.FileNotFoundException
openPrintStream
in interface ParserInterface
java.io.FileNotFoundException
public void printDebug(java.lang.String msg)
printDebug
in interface ParserInterface
public void finish()
finish
in interface ParserInterface
public void setStatusLabel(javax.swing.JLabel status)
setStatusLabel
in interface ParserInterface
public java.lang.StringBuffer resolveVariable(java.lang.StringBuffer expression) throws java.lang.Exception
java.lang.Exception
public static final void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |