com.pushtotest.testmaker
Class Console

java.lang.Object
  extended by com.pushtotest.testmaker.Console
All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler

public class Console
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler

Central console to operate TestMaker


Method Summary
 void dorun(AgentScript as)
           
 org.armedbear.j.Editor getEditor()
           
static Console getInstance()
           
 javax.swing.DefaultListModel getListModel()
           
 boolean getLoadToTest()
           
 boolean getOutputMode()
           
 com.bitmechanic.maxq.ProxyServer getProxy()
          Returns the Proxy Recorder
 Transformer getTransformer()
          Dialog box to get details for transforming recorded tests to functional unit test scripts.
 Welcome getWelcome()
          Returns the Quick Start Helper window, aka Welcome
 javax.swing.ImageIcon loadIcon(java.lang.String name)
          loadIcon gets an icon from the jar file or current directory
 void newAction()
          Create a new agent using the New Agent Wizard found in com.pushtotest.testmaker.bui.NewAgentWizard.WizardGui;
 void openHelp()
          Opens the User Guide page
 void openSampleTestAgents()
          Opens Help to information on sample test agents
 void openSupportOptions()
          Opens Help to support options page
static boolean openURL(java.lang.String theurl)
          This is a call to BrowserOpener, a GPL library by Stephen Ostermiller at http://ostermiller.org/utils/Browser.html This opens the local browser and opens the URL.
 void pauseAction()
          Agent -> Pause
 void reportOutsideException(java.lang.Throwable ex)
          Implements an exception handler for the MaxQ proxy recorder
 void runAction()
           
 void saveState()
          Save state to the TestMaker.properties file
 void setChartpanel(javax.swing.JPanel chart)
           
 void setEditor(org.armedbear.j.Editor ed)
           
 void setListModel(javax.swing.DefaultListModel lm)
           
 void setLoadToTest(boolean loadValue)
           
 void setOutput(javax.swing.JTextArea out)
           
 void setOutputMode(boolean mode)
           
 void setRunningList(javax.swing.JList arl)
           
 void setTMFrame(TMFrame mytmf)
           
 void setTransformer(Transformer myt)
           
 void setWelcome(Welcome wel)
          Sets the Quick Start Helper window, aka Welcome
 void showHelp(java.lang.String doc)
           
 tcpmon showNetWorkMonitor()
          Instantiate the network monitor, or make the existing monitor visible
 void startController()
          Starts the controller
 void startFirefox()
          Start Firefox browser with TestGen4Web recorder
 void startProxyService()
          Starts the Agent Recorder proxy service
 void startSoapui()
          Start soapUI utility
 void stopAction()
          Agent -> Stop
 void uncaughtException(java.lang.Thread T, java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTransformer

public Transformer getTransformer()
Dialog box to get details for transforming recorded tests to functional unit test scripts.


setTransformer

public void setTransformer(Transformer myt)

setLoadToTest

public void setLoadToTest(boolean loadValue)

getLoadToTest

public boolean getLoadToTest()

uncaughtException

public void uncaughtException(java.lang.Thread T,
                              java.lang.Throwable e)
Specified by:
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler

getInstance

public static Console getInstance()

setEditor

public void setEditor(org.armedbear.j.Editor ed)

getEditor

public org.armedbear.j.Editor getEditor()

setListModel

public void setListModel(javax.swing.DefaultListModel lm)

getListModel

public javax.swing.DefaultListModel getListModel()

setRunningList

public void setRunningList(javax.swing.JList arl)

setOutput

public void setOutput(javax.swing.JTextArea out)

setChartpanel

public void setChartpanel(javax.swing.JPanel chart)

setOutputMode

public void setOutputMode(boolean mode)

getOutputMode

public boolean getOutputMode()

startController

public void startController()
Starts the controller


startProxyService

public void startProxyService()
Starts the Agent Recorder proxy service


getProxy

public com.bitmechanic.maxq.ProxyServer getProxy()
Returns the Proxy Recorder


reportOutsideException

public void reportOutsideException(java.lang.Throwable ex)
Implements an exception handler for the MaxQ proxy recorder


showNetWorkMonitor

public tcpmon showNetWorkMonitor()
Instantiate the network monitor, or make the existing monitor visible


showHelp

public void showHelp(java.lang.String doc)
              throws java.lang.Exception
Throws:
java.lang.Exception

loadIcon

public javax.swing.ImageIcon loadIcon(java.lang.String name)
loadIcon gets an icon from the jar file or current directory

Parameters:
name - Name for the icon

newAction

public void newAction()
Create a new agent using the New Agent Wizard found in com.pushtotest.testmaker.bui.NewAgentWizard.WizardGui;


runAction

public void runAction()

dorun

public void dorun(AgentScript as)

pauseAction

public void pauseAction()
Agent -> Pause


stopAction

public void stopAction()
Agent -> Stop


openSampleTestAgents

public void openSampleTestAgents()
Opens Help to information on sample test agents


openSupportOptions

public void openSupportOptions()
Opens Help to support options page


openHelp

public void openHelp()
Opens the User Guide page


openURL

public static boolean openURL(java.lang.String theurl)
This is a call to BrowserOpener, a GPL library by Stephen Ostermiller at http://ostermiller.org/utils/Browser.html This opens the local browser and opens the URL.


getWelcome

public Welcome getWelcome()
Returns the Quick Start Helper window, aka Welcome


setWelcome

public void setWelcome(Welcome wel)
Sets the Quick Start Helper window, aka Welcome


setTMFrame

public void setTMFrame(TMFrame mytmf)

saveState

public void saveState()
Save state to the TestMaker.properties file


startSoapui

public void startSoapui()
Start soapUI utility


startFirefox

public void startFirefox()
Start Firefox browser with TestGen4Web recorder