Monday, August 6, 2012

What is Web Event Configuration in QTP

QTP has an option to configure Web Event Configuration.
By default, QTP records all click events.
We can configure other events like onmouserover, onfocus, onchange etc...
If we configure all other events for an object the script is not readable. So we need to configure as per our needs.
The changes will be incorporated after changing the settings. Previous generated scripts dont have any impact.

To configure web events navigate to Tools -> Web Event Configuration.
Here we can choose levels/settings required for recording events.



One of the example here is
User has to enter some value in a textbox, then the button beside it will be activated. For this, there is a back end even "onmouseup". So to click on that button, we need to fire that event like below:

B().P().WE().fireevent "onmouseup"
B().P().WB().click



Using web event configuration, we can configure only the web&HTML Objects. For other objects, we need to update the environment specific XML Configuration files.

No comments:

Post a Comment