com.appperfect.functionaltester.script
Interface IScriptEngine

All Superinterfaces:
IDatabaseHandler, INotificationHandler, IParameterHandler

public interface IScriptEngine
extends IDatabaseHandler, INotificationHandler, IParameterHandler

An engine which is created as a global variable by the application to be used in the script file that controls the execution of the test in the script file.

A IScriptEngine object is initialised by the application and is available as a global variable in the script file with the name engine. Flow of the test is controlled by this engine. Web Test supports functional testing of web application. Group(s) can be added/deleted/edited from UI. An Action group is created and all the tasks (Browser/URL/Event) are recorded in this group

Tasks supported by Web Test are IBrowser, IUrl and Web/Win elements tasks. The following code fragment illustrates how to create a IBrowser task.

                 var browser = engine.createBrowser(1, 'Browser_1', 'http://localhost:8080/petstore');
 
The following code fragment illustrates how to create a IUrl task.
       var url = engine.createURL(2, 'http://localhost:8080/petstore', false);
 

Once a task is created, all its properties like think time, title, timeout period etc. can be initialised to proper values using appropriate apis exposed by individual tasks. The following code fragment illustrates how to set think time for an IBrowser task.

 browser.setThinkTime(1);
 
The following code fragment illustrates how to add attribute for an Web/Win element task.
       element.addAttribute('name', 'q', false, false);
 

Once a task is initialised it should be executed to fetch the results and process further. The following code fragment illustrates how to execute a browser task.

 var successful = engine.executeBrowser(browser);
 
The following code fragment illustrates how to execute a url task.
 var successful = engine.executeURL(url);
 

After execution of each task, it is must to call release method to release all the opened resources.

See Also:
IUrl, or com.appperfect.devcommon.script.WinObject

Field Summary
 
Fields inherited from interface com.appperfect.devcommon.script.IParameterHandler
Contains, EndsWith, Equals, GreaterThan, GreaterThanEqualTo, LessThan, LessThanEqualTo, Matches, NotContains, NotEndsWith, NotEquals, NotMatches, NotStartsWith, StartsWith
 
Method Summary
 IBrowser createBrowser(int id, java.lang.String sTitle, java.lang.String protocol, java.lang.String hostName, int port, java.lang.String uri)
 This method is used to create the IBrowser task.
 com.appperfect.devcommon.script.flexelement.FlexAccordion createFlexAccordion(int id, int iElementType)
 This method is used to create the FlexAccordion element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexAlert(int id, int iElementType)
 This method is used to create the FlexAlert element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexApplication(int id, int iElementType)
 This method is used to create the FlexApplication element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexAreaChart(int id, int iElementType)
 This method is used to create the FlexAreaChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexAreaSeries(int id, int iElementType)
 This method is used to create the FlexAreaSeries element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexAxisRenderer(int id, int iElementType)
 This method is used to create the FlexAxisRenderer element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexBarChart(int id, int iElementType)
 This method is used to create the FlexBarChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexBarSeries(int id, int iElementType)
 This method is used to create the FlexBarSeries element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexBox(int id, int iElementType)
 This method is used to create the FlexBox element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexBubbleSeries(int id, int iElementType)
 This method is used to create the FlexBubbleSeries element.
 com.appperfect.devcommon.script.flexelement.FlexButton createFlexButton(int id, int iElementType)
 This method is used to create the FlexButton element.
 com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexButtonBar(int id, int iElementType)
 This method is used to create the FlexButtonBar element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexCanvas(int id, int iElementType)
 This method is used to create the FlexCanvas element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexCartesianChart(int id, int iElementType)
 This method is used to create the FlexCartesianChart element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexChart(int id, int iElementType)
 This method is used to create the FlexChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartLegend createFlexChartLegend(int id, int iElementType)
 This method is used to create the FlexChartLegend element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexChartSeries(int id, int iElementType)
 This method is used to create the FlexChartSeries element.
 com.appperfect.devcommon.script.flexelement.FlexButton createFlexCheckBox(int id, int iElementType)
 This method is used to create the FlexCheckbox element.
 com.appperfect.devcommon.script.flexelement.FlexColorPicker createFlexColorPicker(int id, int iElementType)
 This method is used to create the FlexColorPicker element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexColumnChart(int id, int iElementType)
 This method is used to create the FlexColumnChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexColumnSeries(int id, int iElementType)
 This method is used to create the FlexColumnSeries element.
 com.appperfect.devcommon.script.flexelement.FlexComboBase createFlexComboBase(int id, int iElementType)
 This method is used to create the FlexComboBase element.
 com.appperfect.devcommon.script.flexelement.FlexComboBox createFlexComboBox(int id, int iElementType)
 This method is used to create the FlexComboBox element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexContainer(int id, int iElementType)
 This method is used to create the FlexContainer element.
 com.appperfect.devcommon.script.flexelement.FlexDataGrid createFlexDataGrid(int id, int iElementType)
 This method is used to create the FlexDataGrid element.
 com.appperfect.devcommon.script.flexelement.FlexDateChooser createFlexDateChooser(int id, int iElementType)
 This method is used to create the FlexDateChooser element.
 com.appperfect.devcommon.script.flexelement.FlexDateField createFlexDateField(int id, int iElementType)
 This method is used to create the FlexDateField element.
 com.appperfect.devcommon.script.flexelement.FlexDisplayObject createFlexDisplayObject(int id, int iElementType)
 This method is used to create the FlexDisplayObject element.
 com.appperfect.devcommon.script.flexelement.FlexDividedBox createFlexDividedBox(int id, int iElementType)
 This method is used to create the FlexDividedBox element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexForm(int id, int iElementType)
 This method is used to create the FlexForm element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexFormItem(int id, int iElementType)
 This method is used to create the FlexFormItem element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexHLOCChart(int id, int iElementType)
 This method is used to create the FlexHLOCChart element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexImage(int id, int iElementType)
 This method is used to create the FlexImage element.
 com.appperfect.devcommon.script.flexelement.FlexLabel createFlexLabel(int id, int iElementType)
 This method is used to create the FlexLabel element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexLineChart(int id, int iElementType)
 This method is used to create the FlexLineChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexLineSeries(int id, int iElementType)
 This method is used to create the FlexLineSeries element.
 com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexLinkBar(int id, int iElementType)
 This method is used to create the FlexLinkBar element.
 com.appperfect.devcommon.script.flexelement.FlexList createFlexList(int id, int iElementType)
 This method is used to create the FlexList element.
 com.appperfect.devcommon.script.flexelement.FlexListBase createFlexListBase(int id, int iElementType)
 This method is used to create the FlexListBase element.
 com.appperfect.devcommon.script.flexelement.FlexDisplayObject createFlexListLabel(int id, int iElementType)
 This method is used to create the FlexListLabel element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexLoader(int id, int iElementType)
 This method is used to create the FlexLoader element.
 com.appperfect.devcommon.script.flexelement.FlexMenu createFlexMenu(int id, int iElementType)
 This method is used to create the FlexMenu element.
 com.appperfect.devcommon.script.flexelement.FlexMenuBar createFlexMenuBar(int id, int iElementType)
 This method is used to create the FlexMenuBar element.
 com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexNavigationBar(int id, int iElementType)
 This method is used to create the FlexNavigationBar element.
 com.appperfect.devcommon.script.flexelement.FlexNumericStepper createFlexNumericStepper(int id, int iElementType)
 This method is used to create the FlexNumericStepper element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexObject(int id, int iElementType)
 This method is used to create the FlexObject element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexPanel(int id, int iElementType)
 This method is used to create the FlexPanel element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexPieChart(int id, int iElementType)
 This method is used to create the FlexPieChart element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexPieSeries(int id, int iElementType)
 This method is used to create the FlexPieSeries element.
 com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexPlotSeries(int id, int iElementType)
 This method is used to create the FlexPlotSeries element.
 com.appperfect.devcommon.script.flexelement.FlexPopUpButton createFlexPopUpButton(int id, int iElementType)
 This method is used to create the FlexPopUpButton element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexProgressBar(int id, int iElementType)
 This method is used to create the FlexProgressBar element.
 com.appperfect.devcommon.script.flexelement.FlexButton createFlexRadioButton(int id, int iElementType)
 This method is used to create the FlexRadioButton element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexRule(int id, int iElementType)
 This method is used to create the FlexRule element.
 com.appperfect.devcommon.script.flexelement.FlexScrollBar createFlexScrollBar(int id, int iElementType)
 This method is used to create the FlexScrollBar element.
 com.appperfect.devcommon.script.flexelement.FlexScrollBase createFlexScrollBase(int id, int iElementType)
 This method is used to create the FlexScrollBase element.
 com.appperfect.devcommon.script.flexelement.FlexSlider createFlexSlider(int id, int iElementType)
 This method is used to create the FlexSlider element.
 com.appperfect.devcommon.script.flexelement.FlexTabNavigator createFlexTabNavigator(int id, int iElementType)
 This method is used to create the FlexTabNavigator element.
 com.appperfect.devcommon.script.flexelement.FlexTextArea createFlexTextArea(int id, int iElementType)
 This method is used to create the FlexTextArea element.
 com.appperfect.devcommon.script.flexelement.FlexContainer createFlexTitleWindow(int id, int iElementType)
 This method is used to create the FlexTitleWindow element.
 com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexToggleButtonBar(int id, int iElementType)
 This method is used to create the FlexToggleButtonBar element.
 com.appperfect.devcommon.script.flexelement.FlexTree createFlexTree(int id, int iElementType)
 This method is used to create the FlexTree element.
 com.appperfect.devcommon.script.flexelement.FlexObject createFlexVideoDisplay(int id, int iElementType)
 This method is used to create the FlexVideoDisplay element.
 com.appperfect.devcommon.script.flexelement.FlexViewStack createFlexViewStack(int id, int iElementType)
 This method is used to create the FlexViewStack element.
 com.appperfect.devcommon.script.flexelement.IFlex createFlexWindow(int id, java.lang.String windowTitle)
 This method is used to create the IUrl task.
 SoapScript createSoapRequest(int id, java.lang.String taskName, java.lang.String protocol, java.lang.String hostName, int port, java.lang.String uri)
 This method is used to create the SOAP type of HTTP/HTTPS request.
 SoapScript createSoapRequest(int id, java.lang.String taskName, java.lang.String protocol, java.lang.String hostName, int port, java.lang.String uri, java.lang.String encodeChar)
 This method is used to create the SOAP type of HTTP/HTTPS request.
 IUrl createURL(int id, java.lang.String protocol, java.lang.String hostName, int port, java.lang.String uri, boolean bSubFrame)
 This method is used to create the IUrl task.
 WebArea createWebArea(int id, int iElementType)
 This method is used to create the WebArea element.
 WebBrowserElement createWebBrowserElement(int id, int iElementType)
 This method is used to create the WebBrowserElement.
 WebButton createWebButton(int id, int iElementType)
 This method is used to create the WebButton element.
 WebCheckBox createWebCheckBox(int id, int iElementType)
 This method is used to create the WebCheckBox element.
 WebComboBox createWebComboBox(int id, int iElementType)
 This method is used to create the WebComboBox element.
 WebDivElement createWebDivElement(int id, int iElementType)
 This method is used to create the WebDivElement element.
 WebEdit createWebEdit(int id, int iElementType)
 This method is used to create the WebEdit element.
 WebFile createWebFile(int id, int iElementType)
 This method is used to create the WebFile element.
 WebHiddenField createWebHiddenField(int id, int iElementType)
 This method is used to create the WebHiddenField element.
 WebImage createWebImage(int id, int iElementType)
 This method is used to create the WebImage element.
 WebInputButton createWebInputButton(int id, int iElementType)
 This method is used to create the WebInputButton element.
 WebInputElement createWebInputElement(int id, int iElementType)
 This method is used to create the WebInputElement element.
 WebInputImage createWebInputImage(int id, int iElementType)
 This method is used to create the WebInputImage element.
 WebLink createWebLink(int id, int iElementType)
 This method is used to create the WebLink element.
 WebList createWebList(int id, int iElementType, boolean bOrdered)
 This method is used to create the WebList element.
 WebListItem createWebListItem(int id, int iElementType)
 This method is used to create the WebListItem element.
 WebObject createWebObject(int id, java.lang.String sElementTag, int iElementType)
 This method is used to create the WebObject element.
 WebPasswordField createWebPasswordField(int id, int iElementType)
 This method is used to create the WebPasswordField element.
 WebRadioButton createWebRadioButton(int id, int iElementType)
 This method is used to create the WebRadioButton element.
 WebResetButton createWebResetButton(int id, int iElementType)
 This method is used to create the WebResetButton element.
 WebSpan createWebSpan(int id, int iElementType)
 This method is used to create the WebSpan element.
 WebSubmitButton createWebSubmitButton(int id, int iElementType)
 This method is used to create the WebSubmitButton element.
 WebTable createWebTable(int id, int iElementType)
 This method is used to create the WebTable element.
 IWebTest createWebTest()
 To create Web test project
 WebTextArea createWebTextArea(int id, int iElementType)
 This method is used to create the WebTextArea element.
 WebTextField createWebTextField(int id, int iElementType)
 This method is used to create the WebTextField element.
 WinApplet createWinApplet(int id, int iElementType)
 This method is used to create the WinApplet element.
 WinButton createWinButton(int id, int iElementType)
 This method is used to create the WinButton element.
 WinCalendar createWinCalendar(int id, int iElementType)
 This method is used to create the WinCalendar element.
 WinCheckBox createWinCheckBox(int id, int iElementType)
 This method is used to create the WinCheckBox element.
 WinComboBox createWinComboBox(int id, int iElementType)
 This method is used to create the WinComboBox element.
 WinComboListBox createWinComboListBox(int id, int iElementType)
 This method is used to create the WinComboListBox element.
 WinEdit createWinEdit(int id, int iElementType)
 This method is used to create the WinEdit element.
 WinFlash createWinFlash(int id, int iElementType)
 This method is used to create the WinFlash element.
 WinListBox createWinListBox(int id, int iElementType)
 This method is used to create the WinListBox element.
 WinListView createWinListView(int id, int iElementType)
 This method is used to create the WinListView element.
 WinMenu createWinMenu(int id, java.lang.String sWindowClass, int iElementType)
 This method is used to create the WinMenu element.
 WinMenuWindow createWinMenuWindow(int id, int iElementType)
 This method is used to create the WinMenuWindow element.
 WinObject createWinObject(int id, java.lang.String sWindowClass, int iElementType)
 This method is used to create the WinObject element.
 WinRadioButton createWinRadioButton(int id, int iElementType)
 This method is used to create the WinRadioButton element.
 WinScrollbar createWinScrollbar(int id, int iElementType)
 This method is used to create the WinScrollbar element.
 WinSpin createWinSpin(int id, int iElementType)
 This method is used to create the WinSpin element.
 WinStatic createWinStatic(int id, int iElementType)
 This method is used to create the WinStatic element.
 WinStatusBar createWinStatusBar(int id, int iElementType)
 This method is used to create the WinStatusBar element.
 WinTab createWinTab(int id, int iElementType)
 This method is used to create the WinTab element.
 WinToolbar createWinToolbar(int id, int iElementType)
 This method is used to create the WinToolbar element.
 WinTreeView createWinTreeView(int id, int iElementType)
 This method is used to create the WinTreeView element.
 boolean executeBrowser(IBrowser browser)
 Executes the IBrowser task object passed.
 boolean executeFlexWindow(com.appperfect.devcommon.script.flexelement.IFlex flex)
 Executes the IFlex task object passed.
 boolean executeSoapRequest(SoapScript url)
 Executes the SoapScript task object passed.
 boolean executeURL(IUrl url)
 Executes the IUrl task object passed.
 java.lang.String getAuthenticationDomain()
 If the current group requires authentication for Domain, then this returns the domain name associated for this group.
 int getAuthenticationMechanism()
 If the current group required authentication then method method returns authentication type like NTLM, Basic etc.
 java.lang.String getAuthenticationPassword()
 Authentication user associated with the current group if the current group requires authentication (Basic/Domain/NTLM).
 java.lang.String getAuthenticationUsername()
 Authentication user associated with the current group if the current group requires authentication (Basic/Domain/NTLM).
 java.lang.String getHostInfoParameterValue(java.lang.String sName, java.lang.String sValue, java.lang.String sParameterName)
 To get Test Parameter value for event's parameterized Attribute or URL's Task Parameter
 int getIterationNumber()
 To get the number of iterations performed till now, including the one currently in progress.
 java.lang.String getLoginPassword()
 Login password associated with the current group if it contains a login request.
 java.lang.String getLoginUsername()
 Login user name associated with the current group if it contains a login request.
 void release()
 Releases all the internal objects like ResultSet, Connection are released in this method.
 void setAuthenticationMechanism(int authenticationMechanism)
 To set the authentication mechanism
 void setAuthenticationUser(java.lang.String name, java.lang.String pwd, java.lang.String domain)
 To set the authentication user to be used for the current group
 void setLoginUser(java.lang.String name, java.lang.String pwd)
 To set the login user to be used for the current group
 
