Event recording configuration
When you record on a Web application, UFT One generates steps by recording the events you perform on the Web objects in your application. An event is a notification that occurs in response to an operation, such as a change in state, or as a result of the user clicking the mouse or pressing a key while viewing the document.
UFT One web recording configuration for add-ins
UFT One includes event recording configurations that have been optimized for each Web-based add-in, so that in most cases UFT One records steps for relevant events on each object and avoids recording steps for events that usually do not impact the application. For example, by default, UFT One records a step when a click event occurs on a link object, but does not record a step when a mouseover event occurs on a link.
Each Web-based add-in has its own .xml file that defines the Web-event recording configuration for objects in that environment.
When you perform an operation on a Web-based object during a recording session (and the appropriate add-in is installed and loaded), UFT One uses the recording configuration defined for that environment. If your application contains several types of Web-based controls, the appropriate Web event recording configuration is used for each object and the configuration for one environment does not override another.
View and customize the configuration settings for the Web Add-in in the Web Event Recording Configuration Dialog Box. The settings in that dialog box affect the recording behavior only for objects that UFT One recognizes as Web test objects.
In most cases, it is not necessary to customize the Web event recording configuration of other add-ins. If you do need to customize these settings, you can do so either by editing the XML for the relevant add-in manually, or you can import the XML into the Web Event Recording Configuration dialog box to make the necessary changes and then export the modified file.
For task details, see Modify event recording configuration.
Web Event Recording Configuration XML Files
The Web event recording configuration XML file is structured in a specific format when you export it from the Custom Web Event Recording Configuration Dialog Box. If you are modifying the file, or creating your own file, ensure that you adhere to this format for your settings to take effect.
<XML> <Object Name="Any Web Object"> <Event Name="onclick" Listen="2" Record="2"/> <Event Name="onmouseup" Listen="2" Record="1"> <Property Name="button" Value="2" Listen="2" Record="2"/> </Event> </Object> . . . . . . . . . <Object Name="WebList"> <Event Name="onblur" Listen="1" Record="2"/> <Event Name="onchange" Listen="1" Record="2"/> <Event Name="onfocus" Listen="1" Record="2"/> </Object> </XML>
The following attributes enable you to define the listening criteria and recording status options in the XML file:
2. If Handler
4. If Behavior
6. If Handler or Behavior
6. Enabled on Next Event