Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18488 Posts in 4838 Topics- by 32654 Members - Latest Member: revitvm
 

AdvancedQTP forums have been nominated as a finalist in ATI’s 2nd annual automation honors awards!

We’d like to thank you for your continued support and participation, and urge you to hurry and vote.

Make you voice count! 


Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Script with DP is slower than script with OR for a webbased App    (Read 124 times)
Checkmate
User
*
Offline Offline

Posts: 45


« on: July 21, 2010, 07:23:49 PM »

Hi All,

During Web Application Automation , I noticed that Execution time of the script in which complete Descriptive Programming is used is greater than execution time of the script where primarly OR and part of DP is used.

what could be reasons for better performance of teh script when OR is used thans when DP is used? Is it because when OR is used , the Object Identification is already compiled?



Logged
Tarun Lalwani
Advanced User
*****
Offline Offline

Posts: 886



WWW
« Reply #1 on: July 21, 2010, 10:45:05 PM »

OR use some enhancement techniques like sourceIndex. It stores the sourceIndex when you add the object to the OR and during replay it would check if the object at that index is the one that you are looking at. If it is the one then it uses the same else it run its identification mechanism. So this saves QTP on few objects for which sourceIndex does not change during replay.

But during DP QTP has to always go through the identification algorithm and that is the reason that there is a performance difference in both
Logged

Tarun Lalwani,
QuickTest Professional Unplugged - My new Book on QTP...
Checkmate
User
*
Offline Offline

Posts: 45


« Reply #2 on: July 25, 2010, 06:08:19 AM »

Thanks Tarun, is SourceiNdex info documented somewhere in QTP Manual ?
Logged
Tarun Lalwani
Advanced User
*****
Offline Offline

Posts: 886



WWW
« Reply #3 on: July 25, 2010, 07:26:37 AM »

Well only this line

Quote
Run using source index. Uses the source index property for better performance.
Logged

Tarun Lalwani,
QuickTest Professional Unplugged - My new Book on QTP...
Pages: [1]   Go Up
Print
Jump to: