QTPExpert,
OR is an inbuilt feature in QTP which stores information about the objects in your AUT. When you run a script, QTP loads OR at the start in one go and starts using the object information to run the steps. Since the OR loading is happening only once, all objects are accessible throughout the scripts and thus takes less time for execution.
Whereas if you use DP, object informations are available only at runtime. QTP needs to get the description of the object from the code and use it to identify the object in AUT. This increses the execution time. So if you have written the entire script using DP, it increases burden to QTP to read and create a description for object which takes more time for execution.
To use OR or DP is always a debatable topic. It all depends on your choice and scenario. There is no rule for that. I always use OR as it takes less time and the object can be used at multiple places. I opt for DP only in case OR is not feasible for use.
Regards,
Ankesh
OR is an inbuilt feature in QTP which stores information about the objects in your AUT. When you run a script, QTP loads OR at the start in one go and starts using the object information to run the steps. Since the OR loading is happening only once, all objects are accessible throughout the scripts and thus takes less time for execution.
Whereas if you use DP, object informations are available only at runtime. QTP needs to get the description of the object from the code and use it to identify the object in AUT. This increses the execution time. So if you have written the entire script using DP, it increases burden to QTP to read and create a description for object which takes more time for execution.
To use OR or DP is always a debatable topic. It all depends on your choice and scenario. There is no rule for that. I always use OR as it takes less time and the object can be used at multiple places. I opt for DP only in case OR is not feasible for use.
Regards,
Ankesh