Selecting a Function from a List - WinRunner

When programming a test, perhaps you know the task you want the test to perform but not the exact function to use. The Function Generator helps you to quickly locate the function you need and insert it into your test script. Functions are organized by category; you select the appropriate category and the function you need from a list. A description of the function is displayed along with its parameters.

To select a function from a list:

  1. Choose Insert > Function > From Function Generator or click the Insert Function from Function Generator button on the User toolbar to open the Function Generator dialog box.
  2. In the Category list, select a function category. For example, if you want to view menu functions, select menu. If you do not know which category you need, use the default all_functions, which displays all the functions listed in alphabetical order.
  3. In the Function Name list, choose a function. If you select a category, only the functions that belong to the category are displayed in the list. The generated statement appears at the top of the dialog box. Note that WinRunner automatically fills in the default argument values. A description of the function appears at the bottom of the dialog box.
  4. To define or modify the argument values, click Args. The dialog box expands and displays a text box for each argument. See “Assigning Argument Values” to learn how to fill in the argument text boxes.
  5. To paste the statement into the test script, click Paste. The function is pasted into the test script at the insertion point.
  6. To execute the function, click Execute. The function is immediately executed but is not pasted into the test script.

  7. You can continue to generate additional function statements by repeating the steps above without closing the dialog box.
  8. Click Close to close the dialog box.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics