com.webmbt.plugin
Class SeqOutPlugin

java.lang.Object
  extended by com.webmbt.plugin.PluginAncestor
      extended by com.webmbt.plugin.SeqOutPlugin
All Implemented Interfaces:
MScriptInterface

public class SeqOutPlugin
extends PluginAncestor

writes mscript to seqout


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webmbt.plugin.MScriptInterface
MScriptInterface.MSCRIPT_METHOD
 
Constructor Summary
SeqOutPlugin()
           
 
Method Summary
 void addCustomField(java.lang.String fieldName_p, java.lang.String fieldValue_p)
          adds a custom field to the seqout.
 java.lang.String addOsCmdLink(java.lang.String osCmd_p, java.lang.String cmdName_p)
          adds a anchor to run an OS command on a TestOptimal server when clicked.
 java.lang.String click(java.lang.String locator_p)
          simulate click on the element.
 java.lang.String click(java.lang.String locator_p, java.lang.String shiftCtrlAlt_p)
          simulate click on the element with option of holding down shift, ctrl or alt key.
 java.lang.String click(java.lang.String locator_p, java.lang.String coordX_p, java.lang.String coordY_p)
          simulate click on the element that supports coordinates, for example an image.
 void close()
          closes the plugin, before it does that, it generates the test case documents with the format specified.
 java.lang.String containsText(java.lang.String text_p)
          returns true if current page contains the text passed in.
 java.lang.String count(java.lang.String locator_p)
          returns count of number of objects for the element locator passed in.
 java.lang.String doubleClick(java.lang.String locator_p)
          double click on the element.
 java.lang.String dragAndDrop(java.lang.String fromLocator_p, java.lang.String toLocator_p)
          release mouse while on the element locator_p
 java.lang.String getAlertText()
          returns the message in the alert popup dialog if present.
 java.lang.String getAttr(java.lang.String locator_p, java.lang.String attrName_p)
          Returns the value of HTML attribute value defined in the element.
 java.lang.String getConfirmText()
          returns the message in the confirm popup dialog if present.
 java.lang.String getCookie(java.lang.String cookieName_p)
          returns the value of the cookie.
 java.lang.String getItemFormat(java.lang.String tagMethod)
           
 java.lang.String getPluginID()
          INTERNAL USE ONLY.
 java.lang.String getText(java.lang.String locator_p)
          Returns the text of the element.
 java.lang.String getTitle()
          returns the title of the current window/page.
 java.lang.String getValue(java.lang.String locator_p)
           
 void init(com.webmbt.scxml.ScxmlNode scxmlNode_p, java.lang.String[] pluginParams_p)
          performs the plugin specific initialization.
 java.lang.String isAlertPresent()
          retusn true if the alert dialog has been displayed(triggered).
 java.lang.String isChecked(java.lang.String locator_p)
          returns true if the locator_p is checked: radio button or checkbox only.
 java.lang.String isConfirmPresent()
          retusn true if the confirm dialog has been displayed(triggered).
 java.lang.String isDisabled(java.lang.String locator_p)
          returns true if any of the elements found is disabled.
 boolean isError(java.lang.Exception e_p)
          INTERNAL USE ONLY.
 java.lang.String isPresent(java.lang.String locator_p)
          returns true if the element exists in the current page/frame/window.
 java.lang.String isVisible(java.lang.String locator_p)
          returns true if any of the elements is visible.
 java.lang.String js(java.lang.String winLocator_p, java.lang.String javascript_p)
          executes javascript passed in on the window identified in winLocator_p.
 java.lang.String mouseDown(java.lang.String locator_p)
          trigger mouse down event on element locator_p
 java.lang.String mouseOver(java.lang.String locator_p)
          trigger mouse over event on the element locator_p
 java.lang.String mouseUp(java.lang.String locator_p)
          trigger mouse up event on the element locator_p
 void noOut(java.lang.String msg_p)
          forces not to generate any output.
 java.lang.String refresh()
           
 java.lang.String replaceToken(java.lang.String format, java.lang.String token, java.lang.String replaceString)
           
 java.lang.String rightClick(java.lang.String locator_p)
          rightClick on the element
 java.lang.String selectFrame(java.lang.String frameName_p)
          select the named frame as the current default frame.
 java.lang.String selectOption(java.lang.String locator_p, java.lang.String optionLocator_p)
          selects the option
 java.lang.String selectWindow(java.lang.String windowName_p)
          select the named window as the current default window.
 void seqout(java.lang.String msg_p)
          writes the message to the SeqOut output stream (xml).
 java.lang.String setCheckBox(java.lang.String locator_p, java.lang.String checked_p)
          sets the checkbox
 void setFormatField(java.lang.String fieldName_p, java.lang.String fieldValue_p)
          sets the format field to override the definition from seqout.fmt file.
 void setInitParams(java.lang.String[] paramList_p)
          INTERNAL USE ONLY.
 void setOsCmdHostPort(java.lang.String hostPort_p)
          sets the host and port# of TestOptimal server to execute osCmd.
 void setPathFlag(java.lang.String flag_p)
          either to prevent the current test case (path) from being removed as duplicates or forces the current test case (path) to be removed.
 java.lang.String setRadioButton(java.lang.String locator_p, java.lang.String checked_p)
          sets the radio button
 java.lang.String setupAlert()
          prepare system to handle alert popup.
 java.lang.String setupConfirmResponse(java.lang.String bool_p)
          prepare system to handle the confirmation dialog with OK/Yes or Cancel/No.
