Categories

Download QTP 11.5 trial version free

Download QTP 11.5 ( Also called as UFT ) trial version for free from HP download center.

Before that you need to register with HP. This evaluation copy of QTP 11.5 will be expired after 30 days.

Following link will directly take you to download  “HP Unified Functional Testing 11.50 CC English SW E-Media Evaluation”

Click here to download QTP 11.5 (UFT 11.5)

If you like this article, You can subscribe through mail.

QTP GetROproperty and GetTOproperty

QTP GetROproperty and GetTOproperty
I usually get many queries on GetROproperty and GetTOproperty method in QTP. So here I have tried to describe GetROproperty and GetTOproperty methods with very simple and practical examples which will  be really helpful for you guys to increase you QTP knowledge and overcome your doubts.
To understand GetROproperty and GetTOproperty methods practically just follow below steps:

1.       Start recording on QTP.

2.       Open Google.com page

3.       Click on “Google Search” button.

4.       The script will looks like following,

SystemUtil.Run “http://google.com/”,””,””,””
Browser(“Google”).Page(“Google”).WebButton(“Google Search”).Click
Browser(“Google”).Close
 5.       To use “GetROproperty” Now modify the second statement to following,
Msgbox Browser(“Google”).Page(“Google”).WebButton(“Google Search”).GetROproperty(“name”)
 6.       Now run the above script, You will get msgbox which contains “Google Search” in it.
GetROproperty: This property is used to get the property of the object during runtime from the UI. In our case GetROproperty gets property of “name” object of “Google Search” webbutton.
 7.       Now copy the above statement and modify it to following,
Msgbox Browser(“Google”).Page(“Google”).WebButton(“Google Search”).GetTOproperty(“name”)
 8.       Now close your browser and comment out other code except above statement.
 9.       Run only above  GetTOproperty statement. You will again get msgbox which contains “Google Search” in it.
GetTOproperty: This property is used to get the property of the object during runtime from the Object repository. In our case GetTOproperty gets property of “name” object of “Google Search” webbutton which is already stored in QTP object repository.
Now hope you are more clear regarding GetROproperty and GetTOproperty methods in QTP. You are always welcome to share your thoughts or doubts in QTP.
If you like this article, You can subscribe through mail.

Descriptive programming in QTP

Descriptive programming in QTP.
Descriptive programming is the smartest way for automation in QTP.
Descriptive programming in QTP is much different from simple record and play method.
Following are some important points regarding descriptive programming in QTP.
  • It doesn’t require recording the page and so no need worry about object repository. 
  • You can optimize your code.
  • Before starting descriptive programming you need to know about object properties and their values, using object spy you can see each object’s properties.
Let’s learn descriptive programming in qtp in a very simple and practical way.
I have given 3 different examples which uses different method for automation in QTP.
Using object repository method: Example 1
Following QTP script is the simple example of record and play method.

SystemUtil.Run “http://google.com/“,””,””,””
Browser(“Google”).Page(“Google”).WebEdit(“q”).Set”quicklearnqtp”
Browser(“Google”).Page(“Google”).WebEdit(“q”).Submit
Browser(“Google”).Close
Now, you want to write above script in descriptive programming. For that you need to get all object properties using “object spy” tool. E.g Browser is the parent object and its property is “Name=Google” and Page is the child object whose property is “Title=Google”.
Now understand following example which is the combination of “record & play” and “descriptive programming” method. You can say hybrid programming.
Hybrid programming: Example 2

SystemUtil.Run “http://google.com/“,””,””,””
Browser(“name:=Google.*”).Page(“title:=Google”).WebEdit(“q”).Set”quicklearnqtp”
Browser(“name:=Google.*”).Page(“title:=Google”).WebEdit(“q”).Submit
Browser(“name:=Google.*”).Close
Note: Don’t copy and paste and try to run above examples because it requires object repository to execute.
Now at this point you may be very well aware of hybrid programming (combination of descriptive programming and using object repository method).
Following is the example of pure descriptive programming in QTP which you can copy and paste to QTP (Tested with QTP 10 and IE 8) and can execute it.
Descriptive programming in QTP: Example 3

‘Variable declaration
Dim GoogleBrowser
Dim GooglePage
Set GoogleBrowser=Browser(“name:=Google.*”)
Set GooglePage=GoogleBrowser.Page(“title:=Google.*”)
‘URL
URL=”http://www.google.com”
SystemUtil.run “iexplore”,URL
‘Write ‘quicklearnqtp’ in search box
GooglePage.WebEdit(“name:=q”,”type:=text”,”html tag:=INPUT”).Set “quicklearnqtp”
‘Click on Google Search
GooglePage.WebButton(“name:=Google Search”,”index:=0″,”type:=submit”,”html tag:=INPUT”).Click
‘Close browser
GoogleBrowser.CloseAllTabs
I hope you gained a lot on descriptive programming technique from this post.I will provide more real time examples and  details on descriptive programming in QTP in my next post. Let me know your inputs on descriptive programming in QTP and share your feedback.
If you like this article, You can subscribe through mail.

Download QTP 11 trial version free

Download QTP 11 trial version for free from HP download center.

Before that you need to register with HP passport. This evaluation copy of QTP 11 will be expired after 30 days.

Click Here >> To download QTP 11 trial version for free.