Methods inherited from interface com.appperfect.devcommon.script.IDatabaseHandler
closeResultSet, executeInsertUpdateQuery, executeSelectQuery, getLastError, getNumberOfDatabaseColumns, getNumberOfDatabaseRows, getResultSet, getValueFromDatabase, isDatabaseConnectionValid, setDatabaseConnection
 
Methods inherited from interface com.appperfect.devcommon.script.INotificationHandler
sendEmailNotificaion, sendEmailNotificaion, sendEmailNotificaion
 
Methods inherited from interface com.appperfect.devcommon.script.IParameterHandler
assertTestParameterValue, getParameterValue, getParameterValue, getParameterValueByParsing, getParameterValueByParsing, getParameterValueForPattern
 

Method Detail

createBrowser

IBrowser createBrowser(int id,
                       java.lang.String sTitle,
                       java.lang.String protocol,
                       java.lang.String hostName,
                       int port,
                       java.lang.String uri)
This method is used to create the IBrowser task.

Parameters:
id - is the Task Id. Should be unique across the test
sTitle - is the unique title of the browser which is used to identify browser.
protocol - of the request. http or https
hostName - host name or IP address of the remote server
port - of the remote server
uri -
Returns:
IBrowser object for execution

createFlexAccordion

com.appperfect.devcommon.script.flexelement.FlexAccordion createFlexAccordion(int id,
                                                                              int iElementType)