static void shutdown()
           
 java.lang.String sizeOf(java.lang.String locator_p)
          returns the number options in the select
 java.lang.String snapScreen(java.lang.String fileName_p)
          INTERNAL USE ONLY.
 void start()
          INTERNAL USE ONLY.
 java.lang.String type(java.lang.String locator_p, java.lang.String keyString_p)
          type the string to the element if the element is an input field.
 java.lang.String type(java.lang.String locator_p, java.lang.String shiftCtrlAlt_p, java.lang.String keyString_p)
          type the string to the element with the option to have shift/control/alt key pressed.
 java.lang.String waitForPageToLoad()
          INTERNAL USE ONLY.
 void waitForPageToLoad(java.lang.String timeoutMillis_p)
          Waits until the page (Html dom) is fully loaded.
 java.lang.String webAuth(java.lang.String authType_p, java.lang.String userID_p, java.lang.String password_p, java.lang.String waitMillis_p, java.lang.String gotoURL_p)
          performs HTTP basic authentication.
 void write(com.webmbt.mscript.ActionScript script)
           
 void write(com.webmbt.mscript.AssertScript script)
          write tags
 void write(com.webmbt.mscript.ElseScript script)
           
 void write(com.webmbt.mscript.IfScript script)
           
 void write(com.webmbt.mscript.LogScript script)
           
 void write(java.lang.String tagName_p, java.lang.String[] params_p)
           
 void write(com.webmbt.mscript.ThenScript script)
           
 void write(com.webmbt.mscript.WhileScript script)
           
 void writeTagCheck(java.lang.String reqTag_p, java.lang.String[] params_p)
           
 void writeTriggerBegin(com.webmbt.ScriptDesc script_p)
           
 void writeTriggerEnd(com.webmbt.ScriptDesc script_p)
           
 
Methods inherited from class com.webmbt.plugin.PluginAncestor
addException, getCurScript, getData, getData, getDataMgr, getDataSetRowNum, getInitParams, getMethodList, getMScriptAPI, getMScriptMethodList, getNativeMethod, getNativePluginObj, getPathVar, getScriptExecutor, getVar, initialize, isReady, next, registerVarChangeListener, replaceEscapeChar, rewind, setData, setPathVar, setReady, setVar, snapScreen, uiLocatorMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeqOutPlugin

public SeqOutPlugin()
Method Detail

setInitParams

public void setInitParams(java.lang.String[] paramList_p)
                   throws java.lang.Exception
Description copied from class: PluginAncestor
INTERNAL USE ONLY.

Overrides:
setInitParams in class PluginAncestor
Throws:
java.lang.Exception

init

public void init(com.webmbt.scxml.ScxmlNode scxmlNode_p,
                 java.lang.String[] pluginParams_p)
          throws java.lang.Exception
Description copied from class: PluginAncestor
performs the plugin specific initialization. Decendant must implement this method.

Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Description copied from class: PluginAncestor
INTERNAL USE ONLY. This usually involves starting up AUT (app under testing).

Specified by:
start in class PluginAncestor
Throws:
java.lang.Exception

close

