About Built-in Functions

Introduction

 

Web Functional Test provides Built-in functions for various operations. You can type these functions manually in the script but this may result in syntax error and you may find it difficult to debug. To facilitate non erroneous insertion, an utility called "Function Generator" is made available.

 

You can use this utility only during the recording mode. Otherwise, you need to type the functions manually.

 

Using the Function Generator

 

The Function Generator tool can be invoked by choosing the Insert Built-in Functions link placed above the script editor toolbar as shown in the image below. For details, please refer to the following link.

 

 

Sample illustration

 

Assume you want to read the property "name" of a text box named "text_1" and use the property's value in the script then you can do the following:

  1. Choose the function "editGetInfo".

  2. Click on Browse button and select the Edit object from the Web page.

  3. Choose the property "name" from the Property list box.

  4. Click on the button "Paste".

This will insert the function in the script as follows:

 

result = editGetInfo("text_1","name")



Copyright © 1999, AdventNet Inc. All Rights Reserved.