This method is used to create the FlexAccordion element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexAccordion object for execution

createFlexAlert

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexAlert(int id,
                                                                          int iElementType)
This method is used to create the FlexAlert element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexApplication

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexApplication(int id,
                                                                                int iElementType)
This method is used to create the FlexApplication element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexAreaChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexAreaChart(int id,
                                                                           int iElementType)
This method is used to create the FlexAreaChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexAreaSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexAreaSeries(int id,
                                                                                 int iElementType)
This method is used to create the FlexAreaSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexAxisRenderer

com.appperfect.devcommon.script.flexelement.FlexObject createFlexAxisRenderer(int id,
                                                                              int iElementType)
This method is used to create the FlexAxisRenderer element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexBarChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexBarChart(int id,
                                                                          int iElementType)
This method is used to create the FlexBarChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexBarSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexBarSeries(int id,
                                                                                int iElementType)
This method is used to create the FlexBarSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexBox

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexBox(int id,
                                                                        int iElementType)
This method is used to create the FlexBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexBubbleSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexBubbleSeries(int id,
                                                                                   int iElementType)
This method is used to create the FlexBubbleSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexButton

com.appperfect.devcommon.script.flexelement.FlexButton createFlexButton(int id,
                                                                        int iElementType)
This method is used to create the FlexButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexButton object for execution

createFlexButtonBar

com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexButtonBar(int id,
                                                                                  int iElementType)
This method is used to create the FlexButtonBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexNavigationBar object for execution

createFlexCanvas

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexCanvas(int id,
                                                                           int iElementType)
This method is used to create the FlexCanvas element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexCartesianChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexCartesianChart(int id,
                                                                                int iElementType)
This method is used to create the FlexCartesianChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexChart(int id,
                                                                       int iElementType)
This method is used to create the FlexChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexChartLegend

com.appperfect.devcommon.script.flexelement.FlexChartLegend createFlexChartLegend(int id,
                                                                                  int iElementType)
This method is used to create the FlexChartLegend element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartLegend object for execution

createFlexChartSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexChartSeries(int id,
                                                                                  int iElementType)
This method is used to create the FlexChartSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexCheckBox

com.appperfect.devcommon.script.flexelement.FlexButton createFlexCheckBox(int id,
                                                                          int iElementType)
This method is used to create the FlexCheckbox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexButton object for execution

createFlexColorPicker

com.appperfect.devcommon.script.flexelement.FlexColorPicker createFlexColorPicker(int id,
                                                                                  int iElementType)
This method is used to create the FlexColorPicker element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexColorPicker object for execution

createFlexColumnChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexColumnChart(int id,
                                                                             int iElementType)
This method is used to create the FlexColumnChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexColumnSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexColumnSeries(int id,
                                                                                   int iElementType)
This method is used to create the FlexColumnSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexComboBase

com.appperfect.devcommon.script.flexelement.FlexComboBase createFlexComboBase(int id,
                                                                              int iElementType)
This method is used to create the FlexComboBase element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexComboBase object for execution

createFlexComboBox

com.appperfect.devcommon.script.flexelement.FlexComboBox createFlexComboBox(int id,
                                                                            int iElementType)
This method is used to create the FlexComboBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexComboBox object for execution

createFlexContainer

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexContainer(int id,
                                                                              int iElementType)
This method is used to create the FlexContainer element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexDataGrid

com.appperfect.devcommon.script.flexelement.FlexDataGrid createFlexDataGrid(int id,
                                                                            int iElementType)
This method is used to create the FlexDataGrid element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDatGrid object for execution

createFlexDateChooser

com.appperfect.devcommon.script.flexelement.FlexDateChooser createFlexDateChooser(int id,
                                                                                  int iElementType)
This method is used to create the FlexDateChooser element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDateChooser object for execution

createFlexDateField

com.appperfect.devcommon.script.flexelement.FlexDateField createFlexDateField(int id,
                                                                              int iElementType)
This method is used to create the FlexDateField element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDateField object for execution

createFlexDisplayObject

com.appperfect.devcommon.script.flexelement.FlexDisplayObject createFlexDisplayObject(int id,
                                                                                      int iElementType)
This method is used to create the FlexDisplayObject element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDisplayObject object for execution

createFlexDividedBox

com.appperfect.devcommon.script.flexelement.FlexDividedBox createFlexDividedBox(int id,
                                                                                int iElementType)
This method is used to create the FlexDividedBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDividedBox object for execution

createFlexForm

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexForm(int id,
                                                                         int iElementType)
This method is used to create the FlexForm element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexFormItem

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexFormItem(int id,
                                                                             int iElementType)
This method is used to create the FlexFormItem element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexHLOCChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexHLOCChart(int id,
                                                                           int iElementType)
This method is used to create the FlexHLOCChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexImage

com.appperfect.devcommon.script.flexelement.FlexObject createFlexImage(int id,
                                                                       int iElementType)
This method is used to create the FlexImage element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexLabel

com.appperfect.devcommon.script.flexelement.FlexLabel createFlexLabel(int id,
                                                                      int iElementType)
This method is used to create the FlexLabel element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexLabel object for execution

createFlexLineChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexLineChart(int id,
                                                                           int iElementType)
This method is used to create the FlexLineChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexLineSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexLineSeries(int id,
                                                                                 int iElementType)
This method is used to create the FlexLineSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexLinkBar

com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexLinkBar(int id,
                                                                                int iElementType)
This method is used to create the FlexLinkBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexNavigationBar object for execution

createFlexList

com.appperfect.devcommon.script.flexelement.FlexList createFlexList(int id,
                                                                    int iElementType)
This method is used to create the FlexList element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexList object for execution

createFlexListBase

com.appperfect.devcommon.script.flexelement.FlexListBase createFlexListBase(int id,
                                                                            int iElementType)
This method is used to create the FlexListBase element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexListBase object for execution

createFlexListLabel

com.appperfect.devcommon.script.flexelement.FlexDisplayObject createFlexListLabel(int id,
                                                                                  int iElementType)
This method is used to create the FlexListLabel element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexDisplayObject object for execution

createFlexLoader

com.appperfect.devcommon.script.flexelement.FlexObject createFlexLoader(int id,
                                                                        int iElementType)
This method is used to create the FlexLoader element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexMenu

com.appperfect.devcommon.script.flexelement.FlexMenu createFlexMenu(int id,
                                                                    int iElementType)
This method is used to create the FlexMenu element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexMenu object for execution

createFlexMenuBar

com.appperfect.devcommon.script.flexelement.FlexMenuBar createFlexMenuBar(int id,
                                                                          int iElementType)
This method is used to create the FlexMenuBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexMenuBar object for execution

createFlexNavigationBar

com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexNavigationBar(int id,
                                                                                      int iElementType)
This method is used to create the FlexNavigationBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexNavigationBar object for execution

createFlexNumericStepper

com.appperfect.devcommon.script.flexelement.FlexNumericStepper createFlexNumericStepper(int id,
                                                                                        int iElementType)
This method is used to create the FlexNumericStepper element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexNumericStepper object for execution

createFlexObject

com.appperfect.devcommon.script.flexelement.FlexObject createFlexObject(int id,
                                                                        int iElementType)
This method is used to create the FlexObject element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexPanel

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexPanel(int id,
                                                                          int iElementType)
This method is used to create the FlexPanel element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexPieChart

com.appperfect.devcommon.script.flexelement.FlexObject createFlexPieChart(int id,
                                                                          int iElementType)
This method is used to create the FlexPieChart element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexPieSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexPieSeries(int id,
                                                                                int iElementType)
This method is used to create the FlexPieSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexPlotSeries

com.appperfect.devcommon.script.flexelement.FlexChartSeries createFlexPlotSeries(int id,
                                                                                 int iElementType)
This method is used to create the FlexPlotSeries element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexChartSeries object for execution

createFlexPopUpButton

