qat.gui
Class TestSpecification

java.lang.Object
  extended byqat.gui.TestSpecification

public class TestSpecification
extends java.lang.Object


Constructor Summary
TestSpecification(java.io.ObjectInputStream in)
           
TestSpecification(java.io.ObjectInputStream in, java.lang.String version)
           
TestSpecification(java.lang.String path)
           
 
Method Summary
 void clearTraceFiles(java.lang.String projectResultsDirectory)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getEnvironmentTraceFileName(java.lang.String projectResultsDirectory, java.lang.String commandID)
           
 java.lang.String[] getIncludeMiscList()
          This method returns a list of all other files that were used to resolve this file.
 java.lang.String[] getIncludePropList()
          This method returns a list of all properties files that were used to resolve this file.
 java.lang.String[] getKeyWords()
           
 java.lang.String getParserTraceFileName(java.lang.String projectResultsDirectory)
           
 int getStatus()
          This method gets the status of this test.
 java.lang.String getStatusString()
           
static java.lang.String getStatusString(int s)
           
 java.lang.String getStdErrTraceFileName(java.lang.String projectResultsDirectory, java.lang.String commandID)
           
 java.lang.String getStdOutTraceFileName(java.lang.String projectResultsDirectory, java.lang.String commandID)
           
 java.lang.String getTestAuthor()
          This is the Author of the test as it will appear in the harness test tree.
 java.lang.String getTestBugInfo()
          This is the BugInfo of the test as it will appear in the harness test tree.
 java.lang.String getTestDescription()
          This is the Description of the test as it will appear in the harness test tree tooltip.
 java.lang.String getTestName()
          This is the name of the test as it will appear in the harness test tree.
 java.lang.String getTestSpecPath()
           
 java.lang.String[] getViewOutputList()
          Returns a list of all the GETTRACE commands used in this qash file.
 void interrupt()
           
 void parseTest(java.lang.String projectResultsDirectory, java.util.Properties defaultProperties, ParserInterface parser)
           
 void readData(java.io.ObjectInputStream in, java.lang.String version)
           
 void runTest(java.lang.String projectResultsDirectory, java.util.Properties defaultProperties, ParserInterface parser)
           
 void setStatus(int s)
          This method sets the status of this test.
 java.lang.String toString()
          This is the label painted on the test tree.
 void writeData(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestSpecification

public TestSpecification(java.lang.String path)

TestSpecification

public TestSpecification(java.io.ObjectInputStream in,
                         java.lang.String version)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException

TestSpecification

public TestSpecification(java.io.ObjectInputStream in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Method Detail

equals

public boolean equals(java.lang.Object o)

getTestSpecPath

public java.lang.String getTestSpecPath()

parseTest

public void parseTest(java.lang.String projectResultsDirectory,
                      java.util.Properties defaultProperties,
                      ParserInterface parser)

runTest

public void runTest(java.lang.String projectResultsDirectory,
                    java.util.Properties defaultProperties,
                    ParserInterface parser)

getTestName

public java.lang.String getTestName()
This is the name of the test as it will appear in the harness test tree.


getTestDescription

public java.lang.String getTestDescription()
This is the Description of the test as it will appear in the harness test tree tooltip.


getTestAuthor

public java.lang.String getTestAuthor()
This is the Author of the test as it will appear in the harness test tree.


getTestBugInfo

public java.lang.String getTestBugInfo()
This is the BugInfo of the test as it will appear in the harness test tree.


getKeyWords

public java.lang.String[] getKeyWords()

getIncludePropList

public java.lang.String[] getIncludePropList()
This method returns a list of all properties files that were used to resolve this file.


getIncludeMiscList

public java.lang.String[] getIncludeMiscList()
This method returns a list of all other files that were used to resolve this file.


getViewOutputList

public java.lang.String[] getViewOutputList()
Returns a list of all the GETTRACE commands used in this qash file.


getStatus

public int getStatus()
This method gets the status of this test. Returns PASSED, FAILED, UNRESOLVED, RUNNING or NOTRUN.


getStatusString

public static java.lang.String getStatusString(int s)

getStatusString

public java.lang.String getStatusString()

setStatus

public void setStatus(int s)
This method sets the status of this test. s should be one of PASSED, FAILED, UNRESOLVED or NOTRUN.


toString

public java.lang.String toString()
This is the label painted on the test tree. I remove the quotation marks and spaces to make it prettier.


interrupt

public void interrupt()

clearTraceFiles

public void clearTraceFiles(java.lang.String projectResultsDirectory)

getEnvironmentTraceFileName

public java.lang.String getEnvironmentTraceFileName(java.lang.String projectResultsDirectory,
                                                    java.lang.String commandID)

getStdOutTraceFileName

public java.lang.String getStdOutTraceFileName(java.lang.String projectResultsDirectory,
                                               java.lang.String commandID)

getStdErrTraceFileName

public java.lang.String getStdErrTraceFileName(java.lang.String projectResultsDirectory,
                                               java.lang.String commandID)

getParserTraceFileName

public java.lang.String getParserTraceFileName(java.lang.String projectResultsDirectory)

readData

public void readData(java.io.ObjectInputStream in,
                     java.lang.String version)
              throws java.io.IOException,
                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeData

public void writeData(java.io.ObjectOutputStream out)
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException


See QAT project for licensing details