If you like this article, You can subscribe through mail.

QTP 10 vs QTP 11

QTP 10 vs QTP 11

QTP 11 is now available in market. There are many updates in QTP 11 with compare to QTP 10. Following are some features which are new in QTP 11 compare to QTP 10.
QTP 10 version was able to identify object through normal object identification method only where QTP11 is able to identify the object in following different ways:
Selenium (Open source WEB UI automation tool) experts will be aware of XPath and CSS method to recognize the objects, I will describe about XPath and CSS object identification method soon in this blog. These methods will make life simpler for QTP 11 users.
In QTP 11, results viewer have been improved to pie charts, statics for both current and previous test runs, summary page.
Support for recording using Firefox is now available which will be really helpful.
Normal object identification method has been updated with “Visual Relation Identifier” in addition to “ordinal identifier” features in which object identification which will depend on relation to neighboring objects and will be helpful to overcome weakness of ordinal identification feature only in QTP10.
“LoadFunctionLibrary” statement in QTP 11 will be helpful to load function library at any step of runs instead of starting of run.
Automatically parameterize steps feature will be available in QTP 11.
New Sliverlight Add-in is supported to test objects in sliverlight 2 and silverlight 3 applications.
Extend WPF and Silverlight support.
Regular expression creation will be very easy in QTP 11.
Now you can test GUI and UI-Less application functionality in one test with QTP 11.
Avoid downtime due to license server failures.
Web 2.0 toolkit applications support.
You are always welcome to share your thoughts on QTP 10 vs QTP 11 features and to give your valuable feedback.
If you like this article, You can subscribe through mail.

Object repository types in QTP

Object repository types in QTP
I have been asked many times about doubts regarding object repository types and their extensions in QTP, most learners are confused between local object repository, shared object repository and per action repository. Here I have tried to explain object repository types in QTP.
I am sharing following information depending on my own QTP experience, I may be wrong but I will try my best to share the true knowledge what I have.
There are basically two types of object repository.
  • ·         Local object repository
  • ·        Shared object repository
Local object repository:
Local object repository is the object repository which is specific to QTP test (for e.g. test1) and not available for another QTP test (e.g. test2).
The extension of Local object repository is .bdb (berkley data base), lots of people considered .mtr as local object repository. But let’s verify and clear the confusion between local object repository extension (.bdb or .mtr) by following simple  steps.

1.       Create one QTP test.
2.       Record some web page and store the QTP test file.
3.       Copy and  rename Action1->ObjectRepository.bdb file to MyRepository.tsr
4.       Open QTP and open MyRepository.tsr file through Resources->Object Repository Manager.
5.       Now you can see the objects recorded by you.
 

Note: Using above steps we can conclude that .bdb is the local object repository. In above steps we made local object repository to shared object repository by changing its extension from .bdb to .tsr so that we can view the objects from .bdb file.
Shared object repository
Shared object repository is the global object repository which we can use for any QTP test by associating it. We have already covered associating shared object repository to any QTP test. The extension of shared object repository is .tsr. (test shared repository).
.mtr (module test repository) is the extension of per action repository which contains checkpoints and other stuffs. It is a binary file. If you have more practical knowledge regarding .mtr you are always welcome to share.
All QTP experts are welcome to share their thoughts on object repository types in QTP.
If you like this article, You can subscribe through mail.

Moving from quicklearnqtp.blogspot.com to www.quicklearnqtp.com

Dear QuicklearnQTP Readers,

I am very pleased to say you all that http://quicklearnqtp.blogspot.com is moving to http://www.quicklearnqtp.com.

So, Thank you all for your kind support and motivation that triggers me to write highly valuable information. Please update your links and stay updated with me.

Please continue your support and provide me your valuable feedback to quicklearnqtp[at]gmail.com.

If you like this article, You can subscribe through mail.

Best QTP books

QTP books: Nowadays internet is the most popular method to learn and build the skills so we always look for the soft copies but many times we are more comfortable and convenient with heard copies for reading. So Here I have listed all best, basic and advanced QTP books that you can buy from Amazon with discounted price.

Please wait while page loads – List QTP books:

Useful QTP books from Amazon.

If you like this article, You can subscribe through mail.

QTP books

QTP books: Nowdays internet is the most popular method to learn and build the skills so we always look for the soft copies but many times we are more comfortable and convenient with heard copies for reading. So Here I have listed all best, basic and advance QTP books that you can buy from amazon with discounted price.

Export QTP results to HTML

How to export QTP results/reports into HTML format? The procedure to export QTP results to HTML is same as exporting to PDF. In my previous post I had given detailed procedure for PDF. Here I am going to give a step by step procedure to export QTP results to HTML.

Following are the steps to export QTP results/QTP reports to HTML:

  • Go to Automation->Results.
  • “Untitled – Test Results” Window will be opened, in which you can see small window opened named “Open Test Results”. (If it doesn’t opened than you can open it by click on File->Open in “Untitled – Test Results” window.)
  • Click on “Open File..” and locate the results.xml (QTP result file) file which you want to export into HTML format from /Res1/Report/ location.
  • Now go to File->Export Report, Select File Type as HTML.
  • You can select export format according to your needs than click on OK and save the file.

Using above steps you can easily export QTP results/reports to HTML format.

If you like this article, You can subscribe through mail.