|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScriptEngine
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
. App Test supports functional testing
of windows and Java application. Group(s) can be added/deleted/edited from
UI. An Action group is created and all the tasks (Window / Event) are
recorded in this group
Tasks supported by App Test are IWindow
and
window or java elements
and events on the same. The following
code fragment illustrates how to create an IWindow
task.
var window = engine.createWindow(1, 'Notepad', false);
Once a task is created, all its properties like think time, title,
breakpoints 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 a IWindow
task.
window.setThinkTime(1);The following code fragment illustrates how to add attribute for a
Window element
task.
element.addAttribute('nativeClass', 'Edit', 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
window
task.
var successful = engine.executeWindow(window);
After execution of each task, it is must to call release
method to release all the opened resources.
IWindow
,
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 | |
---|---|
boolean |
captureImageForComponent(java.lang.String accPath,
java.lang.String imagePath)
Capture the image for component at given accessible path |
AwtButton |
createAwtButton(int id,
int iElementType)
This method is used to create the AwtButton element. |
AwtCanvas |
createAwtCanvas(int id,
int iElementType)
This method is used to create the AwtCanvas element. |
AwtCheckbox |
createAwtCheckbox(int id,
int iElementType)
This method is used to create the AwtCheckbox element. |
AwtCheckboxMenuItem |
createAwtCheckboxMenuItem(int id,
int iElementType)
This method is used to create the AwtCheckboxMenuItem
element. |
AwtComboBox |
createAwtCombobox(int id,
int iElementType)
This method is used to create the AwtCombobox element. |
AwtComponent |
createAwtComponent(int id,
int iElementType)
This method is used to create the AwtComponent element. |
AwtContainer |
createAwtContainer(int id,
int iElementType)
This method is used to create the AwtContainer element. |
AwtDialog |
createAwtDialog(int id,
int iElementType)
This method is used to create the AwtDialog element. |
AwtFileDialog |
createAwtFileDialog(int id,
int iElementType)
This method is used to create the AwtFileDialog element. |
AwtFrame |
createAwtFrame(int id,
int iElementType)
This method is used to create the AwtFrame element. |
AwtLabel |
createAwtLabel(int id,
int iElementType)
This method is used to create the AwtLabel element. |
AwtList |
createAwtList(int id,
int iElementType)
This method is used to create the AwtList element. |
AwtMenuItem |
createAwtMenuItem(int id,
int iElementType)
This method is used to create the AwtMenuItem element. |
AwtPanel |
createAwtPanel(int id,
int iElementType)
This method is used to create the AwtPanel element. |
AwtScrollbar |
createAwtScrollbar(int id,
int iElementType)
This method is used to create the AwtScrollbar element. |
AwtScrollPane |
createAwtScrollPane(int id,
int iElementType)
This method is used to create the AwtScrollPane element. |
AwtTextArea |
createAwtTextArea(int id,
int iElementType)
This method is used to create the AwtTextArea element. |
AwtTextComponent |
createAwtTextComponent(int id,
int iElementType)
This method is used to create the AwtTextComponent
element. |
AwtTextField |
createAwtTextField(int id,
int iElementType)
This method is used to create the AwtTextField element. |
AwtWindow |
createAwtWindow(int id,
int iElementType)
This method is used to create the AwtWindow element. |
JavaComponent |
createJavaComponent(int id,
java.lang.String sWindowClass,
int iElementType)
This method is used to create the JavaComponent element. |
SwingButton |
createSwingButton(int id,
int iElementType)
This method is used to create the SwingButton element. |
SwingCheckbox |
createSwingCheckbox(int id,
int iElementType)
This method is used to create the SwingCheckbox element. |
SwingCheckBoxMenuItem |
createSwingCheckBoxMenuItem(int id,
int iElementType)
This method is used to create the SwingCheckBoxMenuItem
element. |
SwingComboBox |
createSwingComboBox(int id,
int iElementType)
This method is used to create the SwingComboBox element. |
SwingComponent |
createSwingComponent(int id,
int iElementType)
This method is used to create the SwingComponent element. |
SwingDialog |
createSwingDialog(int id,
int iElementType)
This method is used to create the SwingDialog element. |
SwingFileChooser |
createSwingFileChooser(int id,
int iElementType)
This method is used to create the SwingFileChooser
element. |
SwingFrame |
createSwingFrame(int id,
int iElementType)
This method is used to create the SwingFrame element. |
SwingLabel |
createSwingLabel(int id,
int iElementType)
This method is used to create the SwingLabel element. |
SwingList |
createSwingList(int id,
int iElementType)
This method is used to create the SwingList element. |
SwingMenu |
createSwingMenu(int id,
int iElementType)
This method is used to create the SwingMenu element. |
SwingMenuItem |
createSwingMenuItem(int id,
int iElementType)
This method is used to create the SwingMenuItem element. |
SwingPanel |
createSwingPanel(int id,
int iElementType)
This method is used to create the SwingPanel element. |
SwingPasswordField |
createSwingPasswordField(int id,
int iElementType)
This method is used to create the SwingPasswordField
element. |
SwingProgressBar |
createSwingProgressBar(int id,
int iElementType)
This method is used to create the SwingProgressBar
element. |
SwingRadioButtonMenuItem |
createSwingRadioButtonMenuItem(int id,
int iElementType)
This method is used to create the SwingRadioButtonMenuItem
element. |
SwingScrollBar |
createSwingScrollBar(int id,
int iElementType)
This method is used to create the SwingScrollBar element. |
SwingSlider |
createSwingSlider(int id,
int iElementType)
This method is used to create the SwingSlider element. |
SwingSpinner |
createSwingSpinner(int id,
int iElementType)
This method is used to create the SwingSpinner element. |
SwingSplitPane |
createSwingSplitPane(int id,
int iElementType)
This method is used to create the SwingSplitPane element. |
SwingTabbedPane |
createSwingTabbedPane(int id,
int iElementType)
This method is used to create the SwingTabbedPane element. |
SwingTable |
createSwingTable(int id,
int iElementType)
This method is used to create the SwingTable element. |
SwingTextArea |
createSwingTextArea(int id,
int iElementType)
This method is used to create the SwingTextArea element. |
SwingTextComponent |
createSwingTextComponent(int id,
int iElementType)
This method is used to create the SwingTextComponent
element. |
SwingTextField |
createSwingTextField(int id,
int iElementType)
This method is used to create the SwingTextField element. |
SwingToggleButton |
createSwingToggleButton(int id,
int iElementType)
This method is used to create the SwingToggleButton
element. |
SwingTree |
createSwingTree(int id,
int iElementType)
This method is used to create the SwingTree element. |
SwingWindow |
createSwingWindow(int id,
int iElementType)
This method is used to create the SwingWindow 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. |
IWindow |
createWindow(int id,
java.lang.String sWindowTitle,
boolean bDialog)
This method is used to create the IWindow task. |
IWindowsTest |
createWindowsTest()
To create windows or java test project |
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 |
executeWindow(IWindow window)
Executes the IWindow task object passed. |
java.lang.String[] |
getAttributeNames(java.lang.String accPath)
To fetch names of all the attributes / properties for component at given accessible path. |
java.lang.String[] |
getAttributeValues(java.lang.String accPath,
java.lang.String[] attribNames)
To fetch values of all the given attributes / properties for component at given accessible path. |
int |
getChildCount(java.lang.String parentAccPath,
int depth)
To fetch child count of component at given accessible path |
java.lang.String[][] |
getChildrenAccessiblePaths(java.lang.String parentAccPath,
int depth)
To fetch accessible paths of all the children of component at given accessible path |
int |
getIterationNumber()
To get the number of iterations performed till now, including the one currently in progress. |
java.lang.String[] |
getPossibleActions(java.lang.String accPath)
To fetch the names of all the possible actions for component at given accessible path. |
boolean |
performAction(java.lang.String accPath,
java.lang.String action)
Performs the given action on component at given accessible path |
void |
release()
Releases all the internal objects like ResultSet, Connection are released in this method. |
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 |
---|
boolean captureImageForComponent(java.lang.String accPath, java.lang.String imagePath)
accPath
- accessible path of component whose image should be takenimagePath
- full path of image including the image file name where the image should be saved
AwtButton createAwtButton(int id, int iElementType)
AwtButton
element.
Represents java.awt.Button class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtButton
object for executionAwtCanvas createAwtCanvas(int id, int iElementType)
AwtCanvas
element.
Represents java.awt.Canvas class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtCanvas
object for executionAwtCheckbox createAwtCheckbox(int id, int iElementType)
AwtCheckbox
element.
Represents java.awt.Checkbox class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtCheckbox
object for executionAwtCheckboxMenuItem createAwtCheckboxMenuItem(int id, int iElementType)
AwtCheckboxMenuItem
element. Represents java.awt.CheckboxMenuItem class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtCheckboxMenuItem
object for executionAwtComboBox createAwtCombobox(int id, int iElementType)
AwtCombobox
element.
Represents java.awt.Choice class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtCombobox
object for executionAwtComponent createAwtComponent(int id, int iElementType)
AwtComponent
element.
Represents java.awt.Component class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtComponent
object for executionAwtContainer createAwtContainer(int id, int iElementType)
AwtContainer
element.
Represents java.awt.Container class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtContainer
object for executionAwtDialog createAwtDialog(int id, int iElementType)
AwtDialog
element.
Represents java.awt.Dialog class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtDialog
object for executionAwtFileDialog createAwtFileDialog(int id, int iElementType)
AwtFileDialog
element.
Represents java.awt.FileDialog class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtFileDialog
object for executionAwtFrame createAwtFrame(int id, int iElementType)
AwtFrame
element.
Represents java.awt.Frame class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtFrame
object for executionAwtLabel createAwtLabel(int id, int iElementType)
AwtLabel
element.
Represents java.awt.Label class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtLabel
object for executionAwtList createAwtList(int id, int iElementType)
AwtList
element.
Represents java.awt.List class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtList
object for executionAwtMenuItem createAwtMenuItem(int id, int iElementType)
AwtMenuItem
element.
Represents java.awt.MenuItem class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtMenuItem
object for executionAwtPanel createAwtPanel(int id, int iElementType)
AwtPanel
element.
Represents java.awt.Panel class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtPanel
object for executionAwtScrollbar createAwtScrollbar(int id, int iElementType)
AwtScrollbar
element.
Represents java.awt.Scrollbar class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtScrollbar
object for executionAwtScrollPane createAwtScrollPane(int id, int iElementType)
AwtScrollPane
element.
Represents java.awt.ScrollPane class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtScrollPane
object for executionAwtTextArea createAwtTextArea(int id, int iElementType)
AwtTextArea
element.
Represents java.awt.TextArea class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtTextArea
object for executionAwtTextComponent createAwtTextComponent(int id, int iElementType)
AwtTextComponent
element. Represents java.awt.TextComponent class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtTextComponent
object for executionAwtTextField createAwtTextField(int id, int iElementType)
AwtTextField
element.
Represents java.awt.TextField class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtTextField
object for executionAwtWindow createAwtWindow(int id, int iElementType)
AwtWindow
element.
Represents java.awt.Window class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtWindow
object for executionJavaComponent createJavaComponent(int id, java.lang.String sWindowClass, int iElementType)
JavaComponent
element.
This is the base element for any Java element. Should be used for
creating an element whose class name is known and corresponding element
for same is not present in the standard elements list supported by
default.
id
- is the Task Id. Should be unique across the testsWindowClass
- represents name of the AWT/Swing class.iElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application Frame.
JavaComponent
object for executionSwingButton createSwingButton(int id, int iElementType)
SwingButton
element.
Represents javax.swing.JButton class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingButton
object for executionSwingCheckbox createSwingCheckbox(int id, int iElementType)
SwingCheckbox
element.
Represents javax.swing.JCheckbox class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingCheckbox
object for executionSwingCheckBoxMenuItem createSwingCheckBoxMenuItem(int id, int iElementType)
SwingCheckBoxMenuItem
element. Represents javax.swing.JCheckBoxMenuItem class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingCheckBoxMenuItem
object for executionSwingComboBox createSwingComboBox(int id, int iElementType)
SwingComboBox
element.
Represents javax.swing.JComboBox class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingComboBox
object for executionSwingComponent createSwingComponent(int id, int iElementType)
SwingComponent
element.
Represents javax.swing.JComponent class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingComponent
object for executionSwingDialog createSwingDialog(int id, int iElementType)
SwingDialog
element.
Represents javax.swing.Dialog class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingDialog
object for executionSwingFileChooser createSwingFileChooser(int id, int iElementType)
SwingFileChooser
element. Represents javax.swing.JFileChooser class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingFileChooser
object for executionSwingFrame createSwingFrame(int id, int iElementType)
SwingFrame
element.
Represents javax.swing.JFrame class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingFrame
object for executionSwingLabel createSwingLabel(int id, int iElementType)
SwingLabel
element.
Represents javax.swing.JLabel class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingLabel
object for executionSwingList createSwingList(int id, int iElementType)
SwingList
element.
Represents javax.swing.JList class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingList
object for executionSwingMenu createSwingMenu(int id, int iElementType)
SwingMenu
element.
Represents javax.swing.JMenu class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
AwtSwingMenu
object for executionSwingMenuItem createSwingMenuItem(int id, int iElementType)
SwingMenuItem
element.
Represents javax.swing.JMenuItem class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingMenuItem
object for executionSwingPanel createSwingPanel(int id, int iElementType)
SwingPanel
element.
Represents javax.swing.JPanel class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingPanel
object for executionSwingPasswordField createSwingPasswordField(int id, int iElementType)
SwingPasswordField
element. Represents javax.swing.JPasswordField class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingPasswordField
object for executionSwingProgressBar createSwingProgressBar(int id, int iElementType)
SwingProgressBar
element. Represents javax.swing.JProgressBar class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingProgressBar
object for executionSwingRadioButtonMenuItem createSwingRadioButtonMenuItem(int id, int iElementType)
SwingRadioButtonMenuItem
element. Represents javax.swing.JRadioButtonMenuItem class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingRadioButtonMenuItem
object for executionSwingScrollBar createSwingScrollBar(int id, int iElementType)
SwingScrollBar
element.
Represents javax.swing.JScrollBar class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingScrollBar
object for executionSwingSlider createSwingSlider(int id, int iElementType)
SwingSlider
element.
Represents javax.swing.JSlider class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingSlider
object for executionSwingSpinner createSwingSpinner(int id, int iElementType)
SwingSpinner
element.
Represents javax.swing.JSpinner class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingSpinner
object for executionSwingSplitPane createSwingSplitPane(int id, int iElementType)
SwingSplitPane
element.
Represents javax.swing.JSplitPane class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingSplitPane
object for executionSwingTabbedPane createSwingTabbedPane(int id, int iElementType)
SwingTabbedPane
element.
Represents javax.swing.JTabbedPane class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTabbedPane
object for executionSwingTable createSwingTable(int id, int iElementType)
SwingTable
element.
Represents javax.swing.JTable class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTable
object for executionSwingTextArea createSwingTextArea(int id, int iElementType)
SwingTextArea
element.
Represents javax.swing.JTextArea class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTextArea
object for executionSwingTextComponent createSwingTextComponent(int id, int iElementType)
SwingTextComponent
element. Represents javax.swing.JTextComponent class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTextComponent
object for executionSwingTextField createSwingTextField(int id, int iElementType)
SwingTextField
element.
Represents javax.swing.JTextField class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTextField
object for executionSwingToggleButton createSwingToggleButton(int id, int iElementType)
SwingToggleButton
element. Represents javax.swing.JToggleButton class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingToggleButton
object for executionSwingTree createSwingTree(int id, int iElementType)
SwingTree
element.
Represents javax.swing.JTree class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingTree
object for executionSwingWindow createSwingWindow(int id, int iElementType)
SwingWindow
element.
Represents javax.swing.JWindow class.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child frame,
5 if element is on main application or Top Level Frame.
SwingWindow
object for executionWinApplet createWinApplet(int id, int iElementType)
WinApplet
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinApplet
object for executionWinButton createWinButton(int id, int iElementType)
WinButton
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinButton
object for executionWinCalendar createWinCalendar(int id, int iElementType)
WinCalendar
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinCalendar
object for executionWinCheckBox createWinCheckBox(int id, int iElementType)
WinCheckBox
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinCheckBox
object for executionWinComboBox createWinComboBox(int id, int iElementType)
WinComboBox
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinComboBox
object for executionWinComboListBox createWinComboListBox(int id, int iElementType)
WinComboListBox
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 1 if element is on a WebBrowser, 2 if element
is on top level page, 3 if element is present on subframe.
WinComboListBox
object for executionIWindow createWindow(int id, java.lang.String sWindowTitle, boolean bDialog)
IWindow
task.
id
- is the Task Id. Should be unique across the testsWindowTitle
- is title of the windowbDialog
- whether its a dialog or a Window.
IWindow
object for executionIWindowsTest createWindowsTest()
WinEdit createWinEdit(int id, int iElementType)
WinEdit
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinEdit
object for executionWinFlash createWinFlash(int id, int iElementType)
WinFlash
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinFlash
object for executionWinListBox createWinListBox(int id, int iElementType)
WinListBox
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinListBox
object for executionWinListView createWinListView(int id, int iElementType)
WinListView
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinListView
object for executionWinMenu createWinMenu(int id, java.lang.String sWindowClass, int iElementType)
WinMenu
element.
id
- is the Task Id. Should be unique across the testsWindowClass
- represents name of the window class.iElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinMenu
object for executionWinMenuWindow createWinMenuWindow(int id, int iElementType)
WinMenuWindow
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 1 if element is on a WebBrowser, 2 if element
is on top level page, 3 if element is present on subframe.
WinMenuWindow
object for executionWinObject createWinObject(int id, java.lang.String sWindowClass, int iElementType)
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.
id
- is the Task Id. Should be unique across the testsWindowClass
- represents name of the window class.iElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinObject
object for executionWinRadioButton createWinRadioButton(int id, int iElementType)
WinRadioButton
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinRadioButton
object for executionWinScrollbar createWinScrollbar(int id, int iElementType)
WinScrollbar
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinScrollbar
object for executionWinSpin createWinSpin(int id, int iElementType)
WinSpin
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinSpin
object for executionWinStatic createWinStatic(int id, int iElementType)
WinStatic
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinStatic
object for executionWinStatusBar createWinStatusBar(int id, int iElementType)
WinStatusBar
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinStatusBar
object for executionWinTab createWinTab(int id, int iElementType)
WinTab
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinTab
object for executionWinToolbar createWinToolbar(int id, int iElementType)
WinToolbar
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinToolbar
object for executionWinTreeView createWinTreeView(int id, int iElementType)
WinTreeView
element.
id
- is the Task Id. Should be unique across the testiElementType
- possible values, 4 if element is on a Dialog or a child
window, 5 if element is on main application window.
WinTreeView
object for executionboolean executeWindow(IWindow window)
window
- The IWindow object to be executed
true
if the window was executed successfully;
false
if there was an error during execution.java.lang.String[] getAttributeNames(java.lang.String accPath)
accPath
- accessible path of the component whose attributes / properties needs to be fetched.
java.lang.String[] getAttributeValues(java.lang.String accPath, java.lang.String[] attribNames)
accPath
- accessible path of the component whose attributes / properties needs to be fetched.attribNames
- name of the attributes / properties whose values needs to be fetched.
int getChildCount(java.lang.String parentAccPath, int depth)
parentAccPath
- parent's accessible path whose children needs to be traversed.depth
- level till the traversal should be done, 0 specifies just the immediate child count, if depth is greater than the hierarchy depth, returns count of all children in heirarchy
java.lang.String[][] getChildrenAccessiblePaths(java.lang.String parentAccPath, int depth)
parentAccPath
- parent's accessible path whose children needs to be traversed.depth
- level till the traversal should be done, 0 specifies just the immediate children, if depth is greater than the hierarchy depth, returns all children in heirarchy
int getIterationNumber()
java.lang.String[] getPossibleActions(java.lang.String accPath)
accPath
- accessible path of component whose supported actions needs to be fetched.
boolean performAction(java.lang.String accPath, java.lang.String action)
accPath
- accessible path of component on which action should be performedaction
- name of the action to perform
void release()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |