Learning All Window Objects

 

To learn all the window object properties, follow the steps given below:

  1. Create a new script or select an existing script from the tree-view of Web Functional Main UI.
  2. 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.
  3. 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:
    1. 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.

    2. 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.

    3. 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.

  4. In the Repository Name field, enter the name of the file in which the learned object properties should be stored.

  5. 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.
  6. Click Learn.
  7. Click on the web page launched in the web browser. This will learn all the window objects in the web page.
  8. Click Stop Record to stop the recording.
  9. Click on the script in the tree and right-click.
  10. From the popup menu, click Orchestrate.
  11. The left pane of the screen will display the Object IDs of the learned window objects in a icon-based tree view.
  12. The right pane of the screen will display the following:
    1. The Category combo displays the function categories such as Object Functions, Database Functions, String Functions, etc.
    2. The Functions combo displays the list of functions for the selected Object ID.
    3. The Configure Argument Values pane displays the list of arguments to be passed to the selected function.
    4. 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.
    5. 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.
    6. Below the Functions Preview screen is the Script Editor screen. In this screen, you can insert the required function at the desired location.
    7. 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.