qat.gui
Interface QATInterface

All Known Implementing Classes:
QAT

public interface QATInterface

This class is the main object of the GUI for the test harness. All other gui objects are used by or contained in this object.

Version:
%W %E
Author:
webhiker

Method Summary
 void firePropertiesChanged(java.util.Properties properties)
          This indicates the proejct properties have changed, and they will be reloaded.
 javax.swing.JFrame getOwnerHandle()
          Returns a handle to the JFrame object of the QAT for use in displaying or creating modal dialogs within the same Swing Thread context as QAT.
 TestSpecification getSelectedTest()
          Returns the currectly selected test, or the first one of more than one is selected.
 void loadProject(java.lang.String fileName)
          Loads the project named in fileName.
 void parseSelectedTests()
          Reparses only the selected tests.
 void parseTest(TestTreeNode testNode, ParserInterface parser)
          Reparses all tests from this node.
 void parseTests()
          Reloads all the tests starting from the TESTPATH root.
 boolean runFailedTests()
          This method runs all tests with status FAILED, returning false if none were run for some reason (such as none exist etc).
 boolean runNotRunTests()
          This method runs all tests with status NOTRUN, returning false if none were run for some reason (such as none exist etc).
 boolean runPassedTests()
          This method runs all tests with status PASSED, returning false if none were run for some reason (such as none exist etc).
 void runSelectedTests()
          Run currently selected tests.
 boolean runTestsWithStatus(int status)
          This method runs all tests with matching status, returning false if none were run for some reason (such as none exist etc).
 boolean runUnresolvedTests()
          This method runs all tests with status UNRESOLVED, returning false if none were run for some reason (such as none exist etc).
 void saveProject(java.lang.String fileName, boolean quiet)
          Save the current project to the specified fileName.
 void selectAll()
          Selects all the tests in the tree.
 void stopTestRun()
          Stops the current test run.
 void updateStatus(java.lang.String msg)
          This form automatically calculates all the values required to display the entire test tree results.
 

Method Detail

loadProject

public void loadProject(java.lang.String fileName)
                 throws java.io.IOException
Loads the project named in fileName.

Parameters:
fileName - - name of the project to load.
Throws:
java.io.IOException

saveProject

public void saveProject(java.lang.String fileName,
                        boolean quiet)
Save the current project to the specified fileName.

Parameters:
quiet - - if true, no status dialogs will be displayed to monitor save progress.

firePropertiesChanged

public void firePropertiesChanged(java.util.Properties properties)
This indicates the proejct properties have changed, and they will be reloaded.


updateStatus

public void updateStatus(java.lang.String msg)
This form automatically calculates all the values required to display the entire test tree results.


parseTest

public void parseTest(TestTreeNode testNode,
                      ParserInterface parser)
Reparses all tests from this node. Used by the NodeMenu object.


parseTests

public void parseTests()
Reloads all the tests starting from the TESTPATH root.


parseSelectedTests

public void parseSelectedTests()
Reparses only the selected tests.


stopTestRun

public void stopTestRun()
Stops the current test run.


selectAll

public void selectAll()
Selects all the tests in the tree.


getSelectedTest

public TestSpecification getSelectedTest()
Returns the currectly selected test, or the first one of more than one is selected.


runPassedTests

public boolean runPassedTests()
This method runs all tests with status PASSED, returning false if none were run for some reason (such as none exist etc). Used by the Http interface.


runFailedTests

public boolean runFailedTests()
This method runs all tests with status FAILED, returning false if none were run for some reason (such as none exist etc). Used by the Http interface.


runUnresolvedTests

public boolean runUnresolvedTests()
This method runs all tests with status UNRESOLVED, returning false if none were run for some reason (such as none exist etc). Used by the Http interface.


runNotRunTests

public boolean runNotRunTests()
This method runs all tests with status NOTRUN, returning false if none were run for some reason (such as none exist etc). Used by the Http interface.


runTestsWithStatus

public boolean runTestsWithStatus(int status)
This method runs all tests with matching status, returning false if none were run for some reason (such as none exist etc). Used by the Http interface.


runSelectedTests

public void runSelectedTests()
Run currently selected tests.


getOwnerHandle

public javax.swing.JFrame getOwnerHandle()
Returns a handle to the JFrame object of the QAT for use in displaying or creating modal dialogs within the same Swing Thread context as QAT.



See QAT project for licensing details