By Anish Pillai Anish Pillai Posted under QTP Tutorials for Beginners

Checklist for QTP Beginners : 9 Basic Concepts You Should Know in QTP

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×

The ideal way of learning QTP or for that matter any other tool is to go through the basics first. Once you are clear with the basics, you can start learning the advanced concepts of the tool. This article aims to list out all the basic concepts that QTP beginners should go through as part of their initial learning of the tool. For those of you who have had exposure to QTP, this article would serve as a checklist to see whether or not you have missed any of the basic concepts.

Basic Concepts in QTP

  • What is QTP? This is the topic you should ideally start with. You should have an idea of what QTP is all about, what type of testing you can do with QTP, different types of applications that it supports & other general stuff like what is the latest QTP version, from where you can download QTP, what are the different license modes etc.
  • What sort of Applications / Test Cases should be considered for Automation using QTP. Now this is a very important concept that must be looked at before starting with any automation project using QTP. You should be able to analyze your manual test cases and your application to see if it is can be automated or not. If it can be automated, you should be able to figure out if you’d really derive any benefit by automating the test cases.
  • Get familiar with the QTP tool. Before starting to create test scripts in QTP, you should be familiar with the QTP tool. You should be aware of the different panes and controls in the QTP window. You should know what they are and for what purpose they are used.
  • Test Objects and Object Repositories. You should know what are test objects, what is object hierarchy, how you can identify objects using QTP and how you can identify unique properties for your objects. You should also know what object repositories are, why they are used and how you can use them to add objects.
  • Creating Test Scripts / Actions. Now comes the real scripting part. You should be able to use the record & playback method to create & run test cases. Together with record & playback method, you should be able to ‘write’ your code after associating object repositories to your actions.
  • Analyzing your Test Run Results. Once you run your test scripts, you should be able to analyze the test run results. You should be able to find out which steps have passed & which have failed. You should also be able to identify the test case flow using the run results.
  • Creating Functions & Using Function Libraries. You should be able to identify reusable flows & functionality in your test cases. You should be able to write user defined functions for the reusable flows. You should also be able to create new function libraries, add some reusable functions to these function libraries and use these functions in your script by associating the function libraries to your test script.
  • Working with Data Tables. You should know how you can use data table to pass on data values in your test script. You should also be aware of how you can take data from excel sheets and use it in your scripts.
  • Basics of Debugging. You should have a clear understanding of the basic debugging techniques in QTP. You should know how to use breakpoints in your code. You should also know how you can make use of the debug viewer pane while running your test scripts.

If you are thorough with all these concepts you can be rest assured that you have good understanding of QTP Basics. ::-) You can use the comments section to let us know your views on this article.


If you enjoyed this article, you can join our blog to get free email updates directly in your inbox.

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×
  • Sureehs

    Can any body tell about Debug viewer use and how to use it?

    • Anish10110

      Hi Sureehs,

      Using Debug Viewer, you can check (at run-time) whether the variables that you have taken in your script are taking proper values or not. This is one of the most common uses of debug viewer. Consider the following scenario –

      Suppose you have the following script –
      ' – – – some code
      if x<10 then
      ' – – – – – do something
      end if

      Now assume that 'x' is assigned a value at runtime and ideally the value assigned is less than 10. But the script is not going inside the if statement. The obvious conclusion here would be variable x is not taking proper value. And hence if statement is not getting executed.

      To confirm this, we would have the find out the value of x at runtime. To do this, put a breakpoint in the line 'if x<10 then'. After this add the variable 'x' in the watch tab in Debug viewer window. Now run the script. When the script goes to the line containing the if statement it would pause there. Then you can go to the debug viewer window and check the value of the variable there. For more details you can refer to the below link. It shows how to use debug viewer in QTP.
      <a href="; target="_blank">…</a>

    • aradhana

      Debugger view is nothing but vb script view.The test recorded in qtp will be stored in vbcript and can be senn and modified in debuger view.

  • rajasekhar

    i refered very nice understand & revision all topics mostly tks giving this kind of information.

  • could any one tell me the QTP learning center in and around Nungambakkam of chennai

  • Nikhil

    No idea sangeetha. If Blore let me know

    • Deepa

      Hey can u tel me class to learn QTP i want practical knowledge. Theory i can learn, My mail i.d is

      • Sushma

        U can visit 'Qspiders' institute located in Basavangudi,Banasvadi,Rajajinagar.Its a best institurte for testing in bangalore.

    • ramya

      can you tell me the QTP learning center in B'lore. pls mail me on ***** {email removed}

      • Anish10110

        Email ID removed from comment..

  • Seha

    Where is the test learning centre for QTP
    in Bangalore?

    • Anish10110

      Which learning center are you referring to??

  • preeti

    PLEASE explain me HYBRID Framework i am just going mad trying to understand it totally cunfused and my trainer is not explaining it nicely…please HELP and no videos for hybrid..

    How to implement HYBRID Framework on say facebook login??????????????????????????

    • satya

      First u need to understand what is framework and why we implement framework in automation.

  • sra1_lucky

    Hi Anish,

    I have a doubt in "Data Driver". To parameterize multiple values from QTPs DataTable Object, we use DataDriver. But if unknowingly or wrongly parameterizing a constant for a wrong column, how to deparameterize it, is my question. Please help me in this regard.

    • Anish10110

      Hi Sravan, You can double click on the column header and then change the parametrization.

  • krishna


  • Rangasamy

    Hi guys,

    I was very new to the QTP tool and for automation too. So pls help me to learn from basics, it could be helpful for my testing carrier. Please suggest me to how i want start?

    Am expecting your immediate reply for this comment.

  • stephany white

    Fantastic comments . Incidentally , if anyone are interested in merging of PDF or PNG files , my wife saw a service here <code></code&gt;

  • surbhi tyagi


    I am working on QTP. I am generating a script for Reports Regression Testing. In this report page there are Calendar Control made of Table which is not getting record in Object Repository. Please help me out in this ASAP as i have to submit this script and test summary on the coming friday.

  • Indu Priya

    very useful info, and please keep updating……..
    <a href="">T</a>hanks

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×