public void close()
closes the plugin, before it does that, it generates the test case documents with the format specified.

Specified by:
close in class PluginAncestor

shutdown

public static void shutdown()

writeTriggerBegin

public void writeTriggerBegin(com.webmbt.ScriptDesc script_p)
                       throws java.lang.Exception
Throws:
java.lang.Exception

writeTriggerEnd

public void writeTriggerEnd(com.webmbt.ScriptDesc script_p)
                     throws java.lang.Exception
Throws:
java.lang.Exception

snapScreen

public java.lang.String snapScreen(java.lang.String fileName_p)
                            throws java.lang.Exception
Description copied from class: PluginAncestor
INTERNAL USE ONLY. snap the current testing app browser under testing (AUT) and save the screen in png into the file passed in.

Specified by:
snapScreen in class PluginAncestor
Throws:
java.lang.Exception

getPluginID

public java.lang.String getPluginID()
Description copied from class: PluginAncestor
INTERNAL USE ONLY. Returns the unique ID assigned to the plugin. This ID is not governed, that is each plugin can make up its own plugin id and as long as no other plugins currently registered/configured has the same ID, the id is good.

Specified by:
getPluginID in class PluginAncestor
Returns:

isError

public boolean isError(java.lang.Exception e_p)
Description copied from class: PluginAncestor
INTERNAL USE ONLY. returns true if the exception passed in is an error. returns false if the exception is an application exception and thus should not stop the MBT execution.

Specified by:
isError in class PluginAncestor
Returns:

waitForPageToLoad

public java.lang.String waitForPageToLoad()
Description copied from class: PluginAncestor
INTERNAL USE ONLY. wait until the page is completely loaded.

Specified by:
waitForPageToLoad in class PluginAncestor

waitForPageToLoad

public void waitForPageToLoad(java.lang.String timeoutMillis_p)
                       throws com.webmbt.MBTException
Waits until the page (Html dom) is fully loaded. This does not include the dynamic content created by javascript and ajax call.

Parameters:
timeoutMillis_p - max number of milliseconds to wait until it timesout.
Throws:
com.webmbt.MBTException

getItemFormat

public java.lang.String getItemFormat(java.lang.String tagMethod)

replaceToken

public java.lang.String replaceToken(java.lang.String format,
                                     java.lang.String token,
                                     java.lang.String replaceString)

write

public void write(com.webmbt.mscript.ActionScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.AssertScript script)
           throws java.lang.Exception
write tags

Parameters:
assertScript -
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.IfScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.ThenScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.ElseScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.WhileScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(com.webmbt.mscript.LogScript script)
           throws java.lang.Exception
Throws:
java.lang.Exception

writeTagCheck

public void writeTagCheck(java.lang.String reqTag_p,
                          java.lang.String[] params_p)
                   throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write(java.lang.String tagName_p,
                  java.lang.String[] params_p)
           throws java.lang.Exception
Throws:
java.lang.Exception

getValue

public java.lang.String getValue(java.lang.String locator_p)
                          throws com.webmbt.MBTException
Throws:
com.webmbt.MBTException

getText

public java.lang.String getText(java.lang.String locator_p)
                         throws com.webmbt.MBTException
Returns the text of the element. If multiple elements found, return a String with all text strung together separated by semicolon.

Example: <log msg="$getText('id=rowTitle')"/>

Throws:
com.webmbt.MBTException

isPresent

public java.lang.String isPresent(java.lang.String locator_p)
                           throws com.webmbt.MBTException
returns true if the element exists in the current page/frame/window.

Example:

<if val1="$isPresent('checkbox1')" op="eq" val2="true"/>

  <log msg="checkbox1 is present on this page">

</if>

Throws:
com.webmbt.MBTException

count

public java.lang.String count(java.lang.String locator_p)
                       throws com.webmbt.MBTException
returns count of number of objects for the element locator passed in.

Example: <log msg="$found $count('name=paymentType') payment types on the screen"/>

Throws:
com.webmbt.MBTException

isDisabled

public java.lang.String isDisabled(java.lang.String locator_p)
                            throws com.webmbt.MBTException
returns true if any of the elements found is disabled.

Example: <log msg="Field F1 disabled?: $isDisabled('id=F1')."/>

Throws:
com.webmbt.MBTException

isVisible

