Step by step guide to learn QTP

Updated On Jul 26, 2013 by Ankur Jain

If you are someone who likes to learn new technologies by self, this article will help you immensely. QTP is a very popular functional testing tool by HP.  With the recent launch of version 11.5, it has been integrated into HP UFT (Unified Functional Testing).
Learn QTP: Step by step guide for beginners

If you are into QA even for a while, chances are remote that you may have not heard of this three letter acronym. There can be many reasons for you wanting to learn this tool. Your services based company may have recently bagged an automation project, you may want to advance in your career, you may be feeling bored in your “manual testing” career or maybe your next company requires someone with automated testing skills. Whatever may be your reason, QTP is a great tool that should be added to your software testing skill-set.

Here is a step-by-step guide to get self trained on HP QuickTest Pro.

  1. Start with the basics of Software Testing
  2. Learn what is regression testing.
  3. Check this exhaustive bible on What is QTP?
  4. Learn about when should automation testing come into picture. Refer When should we automate using QTP?
  5. Now the real thing – Download QTP tutorial. Preferably for the latest version. Go through the the tutorial word by word.
  6. There are some topics that I consider of utmost important for beginners
  7. Download QTP demo version. This is valid for 30 days, which – if you work hard – should be enough for you to get a good hold on basics.
  8. Download QTP Student handbook. It takes you through the step by step sample case study. Practice with the demo applications provided. One is web based and the other is windows based.
  9. Next learn VBScript, the scripting language used with QTP. Refer basics of VB Script Part1, Part2 and Part3.
  10. Also learn how to manage the data table with QTP and Excel Part1, Part2, Part3
  11. Once you’re comfortable with this much, you are ready to take on a real-world project. If you can’t get hold of any project, practice with the demo applications provided.
  12. I am sure by now you must have started hearing about descriptive programming. Learn the basics of Descriptive Programming and when it should be preferred over normal record/replay.
  13. Once you have mastered the basics, go to QTP Forums and try answering questions. Remember, questions asked in the forums are from the real-time scenarios – you will get to learn a lot by sharing and reading different approaches to solve a particular problem.

In case you need all this and more in a step by step manner, you can join our video based QTP training course. Once you’re comfortable with QTP, you can also take QTP certification using our high quality mock questions for QTP certification.

In case you have any questions, please feel free to ask on our Q & A forum.

If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

Welcome new readers: Download the Free eBook!

Ankur JainI am Ankur Jain, the owner of LearnQTP and founder of a software organization. This site is run, maintained and updated by me and my team. Feel free to take a look around, you may want to start with What is QTP? 

You can connect with me on my Google+ page. 

Please enter your first name and email address below to instantly download the eBook on Optimizing QTP Scripts. In future, we will make sure you get new tips & tricks on QTP delivered direct to your email box.



Share This:

