Learning All Window Objects
To learn all the window object properties, follow the steps given below:
- Create a new script or select an existing script
from the tree-view of Web Functional Main UI.
- From QEngine Toolbar, click the Start
Record option and then click on the Switch
To Learn Mode option. This will display the Learn
Mode Settings screen.
- From the Learn Mode
Settings screen, choose the map file mode in which the learned
object properties should be stored. The Map File mode includes:
Local
- This map file is local to the script created. The learned object properties
will be stored in <script_name>.map file in <QEngine_Home>/projects/<Suite_Name>/webscripts/<Script_Name>
directory.
Global
- This map file is global to the entire suite. The learned object properties
will be stored in global.map file
in <QEngine_Home>/conf directory.
Shared
- This map file is a shared map file wherein the object properties can
be shared by any script within the suite. The learned object properties
will be stored in the specified shared map file in <QEngine_Home>/projects/<Suite_Name>/conf
directory.
In the Repository
Name field, enter the name of the file in which the learned object
properties should be stored.
- After choosing the map file mode, choose the learn
mode option from the Learn Mode Options
pane. To learn all window objects, click on the check-box Learn All Window Elements check box.
This will automatically check all the other options below the Learn
All Window Elements check box to learn all the objects in the window.
- Click Learn.
- Click on the web page launched in the web browser.
This will learn all the window objects in the web page.
- Click Stop Record
to stop the recording.
- Click on the script in the tree and right-click.
- From the popup menu, click Orchestrate.
- The left pane of the screen will display the Object
IDs of the learned window objects in a icon-based tree view.
- The right pane of the screen will display the following:
- The Category
combo displays the function categories such as Object Functions,
Database Functions, String Functions, etc.
- The Functions
combo displays the list of functions for the selected Object ID.
- The Configure
Argument Values pane displays the list of arguments to be passed
to the selected function.
- You can also parameterize the argument values
by choosing the Data Configuration
option placed next to each of the argument fields. To know the details
of how to parameterize and fetch multiple values from a CSV or Database,
please refer to the topic Creating Data-Driven
Test Scripts.
- The Functions
Preview screen placed below the Configure
Argument Values pane will show a preview of the selected function
with the arguments to be passed.
- Below the Functions
Preview screen is the Script Editor
screen. In this screen, you can insert the required function at
the desired location.
- At the extreme right-pane is the list component
which displays the properties of the selected Object ID in the Property
and Value columns. You can insert
any of the listed functions or enhance your scripts by adding programming
constructs as per your requirement.
Copyright © 1999, AdventNet Inc. All Rights Reserved.