public java.lang.String isVisible(java.lang.String locator_p)
                           throws com.webmbt.MBTException
returns true if any of the elements is visible.

Example: <log msg="Field F1 visible?: $isVisible('id=F1')."/>

Throws:
com.webmbt.MBTException

getAttr

public java.lang.String getAttr(java.lang.String locator_p,
                                java.lang.String attrName_p)
                         throws com.webmbt.MBTException
Returns the value of HTML attribute value defined in the element.

Example: <log msg="Field attribute: $getAttr('id=F1','class')."/>

Each type of HTML element has a set of attributes but it also allows user defined attributes. For example "table" element has these attributes "id", "name", "width", "height", "class", etc. These are standard attributes to define a table in HTML. You may add any user attributes like "customerNumber", "orderNumber", "firstName", etc. These user defined attributes are also accessible by getAttr().

Throws:
com.webmbt.MBTException
See Also:
http://www.w3schools.com/tags/default.asp

click

public java.lang.String click(java.lang.String locator_p)
                       throws com.webmbt.MBTException
simulate click on the element.

Example: <action code="$click('id=F1')"/>

Throws:
com.webmbt.MBTException

click

public java.lang.String click(java.lang.String locator_p,
                              java.lang.String shiftCtrlAlt_p)
                       throws com.webmbt.MBTException
simulate click on the element with option of holding down shift, ctrl or alt key.

Example: <action code="$click('id=F1','S')"/>

Parameters:
shiftCtrlAlt_p - S for shift, C for ctrl, A for alt, for example "SA" for holding down Shift and Alt key.
locator_p -
shiftCtrlAlt_p -
Throws:
com.webmbt.MBTException

click

public java.lang.String click(java.lang.String locator_p,
                              java.lang.String coordX_p,
                              java.lang.String coordY_p)
                       throws com.webmbt.MBTException
simulate click on the element that supports coordinates, for example an image.

Example: <action code="$click('id=F1','100','200')"/>

Notice that even though coordX_p and coordY_p are integer parameters, they must be enclosed by a set of single quote.

Parameters:
locator_p -
coordX_p -
coordY_p -
Throws:
com.webmbt.MBTException

doubleClick

public java.lang.String doubleClick(java.lang.String locator_p)
                             throws com.webmbt.MBTException
double click on the element.

Example: <action code="$doubleClick('id=F1')"/>

Throws:
com.webmbt.MBTException

rightClick

public java.lang.String rightClick(java.lang.String locator_p)
                            throws com.webmbt.MBTException
rightClick on the element

Example: <action code="$rightClick('id=F1')"/>

Throws:
com.webmbt.MBTException

type

public java.lang.String type(java.lang.String locator_p,
                             java.lang.String keyString_p)
                      throws com.webmbt.MBTException
type the string to the element if the element is an input field.

Example: <action code="$type('id=F1','abc')"/>

Throws:
com.webmbt.MBTException

type

public java.lang.String type(java.lang.String locator_p,
                             java.lang.String shiftCtrlAlt_p,
                             java.lang.String keyString_p)
                      throws com.webmbt.MBTException
type the string to the element with the option to have shift/control/alt key pressed.

Example: <action code="$type('id=F1','S','abc')"/>

Parameters:
locator_p -
shiftCtrlAlt_p - include char "c" for control key, "a" for alt key and "s" for shift key. For example "cs" to have control and shift keys pressed.
keyString_p -
Throws:
com.webmbt.MBTException

mouseOver

public java.lang.String mouseOver(java.lang.String locator_p)
                           throws com.webmbt.MBTException
trigger mouse over event on the element locator_p

Example: <action code="$mouseOver('id=F1')"/>

Throws:
com.webmbt.MBTException

mouseDown

public java.lang.String mouseDown(java.lang.String locator_p)
                           throws com.webmbt.MBTException
trigger mouse down event on element locator_p

Example: <action code="$mouseDown('id=F1')"/>

Parameters:
locator_p -
Throws:
com.webmbt.MBTException

mouseUp

public java.lang.String mouseUp(java.lang.String locator_p)
                         throws com.webmbt.MBTException
trigger mouse up event on the element locator_p

Example: <action code="$mouseUp('id=F1')"/>

Parameters:
locator_p -
Throws:
com.webmbt.MBTException

dragAndDrop

public java.lang.String dragAndDrop(java.lang.String fromLocator_p,
                                    java.lang.String toLocator_p)
                             throws com.webmbt.MBTException
release mouse while on the element locator_p

Example: <action code="$dragAndDrop('id=F1','id=F2')"/>

Parameters:
fromLocator_p -
toLocator_p -
Throws:
com.webmbt.MBTException

selectOption

public java.lang.String selectOption(java.lang.String locator_p,
                                     java.lang.String optionLocator_p)
                              throws com.webmbt.MBTException
selects the option

Example: <action code="$selectOption('id=selectF1','value=2')"/>

Parameters:
locator_p - locator for the element
optionLocator_p - locator for the option to be selected.
  • label=labelPattern: matches options based on their labels, i.e. the visible text. (This is the default.)

    For example, label=regexp:^[Oo]ther

  • value=valuePattern: matches options based on their values.

    For example, value=other

  • id=id: matches options based on their ids.

    id=option1

  • index=index: matches an option based on its index (offset from zero).

    index=2

Throws:
com.webmbt.MBTException

setCheckBox

public java.lang.String setCheckBox(java.lang.String locator_p,
                                    java.lang.String checked_p)
                             throws com.webmbt.MBTException
sets the checkbox

Example: <action code="$setCheckBox('id=F1','true')"/>

Parameters:
locator_p - locator to the checkbox element
checked_p - true or false
Throws:
com.webmbt.MBTException

isChecked

public java.lang.String isChecked(java.lang.String locator_p)
                           throws com.webmbt.MBTException
returns true if the locator_p is checked: radio button or checkbox only.

Example: <log msg="The checkbox F1 checked? $isChecked('id=F1')"/>

Parameters:
locator_p - locator to the checkbox
Throws:
com.webmbt.MBTException

setRadioButton

public java.lang.String setRadioButton(java.lang.String locator_p,
                                       java.lang.String checked_p)
                                throws com.webmbt.MBTException
sets the radio button

Example: <action code="$setRadioButton('id=F1','true')"/>

Parameters:
locator_p - locator to the radiobutton element
checked_p - true or false
Throws:
com.webmbt.MBTException

getTitle

public java.lang.String getTitle()
                          throws com.webmbt.MBTException
returns the title of the current window/page.

Example: <log msg="Page title is: $getTitle()"/>

Throws:
com.webmbt.MBTException

containsText

public java.lang.String containsText(java.lang.String text_p)
                              throws com.webmbt.MBTException
returns true if current page contains the text passed in. The text must be static text string only.

Example: <log msg="Page contains text XXXX? $containsText('XXXX')"/>

Throws:
com.webmbt.MBTException

selectWindow

public java.lang.String selectWindow(java.lang.String windowName_p)
                              throws com.webmbt.MBTException
select the named window as the current default window.

Example: <action code="$selectWindow('mainWin')"/>

Parameters:
windowName_p - name of the window
Throws:
com.webmbt.MBTException

refresh

public java.lang.String refresh()

selectFrame

public java.lang.String selectFrame(java.lang.String frameName_p)
                             throws com.webmbt.MBTException
select the named frame as the current default frame.

Example: <action code="$selectFrame('frame1')"/>

Parameters:
frameName_p - name of the frame
Throws:
com.webmbt.MBTException

sizeOf

public java.lang.String sizeOf(java.lang.String locator_p)
                        throws com.webmbt.MBTException
returns the number options in the select

Throws:
com.webmbt.MBTException

getCookie

public java.lang.String getCookie(java.lang.String cookieName_p)
                           throws com.webmbt.MBTException
returns the value of the cookie.

Throws:
com.webmbt.MBTException

setupConfirmResponse

public java.lang.String setupConfirmResponse(java.lang.String bool_p)
                                      throws com.webmbt.MBTException
prepare system to handle the confirmation dialog with OK/Yes or Cancel/No. Call this function before the confirmation dialog opens up. It clears previous confirm dialog message if any. isConfirmPresent() must be called right after the action script which causes the confirm to show up. optionally you may call getConfirmText() after the isConfirmPresent() call.

Throws:
com.webmbt.MBTException

setupAlert

public java.lang.String setupAlert()
                            throws com.webmbt.MBTException
prepare system to handle alert popup. Call this function before the alert dialog opens up. It clears previous alert message if any. isAlertPresent() must be called right after the action script which causes the alert to show up. optionally you may call getAlertText() after the isAlertPresent() call.

