Skip to main content

Thoughts on improving QTP execution performance by utilizing Descriptive programming (DP) .....

Some of the QTP projects/users might have experienced the following problem when their project getting huge or they need QTP execution very frequently for their product release.
Problem: When repository is getting huge due to the large no of objects being added to object repository. Memory usage will be high when the Object repository size increased causing a decrease in the performance of QTP while recognizing objects. As you aware of QTP 8.2 and below Mercury recommends that OR size should not be greater than 1.5MB.
Solution: Descriptive programming (DP) which does not depend on the QTP object repository features. But it stores the Application objects property values in the code itself.
What is DP, how that can be achieved and when it is utilized more………
DP is nothing but avoiding QTP object repository by directly describing an object property values in the code. For example, to close a Browser,
Set X = Browser (“Micclass: =Browser”) ‘code assigns Browser description to a variable.
X.Close ‘code will close the browser.
The alternative method which uses Object Repository does the same functionality but it initially checks the Browser description in Object repository locations and tries to map with web browser which consumes more time.
You can also use descriptive programming in order to perform the same operation on several objects with some identical properties. Suppose an application has 2 buttons on its 10 pages. Let the buttons be “Cancel” and “Save”. DP needs minimum of 2 lines of code for this 2 buttons in 10 pages.
Alternative method directly increases the objects in to 10 times in Respiratory according with number pages increases in the AUT.
These are some of the usages of DP which reduces object repository size there by increasing QTP performance.

Comments

Popular posts from this blog

Problem in syncing QTP with your web application.....

You have a very simple solution ...Instead of using wait property or inserting synchronization point. The following piece of script can be made reusable action and can be called anywhere while web page is loading.. If Browser (“micclass: =browser”).page (“micclass: =page”).exist then Environment. Value (“class”) = browser (“micclass: =browser”) Else if Environment. Value (“class”) = browser (“creationtime: =1”) End if Start timer = time Set B = Environment. Value (“class”) While B.busy = true OR B.readystate <> 4 Set B = Environment. Value (“class”) Wait (1) Wend End timer = time If time > = 0 then Msgbox (“browser is loaded”) End if Note: In While loop, 2 properties of Browser being used.

Quick reference about HP QuickTestPro ..

When I started using QTP in the mid of year 2005, the 1st question came in my mind was how do the recorded scripts replay the application scenarios without our intervention. The following things help you to understand about the fundamental features in QTP. About HP QTP Automation Tool: Scripting Language: VBScript, Vendor – HP, Purpose - Regression, Data migration, GUI, Integration Testing Commonly used Automation Tools:  HP QTP , IBM Rational Robot , Segue’s Silk Test , Test complete, actiWATE, eValid, ITP, liSA, PesterCat etc Some of the Automation Frameworks used…  Record and Playback (RP)- Recording the Script in a sequence and Replaying back  Data driven (DD)– by Parameterizing all data in script  Modularity driven (MD) – by creating independent scripts that represent modules, sections, and functions of AUT.  Keyword driven (KD)- Functions mapped to Keywords  Hybrid approach – Combination of DD, KD, MD & RP Recording Modes: Standard Recording: Done by normal recording to