09-03-2009, 05:13 PM
Hi All,
I'm writing a reusable action for one webpage.All the objects are added in OR. This page contains substantial number of controls like WebEdits, WebLists, WebTables, WebCheckboxes, etc.
URL property of page is a regular expression. While design time QTP is highlighting the controls instantly, my problem is when I put this script for testing, QTP is taking a substantial time while doing any operation on any contrl. i.e if I Set some value to a WebEdit field it takes 8-10 seconds & if I use CheckProperty to verify value from this control again it's taking 8-10 seconds per control.
Due to the large number of controls on page, the page is taking around 20 minutes to set/read values in all fields.
Here are some ways that I tried out:
1: I made a record & play script for this page on my machine, again it took the same amount of time. When I tried record & play script for another page in same application, it was running normally. (Other pages which are having large number of controls are working fine at normal speed.)
2: I made a record & play script for this page on another machine, it was working @ regular speed.
I'm getting confused that, whether the problem is on that page or on my QTP settings, because the other scripts made on my mnachine with same QTP settings are working fine. The script made on other machine for this page is working fine on my machine, but only the combination of my machine's QTP & this page is not working properly.
I'm not using any special settings/functions/Recoveries for this page
What should be the reasons?
I'm writing a reusable action for one webpage.All the objects are added in OR. This page contains substantial number of controls like WebEdits, WebLists, WebTables, WebCheckboxes, etc.
URL property of page is a regular expression. While design time QTP is highlighting the controls instantly, my problem is when I put this script for testing, QTP is taking a substantial time while doing any operation on any contrl. i.e if I Set some value to a WebEdit field it takes 8-10 seconds & if I use CheckProperty to verify value from this control again it's taking 8-10 seconds per control.
Due to the large number of controls on page, the page is taking around 20 minutes to set/read values in all fields.
Here are some ways that I tried out:
1: I made a record & play script for this page on my machine, again it took the same amount of time. When I tried record & play script for another page in same application, it was running normally. (Other pages which are having large number of controls are working fine at normal speed.)
2: I made a record & play script for this page on another machine, it was working @ regular speed.
I'm getting confused that, whether the problem is on that page or on my QTP settings, because the other scripts made on my mnachine with same QTP settings are working fine. The script made on other machine for this page is working fine on my machine, but only the combination of my machine's QTP & this page is not working properly.
I'm not using any special settings/functions/Recoveries for this page
What should be the reasons?