Add New Script
Choose New Script link
placed below the tabs or right-click the
<Suite_Name> node and choose the New Script
option from the popup menu. In the popup, specify the name of the new
script file and click the OK
button. The script file is by default saved in <QEngine_Home>/projects/<suite_name>/webscripts/<script_name>
directory.
You can also create script under with a specific module name. While creating new script configure script name such that <module_name>/<script_name>. This will save the script under <QEngine_HOME>/projects/<suite_name>/webscripts/<module_name>/<script_name>. This will allow you to group the scripts based on their functionality.
Set Recorder Options
Before start recording, you can set the recording options using the Settings tab. Click on the Settings tab and from the left pane,
choose the Recorder Settings
tab which displays the following options:
Use Suite Level GUI Map - Check
this option to use a global map file for the entire Suite i.e., all the
object property name and values used to identify the GUI objects for
the recorded scripts are stored in a global map file. The global map
file is placed in <QEngine_Home>/projects/<Suite_Name>/conf
directory. Note that in this case useLocalMapFile()
command is not embedded in the script.
Mouseover Recording
Maximum wait time for
mouseover recording - This is the
maximum time upto which QEngine waits to record the mousover event
i.e., the mouseover events are recorded in the test script only if the
user places the mouse over a particular HTML object for more than the
configured wait time. The default wait time for recording mouseover
events is 2 secs. You can configure the appropriate value as per
requirement. Mouseover recording is supported for specific HTML tags
such as, OL, UL, LI, TD, DIV, SPAN, IMG, IMAGE and A tags. By default, all these tags are selected
in the list box placed next
to the label Record Mouseover for the elements. You can select or unselect the required
options. Once you set the options in the Settings tab, to enable recording mouseover
actions, you have to choose the Enable MouseOver Mode in QEngine Toolbar which records the
mouseover actions for the selected tags.
For more details on other Recorder Settings follow Setting Runtime Options
Launch Browser
Choose the Launch Browser
option from the QEngine Toolbar to launch the browser. The default
browser will be launched. Specify a valid URL in the launched browser.
Start Recording
To record the events, choose the Start
Record button placed above the script editor and below the tabs
or choose the Start Record
option from the QEngine Toolbar. The set of actions performed in the web page are recorded in the newly created script file. The script file
can be viewed in the script editor.
Refer to "Using
Built-In Functions" for description of the functions that can be
inserted in the test script for performing specific operations.
|

|
_QE_BLANK
Edit object and Text area with blank (spaces) are recorded as
_QE_BLANK in the test script.
setText("username","_QE_BLANK",2)
On playback, QEngine understands it as blank (spaces) and sets
the same in the object. Hence, note that _QE_BLANK is a reserved word and should not
be used as a value that can be set in an edit object or text area.
_QE_DESELECTALL
On deselecting the last selected item from a multi select list
box, QEngine records the action with a _QE_DESELECTALL.
selectItem("multi","_QE_DESELECTALL",2)
On playback, QEngine understands it as deselection of the last
item. Hence, note that _QE_DESELECTALL
is also a reserved word.
|
Stop Recording
To stop recording events, choose the Stop Record button placed above the
script editor and below the tabs or click on the Stop Record toolbar option from
QEngine Toolbar.
Expert Recording
To record in expert mode choose the Expert mode option from the Start Record drop down menu present above the script editor. This actions will be recorded as fireEventOnElement, setWindowNM, setAlertWindowNM etc.
Analog
Recording
To record in
analog mode choose the Analog mode option
from the Start Record drop down present above the script editor. The
actions will be recorded as fireEventAtPosition.
Learn
Recording
To record in learn
mode choose the Learn mode option
from the Start Record drop down present above the script editor. This
will show Learn mode dialog to choose the learn options. Then the elements in the web page will be automatically learned and the element properties will be stored in the repository chosen while starting the Learn Recording.
How does fireEventAtPosition() in Analog mode works?
fireEventAtPosition() function works with respect to x and y co-ordinates, that is QEngine will capture the click or setText actions with respect to the x and y co-ordinate during the recording process and it plays it back with that co-ordinate position to do the click or setText action.