Class ExecTool

All Implemented Interfaces:
BasicSession.OrderedObserver, ExecModel, Session.Observer, ImageObserver, MenuContainer, Serializable, Accessible

public class ExecTool extends Tool implements ExecModel, BasicSession.OrderedObserver
See Also:
  • Constructor Details

  • Method Details

    • createContextManager

      public static ContextManager createContextManager(TestSuite ts)
    • getUIF

      public UIFactory getUIF()
    • getMenuBar

      public JMenuBar getMenuBar()
      Description copied from class: Tool
      Get the menu bar for a tool. This should just contain the tool-specific menus. The desktop will automatically add and display the standard menus on the menu bar.
      Specified by:
      getMenuBar in class Tool
      Returns:
      a menu bar containing tool-specific menus
    • getToolBar

      protected JToolBar getToolBar()
    • setVisible

      public void setVisible(boolean f)
      Overrides:
      setVisible in class JComponent
    • initGUI

      protected void initGUI()
    • save

      protected void save(Map<String,String> m)
      Description copied from class: Tool
      Save information about a tool in a map, so that the tool can be restored in a later invocation of JT Harness. The tool must also implement the following method public static Tool restore(Map m) which will be invoked to recreate the tool.
      Specified by:
      save in class Tool
      Parameters:
      m - the map in which to store the significant state of the tool
    • restore

      protected void restore(Map<String,String> m)
      Description copied from class: Tool
      Restore information about a tool from a map, and configure the tool according this information.
      Specified by:
      restore in class Tool
      Parameters:
      m - the map in which to store the significant state of the tool
    • dispose

      public void dispose()
      Description copied from class: Tool
      Release any resources this tool may be referencing. This is for "destroying" this tool instance.
      Overrides:
      dispose in class Tool
    • getTestSuite

      public TestSuite getTestSuite()
      Specified by:
      getTestSuite in interface ExecModel
    • getLoadedTestSuites

      public TestSuite[] getLoadedTestSuites()
      Description copied from class: Tool
      Get a list of any test suites that are being used by this tool.
      Overrides:
      getLoadedTestSuites in class Tool
      Returns:
      Array of 1 element - the current testSuite
    • getWorkDirectory

      public WorkDirectory getWorkDirectory()
      Specified by:
      getWorkDirectory in interface ExecModel
    • getInterviewParameters

      public InterviewParameters getInterviewParameters()
      Specified by:
      getInterviewParameters in interface ExecModel
    • getFilterConfig

      public FilterConfig getFilterConfig()
      Specified by:
      getFilterConfig in interface ExecModel
    • getContextManager

      public ContextManager getContextManager()
      Specified by:
      getContextManager in interface ExecModel
    • getActiveTestResultTable

      public TestResultTable getActiveTestResultTable()
      Description copied from interface: ExecModel
      Get the test result table currently in use for display. This value provides a temporary answer if the work directory does not exist yet. If a work directory is available, the query is forwarded to that object.
      Specified by:
      getActiveTestResultTable in interface ExecModel
      Returns:
      the test result table currently in use for display.
    • update

      public void update(WorkDirectory wd) throws Session.Fault
      Invoked when manager orders to use new wd.
      Parameters:
      wd -
      Throws:
      Session.Fault
      See Also:
    • update

      public void update(WorkDirectory wd, boolean updateConfig) throws Session.Fault
      Invoked when manager orders to use new wd.
      Parameters:
      wd - Work dir to update.
      updateConfig - - hint whether to reload the configuration from disk
      Throws:
      Session.Fault
    • update

      public void update(InterviewParameters ip) throws Session.Fault
      Invoked when manager orders to use new ip
      Parameters:
      ip -
      Throws:
      Session.Fault
    • updated

      public void updated(Session.Event e)
      Session.Observer interface method
      Specified by:
      updated in interface Session.Observer
      Parameters:
      e -
    • order

      public int order()
      BasicSession.OrderedObserver interface method.
      Specified by:
      order in interface BasicSession.OrderedObserver
    • showWorkDirDialog

      public void showWorkDirDialog(boolean allowTemplates)
      Specified by:
      showWorkDirDialog in interface ExecModel
    • showConfigEditor

      public void showConfigEditor(boolean runTests)
      Description copied from interface: ExecModel
      Show the configuration editor for this tool, and optionally run the tests defined by the configuration when the editor is closed.
      Specified by:
      showConfigEditor in interface ExecModel
      Parameters:
      runTests - true if the tests should automatically be run when the user closes the configuration editor, and false otherwise.
    • showTemplateEditor

      public void showTemplateEditor()
      Description copied from interface: ExecModel
      Show the configuration editor for this tool with current template
      Specified by:
      showTemplateEditor in interface ExecModel
    • showConfigEditor

      public void showConfigEditor()
      Invoked after QSW
    • runTests

      public void runTests()
      Invoked after QSW
    • runTests

      public void runTests(String... urls)
      Description copied from interface: ExecModel
      Run specified tests.
      Specified by:
      runTests in interface ExecModel
      Parameters:
      urls - These names may either be paths to folders or test names. Empty string value in the array indicates that the whole test suite should be run.
    • showMessage

      public void showMessage(ResourceBundle msgs, String key)
      Specified by:
      showMessage in interface ExecModel
    • printSetup

      public void printSetup()
      Specified by:
      printSetup in interface ExecModel
    • print

      public void print(Printable p)
      Specified by:
      print in interface ExecModel
    • setWorkDir

      public void setWorkDir(WorkDirectory wd, boolean addToFileHistory)
      Specified by:
      setWorkDir in interface ExecModel
    • configure

      public void configure()
      Causes a series of actions to be performed to complete configuration.
      Specified by:
      configure in interface ExecModel
    • isConfiguring

      public boolean isConfiguring()
      Description copied from interface: ExecModel
      Returns true if the model is in the configuration stage, user is either selecting work directory or editing configuration. One can relay on this method to disable/enable some actions.
      Specified by:
      isConfiguring in interface ExecModel
      Returns:
      true if configuring is in progress at the moment.
    • getExecToolManager

      public ExecToolManager getExecToolManager()
      Specified by:
      getExecToolManager in interface ExecModel
    • showQuickStartWizard

      public void showQuickStartWizard()
    • isQuickStartWizardShowing

      public boolean isQuickStartWizardShowing()