Throws:
com.webmbt.MBTException

getAlertText

public java.lang.String getAlertText()
                              throws com.webmbt.MBTException
returns the message in the alert popup dialog if present. null if not.

Returns:
Throws:
com.webmbt.MBTException

getConfirmText

public java.lang.String getConfirmText()
                                throws com.webmbt.MBTException
returns the message in the confirm popup dialog if present. null if not.

Returns:
Throws:
com.webmbt.MBTException

isAlertPresent

public java.lang.String isAlertPresent()
                                throws com.webmbt.MBTException
retusn true if the alert dialog has been displayed(triggered).

Returns:
Throws:
com.webmbt.MBTException

isConfirmPresent

public java.lang.String isConfirmPresent()
                                  throws com.webmbt.MBTException
retusn true if the confirm dialog has been displayed(triggered). isConfirmPresent() must be called immediately after the action that trigger the confirm popup. optionally you can call getConfirmText().

Returns:
Throws:
com.webmbt.MBTException

js

public java.lang.String js(java.lang.String winLocator_p,
                           java.lang.String javascript_p)
                    throws com.webmbt.MBTException
executes javascript passed in on the window identified in winLocator_p.

Parameters:
winLocator_p - locator for the window where the javascript will be executed on. win=windowName. Null or blank to run on current (top) window.
javascript_p -
Returns:
blank (Selenium) or javascrpt return (HtmlUnit).
Throws:
com.webmbt.MBTException

webAuth

public java.lang.String webAuth(java.lang.String authType_p,
                                java.lang.String userID_p,
                                java.lang.String password_p,
                                java.lang.String waitMillis_p,
                                java.lang.String gotoURL_p)
                         throws java.lang.Exception
performs HTTP basic authentication.

Parameters:
authType_p - "HttpBasicAuth", more authentication types may be added in the future.
userID_p - user id/name
password_p - password
waitMillis_p - number of milliseconds to wait for the authentication to execute
gotoURL_p - AUT url
Throws:
java.lang.Exception
Since:
3.0.30

addCustomField

public void addCustomField(java.lang.String fieldName_p,
                           java.lang.String fieldValue_p)
adds a custom field to the seqout. Custom fields can be accessed / used by xsl style sheet.

For example, the following mScript adds a custom field later to be used in xsl:

Then in xsl, you would use this syntax to print the custom field:

This is equivalent to adding the following line to the seqout.fmt file except that using this mScript function is specific to each model while seqout.fmt is for all models. @myField=myVal

Note no duplication is checked.

Parameters:
fieldName_p - name of the field
fieldValue_p - value of the field

setFormatField

public void setFormatField(java.lang.String fieldName_p,
                           java.lang.String fieldValue_p)
sets the format field to override the definition from seqout.fmt file. It adds a new field if the field does not exist.

Parameters:
fieldName_p -
fieldValue_p -

setPathFlag

public void setPathFlag(java.lang.String flag_p)
either to prevent the current test case (path) from being removed as duplicates or forces the current test case (path) to be removed.

Be aware that a test case (path) consists of multiple transitions. Example: $setPathFlag('keep') or $setPathFlag('discard')

Parameters:
flag_p - either keep or discard.

seqout

public void seqout(java.lang.String msg_p)
writes the message to the SeqOut output stream (xml).

Example: $seqout('$get('var1')')

Parameters:
msg_p -

noOut

public void noOut(java.lang.String msg_p)
forces not to generate any output.

Example:

Parameters:
msg_p -

setOsCmdHostPort

public void setOsCmdHostPort(java.lang.String hostPort_p)
sets the host and port# of TestOptimal server to execute osCmd. The default is localhost:8888.

Example: $setOsCmdHostPort('localhost:8888')

Parameters:
hostPort_p -

addOsCmdLink

public java.lang.String addOsCmdLink(java.lang.String osCmd_p,
                                     java.lang.String cmdName_p)
adds a anchor to run an OS command on a TestOptimal server when clicked. Requires enableUnsecuredOsCmd=Y setting in config.properties.

Example: $addOsCmdLink('link name','abc.bat')

Parameters:
osCmd_p -
cmdName_p -
Returns:


Copyright © 2008. All Rights Reserved.