com.appperfect.devcommon.script.flexelement.FlexPopUpButton createFlexPopUpButton(int id,
                                                                                  int iElementType)
This method is used to create the FlexPopUpButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexPopUpButton object for execution

createFlexProgressBar

com.appperfect.devcommon.script.flexelement.FlexObject createFlexProgressBar(int id,
                                                                             int iElementType)
This method is used to create the FlexProgressBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexRadioButton

com.appperfect.devcommon.script.flexelement.FlexButton createFlexRadioButton(int id,
                                                                             int iElementType)
This method is used to create the FlexRadioButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexButton object for execution

createFlexRule

com.appperfect.devcommon.script.flexelement.FlexObject createFlexRule(int id,
                                                                      int iElementType)
This method is used to create the FlexRule element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexScrollBar

com.appperfect.devcommon.script.flexelement.FlexScrollBar createFlexScrollBar(int id,
                                                                              int iElementType)
This method is used to create the FlexScrollBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexScrollBar object for execution

createFlexScrollBase

com.appperfect.devcommon.script.flexelement.FlexScrollBase createFlexScrollBase(int id,
                                                                                int iElementType)
This method is used to create the FlexScrollBase element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexScrollBase object for execution

createFlexSlider

com.appperfect.devcommon.script.flexelement.FlexSlider createFlexSlider(int id,
                                                                        int iElementType)
This method is used to create the FlexSlider element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexSlider object for execution

createFlexTabNavigator

com.appperfect.devcommon.script.flexelement.FlexTabNavigator createFlexTabNavigator(int id,
                                                                                    int iElementType)
This method is used to create the FlexTabNavigator element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexTabNavigator object for execution

createFlexTextArea

com.appperfect.devcommon.script.flexelement.FlexTextArea createFlexTextArea(int id,
                                                                            int iElementType)
This method is used to create the FlexTextArea element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexTextArea object for execution

createFlexTitleWindow

com.appperfect.devcommon.script.flexelement.FlexContainer createFlexTitleWindow(int id,
                                                                                int iElementType)
This method is used to create the FlexTitleWindow element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexContainer object for execution

createFlexToggleButtonBar

com.appperfect.devcommon.script.flexelement.FlexNavigationBar createFlexToggleButtonBar(int id,
                                                                                        int iElementType)
This method is used to create the FlexToggleButtonBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexNavigationBar object for execution

createFlexTree

com.appperfect.devcommon.script.flexelement.FlexTree createFlexTree(int id,
                                                                    int iElementType)
This method is used to create the FlexTree element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexTree object for execution

createFlexVideoDisplay

com.appperfect.devcommon.script.flexelement.FlexObject createFlexVideoDisplay(int id,
                                                                              int iElementType)
This method is used to create the FlexVideoDisplay element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexObject object for execution

createFlexViewStack

com.appperfect.devcommon.script.flexelement.FlexViewStack createFlexViewStack(int id,
                                                                              int iElementType)
This method is used to create the FlexViewStack element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
FlexViewStack object for execution

createFlexWindow

com.appperfect.devcommon.script.flexelement.IFlex createFlexWindow(int id,
                                                                   java.lang.String windowTitle)
This method is used to create the IUrl task.

Parameters:
id - is the Task Id. Should be unique across the test
windowTitle - of the flex window.
Returns:
IFlex object for execution

createSoapRequest

SoapScript createSoapRequest(int id,
                             java.lang.String taskName,
                             java.lang.String protocol,
                             java.lang.String hostName,
                             int port,
                             java.lang.String uri)
This method is used to create the SOAP type of HTTP/HTTPS request.

Parameters:
id - is the Task Id. Should be unique across the test
taskName - name of the task.
protocol - of the request. http or https
hostName - host name or IP address of the remote server
port - of the remote server
uri -
Returns:
request object for execution

createSoapRequest

SoapScript createSoapRequest(int id,
                             java.lang.String taskName,
                             java.lang.String protocol,
                             java.lang.String hostName,
                             int port,
                             java.lang.String uri,
                             java.lang.String encodeChar)
This method is used to create the SOAP type of HTTP/HTTPS request. The encode char parameter can be used to parameterize the uri.

Parameters:
id - is the Task Id. Should be unique across the test
taskName - name of the task.
protocol - of the request. http or https
hostName - host name or IP address of the remote server
port - of the remote server
uri -
encodeChar - character to be used for enclosing TestParameter if any in the Path, by default @ is used for enclosing TestParameter within path
Returns:
request object for execution

createURL

IUrl createURL(int id,
               java.lang.String protocol,
               java.lang.String hostName,
               int port,
               java.lang.String uri,
               boolean bSubFrame)
This method is used to create the IUrl task.

Parameters:
id - is the Task Id. Should be unique across the test
protocol - of the request. http or https
hostName - host name or IP address of the remote server
port - of the remote server
uri -
bSubFrame - whether its a sub frame or top level page.
Returns:
IUrl object for execution

createWebArea

WebArea createWebArea(int id,
                      int iElementType)
This method is used to create the WebArea element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebArea object for execution

createWebBrowserElement

WebBrowserElement createWebBrowserElement(int id,
                                          int iElementType)
This method is used to create the WebBrowserElement.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebBrowserElement object for execution

createWebButton

WebButton createWebButton(int id,
                          int iElementType)
This method is used to create the WebButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebButton object for execution