99 Comments

  1. bhagyaraju

    please send a link HP QTP 10.0 VERSION

    • @bhagyaraju: If you’ve a valid SAID , you can download from HP’s site. Otherwise publicly available download link is UFT 12 (in the menu above)

  2. John Petriy

    Hey Ankur. I wanted to introduce myself. My name is John and I am also a quality assurance automation engineer. I am writing an article on some of the top struggles qa automation engineers face when first starting out. I wanted to get your input on the matter and see if you had anything to add if you had a moment. Thanks for your time in advance.

  3. Zubair

    Hi Ankur,

    I have downloaded UFT 12. Can I start working on it following your tutorial or I need to have QTP 11?

    Thanks,
    Zubair

  4. Renuka

    Hi Ankur,

    I don’t know VBscript. I am aksed to test a form of 33 fields including login screen using UFT12. Will I be able to record and play using UFT12 putting check points in the script? Please advise.

  5. narayan

    Hi Ankur
    hoping u great.i want to download 11.00 for qtp but it is showing uft 12.00 so i want only qtp 11.00

  6. Nishank Bharil

    Hi Ankur, Just need to know if I want to click and hold click on particular java object for say 10 sec in QTP how I can achieve this task.

  7. wassim

    Hi
    I am new to QTP. I just downloaded QTP 9.0 but when I start to record, nothing is being recorded and I cannot see any VBscript being created. Can anyone point out where the problem could be?
    Thanks

  8. wow,it is very impressive from QTP learners

  9. sudheer sastry.n

    sir,in one of my interview,interviewer asked me this question “is there any software without bugs or defects?” i searched alot for this in various websites but couldnt find the proper ans.plz provide the correct ans.is it real possible to develop 100% bug free sw?is there any such sw in our world?if yes, who developed it?

    • praveen kumar reddy

      Mr.sudheer sastry.n, there is no application in the earth with 0(zero) defects. software with no bugs is not possible.100% testing is not possible.because if u catch one defect and try to solve that it may causes to made some other defects. so 100% defect free software is not possible.

  10. rita

    I know Just only manual testing,I never worked on Testing.
    Now I want to learn automation tools QTP and Quality center on my own within week time and I should be able to attend the Interview within a week.
    please can anyone give me advice what I have to do to make the things faster within this short span of time.
    am very much tensed about it,do anyone give me any suggestion and any good ppt’s or docs or any other special docs related to QTP and Quality center which makes me to learn the things faster(I mean to ask any good docs those are easily understandable and only limited docs not including complete things in QTP like help docs)
    or suggest me only main topics to learn(In QTP and QC)at present those are important for Interview purpose and I can be able to manage things when I get job on QTP and QC.
    please friends help me I’ll be waiting for your reply with eager.
    regards

  11. Salem

    Thank Ankur, I get your answer.

  12. Salem

    Dear Ankur,

    I posted previous comment but it disappeared. And I post again now.

    Could you help me to identify an image of win object. My application is coded by vb6.
    I can’t spy any image.

    Thank you in advance

  13. Salem

    Hi Ankur,

    I have an image of win object. Application is coded by vb6. Could you please help me to identify image object?

    When I spy object, I can not find it. I add all objects of form and use “Locate in Repository” and “Highlight in Application”, but I’m not successful.

    Thank you in advance

  14. superAgent

    I want to know, where can I find available keywords in QTP version 9.0

    • Author: Ankur Jain

      superAgent: It was under View > Available Keywords. I’m not sure but I guess this feature was launched in QTP 9.2 not in QTP 9.0. Can someone please confirm?

  15. pratik dosi

    gud..

  16. Software Testing Expert

    Good Article about QTP Beggeners .

  17. Anonymous

    HI Ankur,

    Thanks for posting this….its really helpful.

  18. Pushpa

    Hi Ankur,

    Your blog is helping me learn and master the tool . All i need is a little knowledge on testing basics .
    You r helping us a lot.!! Keep posting..

    Thanks once again

  19. Geetanjali

    hello your guide is really good..it helped me a lot but am lil confused like i have studied vb scripting n qtp but am confused about programes which material should i refer for programes and do they aks program in interview..please reply..

    thankyou

  20. Anonymous

    hi i am new to this blog & till now i dont have so much idea how to learn qtp to go for automation testing,by reading your article m feeling happy that there is some1 to guide me..

  21. super

    Pls write the QTP Script for the below mentioned details
    Operand1 Operator Operand2 Output Result
    10 + 10 20
    12 – 2 10
    6 * 3 5

    Add first 3columns and compare with 4th column if both are same display Passed in result column otherwise Failes

  22. Taj

    Hi Iam an experienced oops programmer with over 10 years of experience in various languages, presently working as an Architect.

    Being so many years in product software devlopment i am well verse with testing concepts , although never performed any testing role.

    I have recently become a bit curious about Test Automation, I see that thre is a possibility of exploiting my programming experience and using that for Test automation. So my first question is Am I thinking right, second waht are the prerequisites for QTP

    Thanks
    Taj.

  23. ANU

    Hi Ankur,

    I am Anu and I want to learn QTP and take certification exam. Please help me in providing some pdf materials or docs so that I can learn QTP with certification exam prospect.
    I need to learn QTP and give this certification exam asap because I can get a job if I have this certification.
    Please help on this.
    I don’t have idea about where to take the certification and how.
    I need your help on this too.

  24. Anonymous

    Can anyone provide me exam material for the preparation of
    1. HP Quality Center v10 = HPO-M31
    2. HP QuickTest Professional v10 = HPO-M39.

    Please email me vikramsinghkalsi@gmail.com.
    thanks in advance .

  25. Harish

    Hey Ankur,
    Ur effort are really appreciated in bringing on QTP to everbodys desk with such ease…
    Wish u luck in all ur Future plans.
    Keep going…

  26. b

    This is a shame. I called HP explained I was an individual looking to buy a copy of QTP Pro to learn and upgrade skills, the best deal they could give me on single-seat license was $8,000.

    Ouch.

  27. Anonymous

    can we use qtp to test android os or any of its application.i want to test android os specifically.

  28. mahesh

    Hi Ankur,

    Thanks a lot for the artical,

    I am Java Developer(3+yrs Exp) and now doing automation in which i need to place an XML file into servers JMS queue (I ma using Active MQ) using QTP as one particular step in automating testcase.

    can u pls help me on this
    cmahesh1985@gmail.com

  29. identifierzss

    Hi Ankur,

    currently i’m doing manual testing on .net and php projects. most of them are websites.does QTP support .net and php or is hould install any add-ons while installing qtp.Please reply….

  30. Karteek

    Hi Ankur,
    Being a Manual Tester i always wanted to learn automation and most importantly QTP….your post has helped me gain some decent knowledge on it…though i need to put it into frequent practice….

    Thanks a Lot….

    Karteek

  31. Anonymous

    Hi Ankur,

    What is the price to purchase QTP 10.0 license?

  32. Raaa..ju

    I am using QTP 9.1. Is it supports IE7 crash in recovery scenario ?

    I m in doubt???
    Please any clarify this to me.

  33. Fidel

    I see that the answers to more than 50% of the questions that people ask Ankur here (generally) can be googled and found out in a matter of minutes. If only people understood that there is no way to “quickly learn” QTP. And I would say that you would benefit most if you go through the tutorials (without skipping parts) and try working on QTP on your own rather being spoon-fed. Most of the basic and intermediate parts of QTP are explained very well in the pdfs that come with QTP.

    1> If you get an error – paste the error into google. In 99% of the cases, you would not be the only one to receive this error, and a solution to the same would be posted in some forum.
    2> If your question needs something to be tried out in QTP, try it out your self !
    3> License keys can be bought. It can be bought at a nominal price of more than a lakh (in Rupees, if I am not wrong) If you are smart enough, you can find other ways of getting QTP to work for your personal use :)
    4> To find if a particular version of QTP is supported on your OS, refer HP site (or google it if you want to know about a previous version).
    5> There is no crash course in QTP
    6> The trial version of QTP can be downloaded on the HP site. Google it.
    7> If you do not have programming knowledge, get it ! For VBScript, there are a lot of good books to refer “VBScript Programmer’s Reference”. Nice detailed book. Ofcourse you need to have the patience to go through it.

    God helps those who help themselves :)

  34. Anonymous

    Hello Ankur,

    Please could you guide me regarind Salesforce recording with QTP 10 version. I am very used too work with SAP + QTP 10 but sales force is new tool and I am facing some issues, for example, not able to record some exact positions of any table, suppose im clicking while recording on 10th row and entering some data but when i run script, it click on 3rd or 4th row and enter data over there and sometime, qtp not record some objects. Please could you give me ur contact details or send me email on, zesdar-4@student.ltu.se
    I am really greatful to you.

    Thanks in advance for your help.

    Best Regards

  35. integrated pest management

    Hi Ankur,
    You provided very nice article on QTP.and i think it will very helpful for starter of QTP…….Thank you once again….

    Pankaj

  36. FB Tester

    Hi,
    Is it possible that the http://newtours.mercury.com website sometimes is not available?
    Yesterday I started working with the tutorials and today it seems that the website is not working properly.

  37. Anonymous

    I am trying to create a test that will save a value within a software application however, when the saved automated test case re-runs, the software errors stating the value the test case is trying to save already exist, is there a way i can have my qtp test case insert a random value into a particular text box so i can avoid this error?

  38. niraj

    Hi
    How can I apply XML Check poing?Can any one give me proper exapmle?
    Plz reply me on niraj_chavan@yahoo.co.in

    Thanks,
    Niraj

  39. Sangeeta

    Hi Ankur,

    First of all honestly i appreciate your patience and thanks for posting and sharing knowledge……its marvelous!!!!!

    The topic is arranged and answered very systematically!!

    Thanks

  40. sushree

    Hi Ankur,
    First thanks for such a wonderful work. Your blog is very much beneficial for all QTP users .I went through the steps you mentioned to gather more & more knowledge in QTP.But I am unable to download the demo version of qtp from Hp site.
    Could u please help me out in solving this problem,so that i can get a clear knowledge about the QTP.

    It will be a great help for me.
    u can mail me at sushree.satpathy06@gmail.com

    Thanks
    Sushree

  41. Anonymous

    Help! There is no QTP demo to download from the HP website. ANy software require logon & Co detail which I do not have any. How do I download QTP? Jane

  42. Anonymous

    Do you mean http://newtours.demoaut.com/
    the Mercury Tours website used in the HP Tutorial for QTP ?

  43. Jatinder

    Hello Ankur..

    thanks for ur valuable information about QTP..

    i need that Air Ticketing Application to practice on that…From where i can get that ..bec all examples based on that application..i have qtp setup but hav’t that application..so plz Help me out…

  44. karang

    Thank you for putting all this together

  45. Anonymous

    Hi Ankur,
    How are you?
    I am vipul,
    I am doing automation in QTP for my web UI application. I have recorded some flows but now my recorded script is not running as it can’t identify some objects as there are some chagnes being done at UI level. So help me that how can I handle my script if any objects doesn’t have unique id and there are some changes done in those objects.

  46. sanju

    Hi Ankur,

    Hope u doing great!

    My question is regarding the registration of username and password on merury tours website.
    I registered so many times but the site is not accepting the username and pwd.Earlier i was using mercury as username and password,now site is not accepting it also.Please help.

    Regards,
    Sanju.

  47. sanju

    Hi Anonymous,

    This is regarding the comment posted by you on 4-12-08.I am also getting the same error when try recording on web app.Where can i find this UAC?I am using vista.Please help me out.

    Regards,
    Sanju.

  48. venkatesh

    Hi All,
    I’m new to QTP.Need some help.
    I’m currently going through the tutorial as well.

    During my recording,I have entered a value for the price as 20000.
    i have parameterized this value thru datatable.

    But now,in my next script,i want to read this value from the screen.how do i achieve that ?

    1.how do i read/get the value from the screen ?

    2.How do i read/get the particular row/column value from the datatable ?

    Any help is much appreciated.

    Thanks,
    SV

  49. abhilasha

    Hi Ankur
    Thanks a lot for such a great information. I went through the steps you mentioned. Downloaded the qtp from hp site and installed. Now when I open qtp, it gets open and after few seconds it throws an error Visual C# compiler error. then continues gives the same error for 3-4 time then closes the qtp application.
    So I am not able to learn qtp.
    Could you please help me out in solving this error.
    Would be very greatfull to have any comments on this.
    Thanks a lot.

  50. Shivasini

    Hey Ankur,
    I have 3 years or work ex in Manual Testing of ERP applications.
    I now want to learn QTP as well as the other automation tools.
    Can you pleae tell me if going through the links you provided me will be enough to work on real time projects?
    Also, the QTP download link is dead. Can you please fix that?

    Thanks,
    Shivasini

  51. Anonymous

    Ankur,

    I am greatful to this blog. I was unaware about QTP. However now I am feeling that I have learnt the basic concepts. The steps mentioned by you to do the same was very much helpful.
    Now I am trying to learn the concept of keyword driven methodology(which is given in user guide). I am strucked in creating the functions. Functions like to verify the Mercury tours registration form, for error messages, invalid date entries etc.
    How to do that?FYI, I am not having any programing knowledge.

  52. micky

    hi ankur i m new to IT industry n ws lkng tht i ssall go with QTp..can u suggest me some thing abt this i ill higly appreciate how to start with it n proceed further

  53. Anonymous

    Hi Ankur can you please help me and give a navigation steps to down load Trial version of quality center from HP. I tried once but failed to download.your help is highly appreciated.
    thanks

  54. Ankita

    Hi Ankur,

    You have given very helpfull information for the biggners.

  55. Tom

    Ankur,
    Can you send me or put the QTP student handbook on your site? I went to the linked site and it brought up a bunch of inappropriate sites. My email is tmaffei15@yahoo.com.

    I love your site by the way. It is greatly appreciated.

    -Tom

  56. Anonymous

    HI Ankur,

    You have done a wonderful job with this blogspot :) Keep it up !

    I read about BPT – Business Process Testing…can u throw some lite on it and also do u have the Mercury Business Process Testing User’s Guide ?

    Thankyou

  57. Dev

    Hi Ankur,

    I am using your blog since 1 month, and it is soo much awasome, informative, Up to mark…:)
    I want to tell you heartly thanks, for your hard work and dedication towards blog in your busy time schedule,
    God Bless you.
    Bye n tc
    Devanshu

  58. ASHISH

    Hi Ankur,
    First thanks for such a wonderful work really your blog is very much beneficial for all QTP users .
    I want to know about framework concept in QTP. So please help me as soon as possible .I am using data driven frame work in my project .I want to know about other type of frame work .

  59. @Anon:
    Unless someone downloads a demo or have QTP installed how can they learn?

    Regarding creating a tutorial you have a good suggestion but the issue is I have only this much time in hand where I have to juggle between my day job, blog, QTP forums and personal work.

    I would suggest you take the lead in creating the tutorial. Probably can rope-in more people from the QTP forums [www.learnqtp.com/forums ] and take it ahead. If you need any help with logistics etc you can always mail me.

  60. Anonymous

    Hi Ankur, Your blog is really a boon for people wanting to learn QTP; but still we more dependant on traditional methords of teaching… download the demo, dowload the handbook, try xyz… and should be able to kick start your QTP bike…

    I know this may sound wierd; but i want to suggest we should design a standard tutorial which covers based on your professional experiences and market needs, this tutorial will also have extensive excercises to give the beginners handfull of exposure.

    Your comments?

  61. @Gaurav: Can you re-try? It’s working fine at my end.

  62. Gaurav

    Hi,
    i am unable to download the QTP student handbook ….

    is there any other link to download the same or any one can send me the file on my mail id : om.gaurav@gmail.com

  63. Anonymous

    Hi Ankur,

    I am new to automation testing. I have QTP 9.2 installed in my machine. Where can i get step by step learning guide for QTP 9.2. It would help me to learn quickly. Could you please help me.

    Thanks in advance!!

  64. Anonymous

    I was getting the error message “The Browser Application can’t be launched. Possibly te URL is wrong.”

    The following actions worked for me:

    If you’re using Vista then the User Access Control (UAC) must be disabled for you’re windows accompt user. Check Windows help to know how disable UAC

  65. Anonymous

    Hey Sarita!

    Why don’t you try QTP 9.2. You can download it from mercury but make sure you type quick test professional but not just qtp. I would like to know your O/S and system configuration.

    mail me @ sheikhtarikali@gmail.com

    regards,
    Tarik Ali

  66. Sarita

    Hi Ankur,

    Pls help me in Downloading QTP trial version.

    I have downloaded Quick Test Professional 9.5 evaluation,It is showing a Sonic record.

    Pls help me…

  67. Anonymous

    Hi Ankur,

    Pls reply me….

  68. phani

    Thanks Ankur.
    This is quite encouraging for Begineers.

  69. Sarita

    Hi Ankur,
    I want to download QTP tool to my PC.I have checked HP sites for QTP trial version,there i got only QTP add ins.
    Can you pls help me to get Trial version of QTP?What are the prerequisites to download QTP tool?

    Pls help me out…..

    Thanks & Have a Nice Day…!!!

    -Sarita

  70. Anonymous

    Hi Ankur,

    I have been trying to download the trial version from HP’s site but I landed up by the addins and wrong ones. Can you please let me know where can I find a right trial version of QTP (and the link if possible).

    Thanks in advance.

  71. Rabby

    hi, how can i contact you?

  72. Purusharth Mahay

    Guys i need one info. Is there any difference between QTP tutorial and Student hand book. In which PDF i’ll get the details related to “getroproperty” etc.

    If someone have it then please mail me at “purusharthm@yahoo.com” or “purusharthm@gmail.com”

  73. shriya

    Hi Ankur.
    I am currently working on QTP…I am trying to create components thru myself but i m nt able to make…
    i hv gn thru d guides u hv suggested but still i m nt 2 analyse things properly…
    could u pls suggest me in brief architecture how cn v create a component wd sum e.g….
    i ll b thankful if u cud do so…

  74. soumya

    Ankur plz help me
    my name is soumya.

    I know Just only manual testing,I never worked on Testing.

    Now I want to learn automation tools QTP and Quality center on my own within week time and I should be able to attend the Interview within a week.

    please can anyone give me advice what I have to do to make the things faster within this short span of time.

    am very much tensed about it,do anyone give me any suggestion and any good ppt’s or docs or any other special docs related to QTP and Quality center which makes me to learn the things faster(I mean to ask any good docs those are easily understandable and only limited docs not including complete things in QTP like help docs)

    or suggest me only main topics to learn(In QTP and QC)at present those are important for Interview purpose and I can be able to manage things when I get job on QTP and QC.

    please friends help me I’ll be waiting for your reply with eager.

    regards
    Soumya

  75. Suren Blog

    Hi Ankur

    I have installed HP QTP 9.2 in my notebook which has Vista. I am trying to record and run with the Record and run settings as..Recording with the website as “www.google.com in IE7. When I start recording,
    QTP throwing error as “The Browser Application can’t be launched. Possibly the URL is wrong”

    Please help out
    Thanks!!

  76. Anonymous

    Very good job Ankur. Appreciate your willingness to share what you know with others. Thank You, Keep it up!!!!

  77. Madhavi

    Hi All,

    Is it not possible to install QTP on Win Vista?

  78. Anonymous

    Hi ankur,

    I have just started to work on QTP. The application we have to automate contains code which is generating a table in html form. The table has radio button and there is no associated text or value or id with that radio button. Though the table has other columns along with the radio button.

    Now while accessing the selected radio button we are facing the issue since the value of the selected radio button is a randomly generated number which on re-running gets lost.

    we are getting the selecteditemindex property but dont know how we can use it.

    Will be really helpful if you can help us.

  79. Anonymous

    Ankur, Thank you very mucy, appreciate you from bottom of my heart (I am male though :)). This single article alone can make people careers.

  80. Anonymous

    Good Work BUDDY..!! Really appreciated.

  81. Anonymous

    Hi
    I am new to QTP. I just downloaded QTP 9.0 but when I start to record, nothing is being recorded and I cannot see any VBscript being created. Can anyone point out where the problem could be?
    Thanks
    Sue

  82. Anonymous

    Hi do you have any pdf file about qtp 8.2? The one you have is just the 8.0

    Thank you in advance

  83. Anonymous

    Hi frnds,

    Please help me ,i need to download qtp 9.0 trail version ,searched all sites.

  84. Anonymous

    Hello Ankur…
    I have been downloaded the QTP 9.5demo version, but i could find the licence key. can you please tell me where can i find the licence key.
    Thanks inadvance.

    Regards
    sandeep

  85. Anonymous

    hi i newly started learning testing tools.i don’t know where to dowload theQTP software the links in the site are not working.
    can u tell me where can i get the tutorial to hav more information

  86. Anonymous

    HI All,

    Can anyone help me find the place to post questions on QTP…i do want some answers but dont know where to post the questions…as i am new to this site

    Thanks in Advance.

  87. Anonymous

    ok i answered my own question…I didnt select a data source…

    and btw Ankur, I ahve to tell you how much I appreciate you site as I am new to QTP as our company uses an inhouse tool for testing our web application…Inorder to market my self better I am learning this tool on my own and ur site helps a lot…keep up the good work..

    SA

  88. Anonymous

    Anyone has any idea as to why my flight table From and To pick lists /drop down lists are empty with no data in it…? I am using QTP 9.1..and ofcourse Iam a absolute beginner

  89. Raj

    Can some one help me out with the following question?

    Once we create a script using Fire fox (Browser), then can we play the same script in other browser? Or do we need to write it separately

    Thanks,

    • Thomas

      With Descriptive Programing mode you can write same script for all browsers which you are using if the support the particular qtp version

  90. Anonymous

    do you know the office 2007 add-ins for QTP?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>