Uses of JavaScript Functions      

JavaScript functions are called to perform different tasks:

When learning the objects on a page or a learning a particular object, UFT may call identification functions and filter functions to match controls to test object classes. Objects can be learned during recording and test run. Some of the identification functions are also called when using the Object Spy. For more details, see Identification and Filter Functions.

During a recording session, UFT calls the functions defined in the Record\EventListening elements of the toolkit configuration file to set up the event handlers. These event handlers are then called to translate events to test steps. For more details, see Event Handling.

During a test run, UFT executes operations on controls by calling the methods specified in the toolkit configuration file. For more details, see Test Object Operations.

UFT can also call general functions that the toolkit implements. These functions are:

For more details, see General Test Object Functions.