createWebCheckBox

WebCheckBox createWebCheckBox(int id,
                              int iElementType)
This method is used to create the WebCheckBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebCheckBox object for execution

createWebComboBox

WebComboBox createWebComboBox(int id,
                              int iElementType)
This method is used to create the WebComboBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebComboBox object for execution

createWebDivElement

WebDivElement createWebDivElement(int id,
                                  int iElementType)
This method is used to create the WebDivElement element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebDivElement object for execution

createWebEdit

WebEdit createWebEdit(int id,
                      int iElementType)
This method is used to create the WebEdit element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebEdit object for execution

createWebFile

WebFile createWebFile(int id,
                      int iElementType)
This method is used to create the WebFile element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebFile object for execution

createWebHiddenField

WebHiddenField createWebHiddenField(int id,
                                    int iElementType)
This method is used to create the WebHiddenField element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebHiddenField object for execution

createWebImage

WebImage createWebImage(int id,
                        int iElementType)
This method is used to create the WebImage element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebImage object for execution

createWebInputButton

WebInputButton createWebInputButton(int id,
                                    int iElementType)
This method is used to create the WebInputButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebInputButton object for execution

createWebInputElement

WebInputElement createWebInputElement(int id,
                                      int iElementType)
This method is used to create the WebInputElement element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebInputElement object for execution

createWebInputImage

WebInputImage createWebInputImage(int id,
                                  int iElementType)
This method is used to create the WebInputImage element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebInputImage object for execution

createWebLink

WebLink createWebLink(int id,
                      int iElementType)
This method is used to create the WebLink element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebLink object for execution

createWebList

WebList createWebList(int id,
                      int iElementType,
                      boolean bOrdered)
This method is used to create the WebList element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
bOrdered - is true if its an ordered list, false otherwise
Returns:
WebList object for execution

createWebListItem

WebListItem createWebListItem(int id,
                              int iElementType)
This method is used to create the WebListItem element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebListItem object for execution

createWebObject

WebObject createWebObject(int id,
                          java.lang.String sElementTag,
                          int iElementType)
This method is used to create the WebObject element. This is the base element for any web component. Should be used for creating an element whose tagname is known and equivalent element for same is not present in the standard elements supported by default.

Parameters:
id - is the Task Id. Should be unique across the test
sElementTag - is the html tag name
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebObject object for execution

createWebPasswordField

WebPasswordField createWebPasswordField(int id,
                                        int iElementType)
This method is used to create the WebPasswordField element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebPasswordField object for execution

createWebRadioButton

WebRadioButton createWebRadioButton(int id,
                                    int iElementType)
This method is used to create the WebRadioButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebRadioButton object for execution

createWebResetButton

WebResetButton createWebResetButton(int id,
                                    int iElementType)
This method is used to create the WebResetButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebResetButton object for execution

createWebSpan

WebSpan createWebSpan(int id,
                      int iElementType)
This method is used to create the WebSpan element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebSpan object for execution

createWebSubmitButton

WebSubmitButton createWebSubmitButton(int id,
                                      int iElementType)
This method is used to create the WebSubmitButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebSubmitButton object for execution

createWebTable

WebTable createWebTable(int id,
                        int iElementType)
This method is used to create the WebTable element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebTable object for execution

createWebTest

IWebTest createWebTest()
To create Web test project

Returns:
IWebTest

createWebTextArea

WebTextArea createWebTextArea(int id,
                              int iElementType)
This method is used to create the WebTextArea element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebTextArea object for execution

createWebTextField

WebTextField createWebTextField(int id,
                                int iElementType)
This method is used to create the WebTextField element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WebTextField object for execution

createWinApplet

WinApplet createWinApplet(int id,
                          int iElementType)
This method is used to create the WinApplet element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinApplet object for execution

createWinButton

WinButton createWinButton(int id,
                          int iElementType)
This method is used to create the WinButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinButton object for execution

createWinCalendar

WinCalendar createWinCalendar(int id,
                              int iElementType)
This method is used to create the WinCalendar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinCalendar object for execution

createWinCheckBox

WinCheckBox createWinCheckBox(int id,
                              int iElementType)
This method is used to create the WinCheckBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinCheckBox object for execution

createWinComboBox

WinComboBox createWinComboBox(int id,
                              int iElementType)
This method is used to create the WinComboBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinComboBox object for execution

createWinComboListBox

WinComboListBox createWinComboListBox(int id,
                                      int iElementType)
This method is used to create the WinComboListBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinComboListBox object for execution

createWinEdit

WinEdit createWinEdit(int id,
                      int iElementType)
This method is used to create the WinEdit element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinEdit object for execution

createWinFlash

WinFlash createWinFlash(int id,
                        int iElementType)
This method is used to create the WinFlash element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinFlash object for execution

createWinListBox

WinListBox createWinListBox(int id,
                            int iElementType)
This method is used to create the WinListBox element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinListBox object for execution

createWinListView

WinListView createWinListView(int id,
                              int iElementType)
This method is used to create the WinListView element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinListView object for execution

createWinMenu

WinMenu createWinMenu(int id,
                      java.lang.String sWindowClass,
                      int iElementType)
This method is used to create the WinMenu element.

Parameters:
id - is the Task Id. Should be unique across the test
sWindowClass - represents name of the window class.
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinMenu object for execution

createWinMenuWindow

WinMenuWindow createWinMenuWindow(int id,
                                  int iElementType)
This method is used to create the WinMenuWindow element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinMenuWindow object for execution

createWinObject

WinObject createWinObject(int id,
                          java.lang.String sWindowClass,
                          int iElementType)
This method is used to create the WinObject element. This is the base element for any window component. Should be used for creating an element whose class name is known and equivalent element for same is not present in the standard elements supported by default.

Parameters:
id - is the Task Id. Should be unique across the test
sWindowClass - represents name of the window class.
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinObject object for execution

createWinRadioButton

WinRadioButton createWinRadioButton(int id,
                                    int iElementType)
This method is used to create the WinRadioButton element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinRadioButton object for execution

createWinScrollbar

WinScrollbar createWinScrollbar(int id,
                                int iElementType)
This method is used to create the WinScrollbar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinScrollbar object for execution

createWinSpin

WinSpin createWinSpin(int id,
                      int iElementType)
This method is used to create the WinSpin element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinSpin object for execution

createWinStatic

WinStatic createWinStatic(int id,
                          int iElementType)
This method is used to create the WinStatic element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinStatic object for execution

createWinStatusBar

WinStatusBar createWinStatusBar(int id,
                                int iElementType)
This method is used to create the WinStatusBar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinStatusBar object for execution

createWinTab

WinTab createWinTab(int id,
                    int iElementType)
This method is used to create the WinTab element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinTab object for execution

createWinToolbar

WinToolbar createWinToolbar(int id,
                            int iElementType)
This method is used to create the WinToolbar element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinToolbar object for execution

createWinTreeView

WinTreeView createWinTreeView(int id,
                              int iElementType)
This method is used to create the WinTreeView element.

Parameters:
id - is the Task Id. Should be unique across the test
iElementType - possible values, 1 if element is on a WebBrowser, 2 if element is on top level page, 3 if element is present on subframe.
Returns:
WinTreeView object for execution

executeBrowser

boolean executeBrowser(IBrowser browser)
Executes the IBrowser task object passed.

Parameters:
browser - The IBrowser object to be executed
Returns:
true if the browser was executed successfully; false if there was an error during execution.

executeFlexWindow

boolean executeFlexWindow(com.appperfect.devcommon.script.flexelement.IFlex flex)
Executes the IFlex task object passed.

Parameters:
flex - The IFlex object to be executed
Returns:
true if the url was executed successfully; false if there was an error during execution.

executeSoapRequest

boolean executeSoapRequest(SoapScript url)
Executes the SoapScript task object passed.

Parameters:
url - The SoapScript object to be executed
Returns:
true if the request was executed successfully; false if there was an error during execution.

executeURL

boolean executeURL(IUrl url)
Executes the IUrl task object passed.

Parameters:
url - The IUrl object to be executed
Returns:
true if the url was executed successfully; false if there was an error during execution.

getAuthenticationDomain

java.lang.String getAuthenticationDomain()
If the current group requires authentication for Domain, then this returns the domain name associated for this group.

Returns:
domain of the authentication user used for the current group

getAuthenticationMechanism

int getAuthenticationMechanism()
If the current group required authentication then method method returns authentication type like NTLM, Basic etc.

Returns:
returns authentication mechanism

getAuthenticationPassword

java.lang.String getAuthenticationPassword()
Authentication user associated with the current group if the current group requires authentication (Basic/Domain/NTLM).

Returns:
password of the authentication user used for the current group

getAuthenticationUsername

java.lang.String getAuthenticationUsername()
Authentication user associated with the current group if the current group requires authentication (Basic/Domain/NTLM).

Returns:
user name of the authentication user used for the current group

getHostInfoParameterValue

java.lang.String getHostInfoParameterValue(java.lang.String sName,
                                           java.lang.String sValue,
                                           java.lang.String sParameterName)
To get Test Parameter value for event's parameterized Attribute or URL's Task Parameter

Parameters:
sName - of the task parameter/attribute
sValue - recorded value of the parameter
sParameterName - name of the test parameter
Returns:
value of the test parameter

getIterationNumber

int getIterationNumber()
To get the number of iterations performed till now, including the one currently in progress.

Returns:
the number of iterations performed till now, including the one currently in progress.

getLoginPassword

java.lang.String getLoginPassword()
Login password associated with the current group if it contains a login request.

Returns:
password of the logged in user used for the current group

getLoginUsername

java.lang.String getLoginUsername()
Login user name associated with the current group if it contains a login request.

Returns:
name of the logged in user used for the current group

release

void release()
Releases all the internal objects like ResultSet, Connection are released in this method. Also this method takes care of saving the response to disk. This method should be always called in the end after the execution of each task.


setAuthenticationMechanism

void setAuthenticationMechanism(int authenticationMechanism)
To set the authentication mechanism

Parameters:
authenticationMechanism -

setAuthenticationUser

void setAuthenticationUser(java.lang.String name,
                           java.lang.String pwd,
                           java.lang.String domain)
To set the authentication user to be used for the current group

Parameters:
name - of the authentication user
pwd - password of the authentication user
domain - name of the domain for Domain based authentication; null otherwise

setLoginUser

void setLoginUser(java.lang.String name,
                  java.lang.String pwd)
To set the login user to be used for the current group

Parameters:
name - of the login user
pwd - password of the login user


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.