Full form of QTP?

Quick Test Professional

What’s the QTP?
QTP is Mercury Interactive Functional Testing Tool.

What’s the basic concept of QTP?
QTP is based on two concept-

  • Recording
  • Playback

Which scripting language used by QTP?
QTP using VB scripting.

How many types of recording facility are available in QTP?
QTP provides three types of recording methods-

  • Context Recording (Normal)
  • Analog Recording
  • Low Level Recording

How many types of Parameters are available in QTP?
QTP provides three types of Parameter-

  • Method Argument
  • Data Driven
  • Dynamic

What’s the QTP testing process?
QTP testing process consist of seven steps-

  • Preparing to recoding
  • Recording
  • Enhancing your script
  • Debugging
  • Run
  • Analyze
  • Report Defects

What’s the Active Screen?
It provides the snapshots of your application as it appeared when you performed a certain steps during recording session.

What’s the Test Pane?
Test Pane contains Tree View and Expert View tabs.

What’s Data Table?
It assists to you about parameterizing the test.

What’s the Test Tree?
It provides graphical representation of your operations which you have performed with your application.

Which all environment QTP supports?

ERP/ CRM
Java/ J2EE
VB, .NET
Multimedia, XML
Web Objects, ActiveX controls
SAP, Oracle, Siebel, PeopleSoft
Web Services, Terminal Emulator
IE, NN, AOL

How can you view the Test Tree?

The Test Tree is displayed through Tree View tab.

What’s the Expert View?

Expert View display the Test Script.

Which keyword used for Nornam Recording?

F3

Which keyword used for run the test script?

F5

Which keyword used for stop the recording?

F4

Which keyword used for Analog Recording?

Ctrl+Shift+F4

Which keyword used for Low Level Recording?

Ctrl+Shift+F3

Which keyword used for switch between Tree View and Expert View?

Ctrl+Tab

Note:

> QTP records each steps you perform and generates a test tree and test script.

> QTP records in normal recording mode.

> If you are creating a test on web object, you can record your test on one browser and run it on another browser.

> Analog Recording and Low Level Recording require more disk sapce than normal recording mode.

What’s the Transaction?

You can measure how long it takes to run a section of your test by defining transactions.

Where you can view the results of the checkpoint?

You can view the results of the checkpoints in the Test Result Window.

Note:

If you want to retrieve the return value of a checkpoint (a boolean value that indicates whether the checkpoint passed or failed) you must add parentheses around the checkpoint argument in the statement in the Expert View.

What’s the Standard Checkpoint?

Standard Checkpoints checks the property value of an object in your application or web page.

Which environment are supported by Standard Checkpoint?

Standard Checkpoint are supported for all add-in environments.

What’s the Image Checkpoint?

Image Checkpoint check the value of an image in your application or web page.

Which environments are supported by Image Checkpoint?

Image Checkpoint are supported only Web environment.

What’s the Bitmap Checkpoint?

Bitmap Checkpoint checks the bitmap images in your web page or application.

Which enviornment are supported by Bitmap Checkpoints?

Bitmap checkpoints are supported all add-in environment.

What’s the Table Checkpoints?

Table Checkpoint checks the information with in a table.

Which environments are supported by Table Checkpoint?

Table Checkpoints are supported only ActiveX environment.

What’s the Text Checkpoint?

Text Checkpoint checks that a test string is displayed in the appropriate place in your application or on web page.

Which environment are supported by Test Checkpoint?

Text Checkpoint are supported all add-in environments

Advertisements

345 thoughts on “Interview Questions of QTP

  1. how to use QTP 8.2 Automation Scripts in Load Runner 8.1 for Load Testing Purpose.
    Did you have any solution for that if yes could you please suggest to me it would really appreciable.

  2. I am not able to run my test using QTP for the hyperion based application. when ever i record the script and try to run it. tool shows an error that not able to identify the objects.
    please tell me the solution for this.

    1. goto automation,selet record and run setting.then reord window will be open.there is two option web,window..choose window then select first radio button.click ok..

  3. Here I like to add some more questions

    Which all environment QTP supports?

    ERP/ CRM
    Java/ J2EE
    VB, .NET
    Multimedia, XML
    Web Objects, ActiveX controls
    SAP, Oracle, Siebel, PeopleSoft
    Web Services, Terminal Emulator
    IE, NN, AOL

  4. Hi Wilson,

    Thanks for your suggestion. I will be brainstorming on the topics that you have come up with and will post very soon. It’s very great thing that you have added some more questions. I always thinking that everybody are coming on this blog, viewing, create own notes but nobody add others quesions of QTP. I like your attitude.

    Once Again Thank You Very Much.
    Cheers 🙂

  5. Hi Mayank,
    U have Provided good Questions and answers ,can u please send me some more QTP FAQ’s for 1+ interviews i mean Mutliple choice type questions.
    Thank you
    Sireesha.H

  6. 1)i want know abt key driven testing with an example can any body explain me by discriptive programing method?
    2) when iam write scrip using discriptive progarming method during execution time iam facing a proble called parenthesis missing for this what i have to do for sucessfull running my scripting ?
    i will be very much happy friend who will help with anexamples..
    thanks
    pradeep

  7. hi,

    The que in this are very good is 2 understand for freshers.Thank u.

    can u send me the 1+ model resume.can u tell me the any offers in u r company.

  8. Dear Mayank
    U had send many good question. I am located in Delhi
    Is there any possibility to download free addin from internet ?

    Plz do let me know

  9. Hello ,
    First of all I would like to say that ths is a wonderful testing site.

    I would like a small favor.
    Can u please send me a resume which has mainfrmae testing in it.

    Regards,
    Shweta.

  10. how to collect all objects in a web page , using QTP descriptive program
    ( By default Object repository records only the objects u worked during the recording stage )

  11. Hi All,
    Some more quetions i have with me on QTP.
    Hope it will help u.

    1. What are the Features & Benefits of Quick Test Pro(QTP)..?

    1. Key word driven testing
    2. Suitable for both client server and web based application
    3. Vb script as the scriot language
    4. Better error handling mechanism
    5. Excellent data driven testing features

    2. Where can I get Quck Test pro(QTP Pro) software.. This is Just for Information purpose Only.

    Introduction to QuickTest Professional 8.0, Computer Based Training: Please find the step to get QuickTest Professional 8.0 CBT Step by Step Tutorial and Evaluation copy of the software. The full CBT is 162 MB. You will have to create account to be able to download evaluation copies of CBT and Software.

    3. How to handle the exceptions using recovery secnario manager in Qtp?

    You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
    1. Triggered Events
    2. Recovery steps
    3. Post Recovery Test-Run

    3. How to handle the exceptions using recovery secnario manager in Qtp?

    You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
    1. Triggered Events
    2. Recovery steps
    3. Post Recovery Test-Run

    4. what is the use of Text output value in Qtp?

    Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.

    5. How to use the Object spy in QTP 8.0 version?

    There are two ways to Spy the objects in QTP
    1) Thru file toolbar
    —In the File ToolBar click on the last toolbar button (an icon showing a person with hat).
    2) Tru Object repository Dialog
    —In Objectrepository dialog click on the button”object spy…”
    In the Object spy Dialog click on the button showing hand symbol.
    the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object
    if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button.

    6. What is the file extension of the code file & object repository file in QTP?

    File extension of
    — Per test object rep :- filename.mtr
    — Shared Oject rep :- filename.tsr
    Code file extension id script.mts

    7. Explain the concept of object repository & how QTP recognises objects?

    Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
    we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
    Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

    8. What are the properties you would use for identifying a browser & page when using descriptive programming ?

    “name” would be another property apart from “title” that we can use.
    OR
    We can also use the property “micClass”.
    ex: Browser(“micClass:=browser”).page(“micClass:=page”)….

    9. What are the different scripting languages you could use when working with QTP ?

    Visual Basic (VB),XML,JavaScript,Java,HTML

    10. Give me an example where you have used a COM interface in your QTP project?

    11. Few basic questions on commonly used Excel VBA functions.

    common functions are:
    Coloring the cell
    Auto fit cell
    setting navigation from link in one cell to other
    saving

    12. Explain the keyword createobject with an example.

    Creates and returns a reference to an Automation object
    syntax: CreateObject(servername.typename [, location])
    Arguments
    servername:Required. The name of the application providing the object.
    typename : Required. The type or class of the object to create.
    location : Optional. The name of the network server where the object is to be created.

    13. Explain in brief about the QTP Automation Object Model.

    Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

    14. How to handle dynamic objects in QTP?

    QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time.
    Check this out-
    If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object.
    While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.
    The Smart Identification mechanism uses two types of properties:
    Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

    15. What is a Run-Time Data Table? Where can I find and view this table?

    In QTP, there is data table used , which is used at runtime.
    -In QTP, select the option View->Data tabke.
    -This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

    16. How does Parameterization and Data-Driving relate to each other in QTP?

    To datadrive we have to parameterize.i.e. we have to make the constant value as parameter, so that in each iteraration(cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it’s also of no use.

    17. What is the difference between Call to Action and Copy Action.?

    Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

    18. Discuss QTP Environment.

    QuickTest Pro environment using the graphical interface and ActiveScreen technologies – A testing process for creating test scripts, relating manual test requirements to automated verification features – Data driving to use several sets of data using one test script.

    19. Explain the concept of how QTP identifies object.

    During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording.

    20. Differentiate the two Object Repository Types of QTP.

    Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. In shared repository only one centralised repository for all the tests. where as in per action.for each test a separate per action repostory is created.

    21. What the differences are and best practical application of each.

    Per Action: For Each Action, one Object Repository is created.
    Shared : One Object Repository is used by entire application

    22. Explain what the difference between Shared Repository and Per_Action Repository

    Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner
    Per Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner

    23. Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

    I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.

    24. What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them.

    pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation.

    25. Can you do more than just capture and playback?

    I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
    -It was done by the windows scripting using the DOM(Document Object Model) of the windows.

    26. How long have you used the product?

    27. How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?

    Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

    28. What is the difference between check point and output value.

    I would like to add some stuff to Kalpana’s comments.
    It is as follows:-
    An outPut value is a value captured during the test run and entered in the run-time but to a specified location.
    EX:-Location in Data Table[Global sheet / local sheet]

    29. IF we use batch testing.the result shown for last action only.in that how can i get result for every action.

    u can click on the icon in the tree view to view the result of every action

    30. How the exception handling can be done using QTP

    It can be done Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager …….

    31. How do you test siebel application using qtp?

    32. How many types of Actions are there in QTP?

    There are three kinds of actions:
    non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once.
    reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
    external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

    33. How do you data drive an external spreadsheet?

    34. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?

    U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window. Try it out. All the Best.

    Take Care,
    Manali

  12. Some more

    Software Testing Interview Questions – eisn.net
    centerads
    Quick Test Professional

    1. What are the Features & Benefits of Quick Test Pro(QTP)..?

    1. Key word driven testing
    2. Suitable for both client server and web based application
    3. Vb script as the scriot language
    4. Better error handling mechanism
    5. Excellent data driven testing features

    2. Where can I get Quck Test pro(QTP Pro) software.. This is Just for Information purpose Only.

    Introduction to QuickTest Professional 8.0, Computer Based Training: Please find the step to get QuickTest Professional 8.0 CBT Step by Step Tutorial and Evaluation copy of the software. The full CBT is 162 MB. You will have to create account to be able to download evaluation copies of CBT and Software.

    3. How to handle the exceptions using recovery secnario manager in Qtp?

    You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
    1. Triggered Events
    2. Recovery steps
    3. Post Recovery Test-Run

    3. How to handle the exceptions using recovery secnario manager in Qtp?

    You can instruct QTP to recover unexpected events or errors that occured in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps
    1. Triggered Events
    2. Recovery steps
    3. Post Recovery Test-Run

    4. what is the use of Text output value in Qtp?

    Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.

    5. How to use the Object spy in QTP 8.0 version?

    There are two ways to Spy the objects in QTP
    1) Thru file toolbar
    —In the File ToolBar click on the last toolbar button (an icon showing a person with hat).
    2) Tru Object repository Dialog
    —In Objectrepository dialog click on the button”object spy…”
    In the Object spy Dialog click on the button showing hand symbol.
    the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object
    if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button.

    6. What is the file extension of the code file & object repository file in QTP?

    File extension of
    — Per test object rep :- filename.mtr
    — Shared Oject rep :- filename.tsr
    Code file extension id script.mts

    7. Explain the concept of object repository & how QTP recognises objects?

    Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
    we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
    Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

    8. What are the properties you would use for identifying a browser & page when using descriptive programming ?

    “name” would be another property apart from “title” that we can use.
    OR
    We can also use the property “micClass”.
    ex: Browser(“micClass:=browser”).page(“micClass:=page”)….

    9. What are the different scripting languages you could use when working with QTP ?

    Visual Basic (VB),XML,JavaScript,Java,HTML

    10. Give me an example where you have used a COM interface in your QTP project?

    11. Few basic questions on commonly used Excel VBA functions.

    common functions are:
    Coloring the cell
    Auto fit cell
    setting navigation from link in one cell to other
    saving

    12. Explain the keyword createobject with an example.

    Creates and returns a reference to an Automation object
    syntax: CreateObject(servername.typename [, location])
    Arguments
    servername:Required. The name of the application providing the object.
    typename : Required. The type or class of the object to create.
    location : Optional. The name of the network server where the object is to be created.

    13. Explain in brief about the QTP Automation Object Model.

    Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

    14. How to handle dynamic objects in QTP?

    QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time.
    Check this out-
    If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object.
    While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.
    The Smart Identification mechanism uses two types of properties:
    Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

    15. What is a Run-Time Data Table? Where can I find and view this table?

    In QTP, there is data table used , which is used at runtime.
    -In QTP, select the option View->Data tabke.
    -This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

    16. How does Parameterization and Data-Driving relate to each other in QTP?

    To datadrive we have to parameterize.i.e. we have to make the constant value as parameter, so that in each iteraration(cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it’s also of no use.

    17. What is the difference between Call to Action and Copy Action.?

    Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

    18. Discuss QTP Environment.

    QuickTest Pro environment using the graphical interface and ActiveScreen technologies – A testing process for creating test scripts, relating manual test requirements to automated verification features – Data driving to use several sets of data using one test script.

    19. Explain the concept of how QTP identifies object.

    During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording.

    20. Differentiate the two Object Repository Types of QTP.

    Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. In shared repository only one centralised repository for all the tests. where as in per action.for each test a separate per action repostory is created.

    21. What the differences are and best practical application of each.

    Per Action: For Each Action, one Object Repository is created.
    Shared : One Object Repository is used by entire application

    22. Explain what the difference between Shared Repository and Per_Action Repository

    Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner
    Per Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner

    23. Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

    I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.

    24. What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them.

    pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation.

    25. Can you do more than just capture and playback?

    I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
    -It was done by the windows scripting using the DOM(Document Object Model) of the windows.

    26. How long have you used the product?

    27. How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?

    Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

    28. What is the difference between check point and output value.

    I would like to add some stuff to Kalpana’s comments.
    It is as follows:-
    An outPut value is a value captured during the test run and entered in the run-time but to a specified location.
    EX:-Location in Data Table[Global sheet / local sheet]

    29. IF we use batch testing.the result shown for last action only.in that how can i get result for every action.

    u can click on the icon in the tree view to view the result of every action

    30. How the exception handling can be done using QTP

    It can be done Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager …….

    31. How do you test siebel application using qtp?

    32. How many types of Actions are there in QTP?

    There are three kinds of actions:
    non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once.
    reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
    external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

    33. How do you data drive an external spreadsheet?

    34. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?

    U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window. Try it out. All the Best.

    TC,
    Manali

  13. Thanks Manali for extensive coverage of questions. And thanks DN for letting me know the link, actually same link I was mentioning in winrunner category here too..

  14. Hai , in my view for new and experienced persons this is a wonder ful site to express and to improve our skills by interacting with this site.
    thank u for all

  15. hai i feel you are very great cos gtting equiped is something great but helping others with what u have is something only generous people like u and me can do cheers pal!!

  16. I appreciate Mayank and other helping others by sending interview question. i request all the experience people working on QTP should tell us about error occured while testing any web application. what are things we have to take care while testing any application.

    Thanks
    N. Srinivas

  17. Plz gime me teh answers for these questions.
    2. What is the test object model in QTP?
    3. If one of the object is not identified by QTP then how will you make QTP to identify that object?
    4. What is the difference between win runner and QTP?
    5. What are the different recording modes in QTP?
    6. What is object repository in QTP? How many types of OR are there in QTP?
    7. What are the different views in QTP?
    8. What are the different check points in QTP?
    9. What is output value?
    10. What is the process that is followed in QTP?
    11. How exception is handled in QTP?
    12. What are the different exceptions handled in QTP?
    13. Is it possible to call winrunner script from QTP?
    14. What is synchronization point in QTP?
    15. What are the different types of synchronization point methods used in QTP?
    16. What is object spy?
    17. What is Smart object Recognition?
    18. How to connect Quality center from QTP?
    19. What is Data driven testing? Why you need it?
    20. What are the different parameterization processes or data driven testing used in QTP?
    21. What are the different VB script functions that you use in QTP?
    22. Is it possible to add check points from Active screen? What are the different setting modes of active screen? Explain them briefly?
    23. Why QTP is called as record and play back tool?
    24. What is break point in QTP?
    25. What are the different debugging modes in QTP? Explain them briefly?
    26. What is test fusion report in QTP?
    27. What is datasheet? How many types of data sheets are there?
    28. What is Library function? Explain how will call it?
    29. How will you go for a database testing in QTP?
    30. Difference between image and bitmap check point with example?
    31. What are the frameworks that you have used for your QTP automation?

  18. Hi Friends,

    In my Application, the Accounts are Auto generated by Account followed by some random numbers like Account123

    which Check Point in QTp can be used to test the Account Number?
    Should I use regualar Expression?

    Please Guide me..

    Thanks
    Bhama

  19. Hi Friends,
    Please tell me, what is synchronization point and Explain different techniques of synchronization point(wait techniques, global techniques)?

    please send me Interview questios and QTP Material in my Mail.

    Thanks

  20. Hi Friends,
    Please tell me, Explain different techniques of synchronization point(wait techniques, global techniques)?

    please send me QTP Material in my Mail.

    Thanks

  21. hi mayank,
    am A B.E fresher these questions are enough for freshers rit.thank you.please send me more questions on testing

  22. Thank Q, It will help a lot for the freshers.

    I would like to get 1+ years experience interview question.

    plz send to my mail id.

    Thank q

  23. Hi Mayank,
    In QTP, I have to record a web page in IE6 and have to run the script in Firefox1.5 & Netscape8.

    I have recorded the script in IE6 and tried running the script in other browsers, but was not able to proceed.

    Scripts recorded in IE 6 and firefox/netscape is totally different,when i recorded the same page in different browsers

    I came across in QTP guide, that ” Script recorded in one browser can run in other supported browsers”.

    Please give the solution to solve this problem as my requirment is to test the application in differnt browsers. so script has to be made genric across.
    Please help me in this Regards ASAP

    -Ganapathi

  24. What’s the XML Checkpoint?
    Which environment are supported by XML Checkpoint?
    What’s the Database Checkpoint?
    Which environment are supported by Database Checkpoint?
    What is used instead of GUI map in QTP
    How to set parameters in QTP

  25. QuickTest Professional (QTP) What is QTP ? QuickTest is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, QuickTest Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and .NET framework applications… QTP is Mercury Interactive Functional Testing Tool. QTP stands for Quality Test Professional. Mercury QuickTest Professional: provides the industry’s best solution for functional test and regression test automation – addressing every major software application and environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QuickTest Professional’s Keyword-driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. QuickTest Professional enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QuickTest add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications). What’s the basic concept of QTP? QTP is based on two concept- * Recording * Playback Which scripting language used by QTP? QTP using VB scripting. How many types of recording facility are available in QTP? QTP provides three types of recording methods- * Context Recording (Normal) * Analog Recording * Low Level Recording How many types of Parameters are available in QTP? QTP provides three types of Parameter- * Method Argument * Data Driven * Dynamic What’s the QTP testing process? QTP testing process consist of seven steps- * Preparing to recoding * Recording * Enhancing your script * Debugging * Run * Analyze * Report Defects (more…) How to Start recording using QTP? Choose Test > Record or click the Record button. When the Record and Run Settings dialog box opens to do this; 1. In the Web tab, select Open the following browser when a record or run session begins. 2. In the Windows Applications tab, confirm that Record and run on these applications (opened on session start) is selected, and that there are no applications listed. How to insert a check point to a image to check enable property in QTP? Answer1: AS you are saying that the all images are as push button than you can check the property enabled or disabled. If you are not able to find that property than go to object repository for that objecct and click on add remove to add the available properties to that object. Let me know if that works. And if you take it as image than you need to check visible or invisible property tht also might help you are there are no enable or disable properties for the image object. Answer2: The Image Checkpoint does not have any property to verify the enable/disable property. One thing you need to check is: * Find out form the Developer if he is showing different images for activating/deactiving i.e greyed out image. That is the only way a developer can show deactivate/activate if he is using an “image”. Else he might be using a button having a headsup with an image. * If it is a button used to display with the headsup as an image you woudl need to use the object Properties as a checkpoint. How to Save your test using QTP? Select File > Save or click the Save button. The Save dialog box opens to the Tests folder. Create a folder which you want to save to, select it, and click Open. Type your test name in the File name field. Confirm that Save Active Screen files is selected. Click Save. Your test name is displayed in the title bar of the main QuickTest window. How to Run a Test using QTP? 1 Start QuickTest and open your test. If QuickTest is not already open, choose Start > Programs > QuickTest Professional > QuickTest Professional. . If the Welcome window opens, click Open Existing. . If QuickTest opens without displaying the Welcome window, choose File > Open or click the Open button. In the Open Test dialog box, locate and select your test, then click Open. 2 Confirm that all images are saved to the test results. QuickTest allows you to determine when to save images to the test results. Choose Tools > Options and select the Run tab. In the Save step screen capture to test results option, select Always. Click OK to close the Options dialog box. 3 Start running your test. Click Run or choose Test > Run. The Run dialog box opens. Select New run results folder. Accept the default results folder name. Click OK to close the Run dialog box. How to open a new test using QTP? 1. If QuickTest is not currently open, choose Start > Programs > QuickTest Professional > QuickTest Professional. If the Welcome window opens, click Blank Test. Otherwise, choose File > New, or click the New button. A blank test opens. 2. . If QuickTest is already open, check which add-ins are loaded by selecting Help > About QuickTest Professional. If the Web Add-in is not loaded, you must exit and restart QuickTest. When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins. Choose File > New, or click the New button. A blank test opens. How to do Laod testing for web based Application? 1. Recording a scenerio in QTP of my web based application. 2. Make 100 copies of that scenerio and run the test (scenerio run for 100 times) 3. In that case, do the load of application on server. 4. The basic logic of running the copy 100 times is to create same scenerio as if 100 users were working. What is the extension of script and object repository files? Object Repository : .tsr , Script : .mts, Excel : Default.xls How to supress warnings from the “Test results page”? From the Test results Viewer “Tools > Filters > Warnings”…must be “Unchecked”. When we try to use test run option “Run from Step”, the browser is not launching automatically why? This is default behaviour. What’s Checkpoints for QTP? A checkpoint verifies that expected information is displayed in your application while the test is running. QuickTest Professional offers the following types of checkpoints: Checkpoint Type Description Example of Use Standard Checkpoint Checks values of an object’s properties. Check that a radio button is selected. Image Checkpoint Checks the property values of an image. Check that the image source file is correct. Table Checkpoint Checks information in a table. Check that the value in a table cell is correct. Page Checkpoint Checks the characteristics of a Web page. Check how long a Web page takes to load or if a Web page contains broken links. Text / Text Area Checkpoint Checks that a text string is displayed in the appropriate place in a Web page or application window. Check whether the expected text string is displayed in the expected locatio Bitmap Checkpoint Checks an area of a Web page or application after capturing it as a bitmap Check that a Web page (or any portion of it) is displayed as expected. Database Checkpoint Checks the contents of databases accessed by an application or Web site Check that the value in a database query is correct. Accessibility Checkpoint Identifies areas of a Web site to check for Section 508 compliancy. Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines. XML Checkpoint Checks the data content of XML documents. Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page. How to add a standard checkpoint in your test ? 1. Start QuickTest and open your test. In the Open Test dialog box, locate and select your test, then click Open. 2. Save the test as Checkpoint. Select File > Save As. Save the test as Checkpoint. 3. Confirm that the Active Screen option is enabled. If you do not see the Active Screen at the bottom of the QuickTest window, click the Active Screen button, or choose View > Active Screen. 4. Locate the page where you want to add a standard checkpoint. 5 Create a standard checkpoint. In the Active Screen, right-click element in your application and choose Insert Standard Checkpoint. 6 Save the test. How to add a page checkpoint to your test? The page checkpoint checks that the number of links and images in the page when you run your test is the same as when you recorded your test. 1 Locate the page where you want to add a page checkpoint. 2 Create a page checkpoint. Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint. The Object Selection – Checkpoint Properties dialog box opens. Note that this dialog box may include different elements, depending on where you click in the Active Screen. 3 Save the test. How Does Run time data (Parameterization) is handled in QTP? You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. What is keyword view and Expert view in QTP? QuickTest’s Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that QuickTest Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View. How QTP recognizes Objects in AUT? QuickTest stores the definitions for application objects in a file called the Object Repository. As you record your test, QuickTest will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by QuickTest), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the QuickTest script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties. What are the types of Object Repositorys in QTP? QuickTest has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test. The object repository per-action mode is the default setting. In this mode, QuickTest automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object’s property values in one action, you may need to make the same change in every action (and any test) containing the object. If I give some thousand tests to execute in 2 days what do u do? Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine. Does QTP is “Unicode” compatible? QTP 6.5 is not but QTP 8.0 is expected to be Unicode compatabile by end of December 2004. How to “Turn Off” QTP results after running a Script? Goto “Tools > Options > Run Tab” and Deselect “View results when run session ends”. But this supresses only the result window, but a og will be created and can viewed manulaly which cannot be restricted from getting created. Explain about the Test Fusion Report of QTP ? Once a tester has run a test, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with QuickTest Professional, you can share reports across an entire QA and development team. To which environments does QTP supports ? QuickTest Professional supports functional testing of all enterprise environments, including Windows, Web, ..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services. What’s QuickTest Window? Before you begin creating tests, you should familiarize yourself with the main QuickTest window. The QuickTest window contains the following key elements: . Title bar—Displays the name of the currently open test. . Menu bar—Displays menus of QuickTest commands. . File toolbar—Contains buttons to assist you in managing your test. . Testing toolbar—Contains buttons to assist you in the testing process. . Debug toolbar—Contains buttons to assist you in debugging tests. . Test pane—Contains the Keyword View and Expert View tabs. . Active Screen—Provides a snapshot of your application as it appeared when you performed a certain step during the recording session. . Data Table—Assists you in parameterizing your test. . Debug Viewer pane—Assists you in debugging your test. The Debug Viewer pane contains the Watch Expressions, Variables, and Command tabs. (The Debug Viewer pane is not displayed when you open QuickTest for the first time. You can display the Debug Viewer by choosing View QuickTest identifies the object that you clicked as a WebButton test object. It creates a WebButton object with the name Find, and records the following properties and values for the Find WebButton: It also records that you performed a Click method on the WebButton. QuickTest displays your step in the Keyword View like this: QuickTest displays your step in the Expert View like this: Browser(“Mercury Interactive”).Page(“Mercury Interactive”). WebButton(“Find”). How to analyzing Test Results using QTP? When QuickTest finishes running the test, the Test Results window opens. Initially, the Test Results window contains two panes for displaying the key elements of your test run. . The left pane displays the results tree, an icon-based view of the steps that were performed while the test was running. The results tree is organized according to the Web pages visited during the test run and can be expanded (+) to view each step. The steps performed during the test run are represented by icons in the tree. You can instruct QuickTest to run a test or action more than once using different sets of data in each run. Each test run is called an iteration, and each iteration is numbered. (The test you ran had only one iteration.) . The right pane displays the test results details. The iteration summary table indicates which iterations passed and which failed. The status summary table indicates the number of checkpoints or reports that passed, failed, and raised warnings during the test. 1 View the test results for a specific step. In the results tree, expand (+) Test Recording Summary > Recording Iteration 1 (Row 1) > Action1 Summary > your application > your test name . The Test Results window now contains three panes, displaying: . the results tree, with one step highlighted . the test results details of the highlighted step . the Active Screen, showing a screen capture of the Web page on which the step was performed. When you click a page in the results tree, QuickTest displays the corresponding page in the application view. When you click a step (an operation performed on an object) in the results tree, the corresponding object is highlighted in the application view. In this case, the Departing From text box is highlighted. Explain the check points in QTP? A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP. • A page checkpoint checks the characteristics of a Application • A text checkpoint checks that a text string is displayed in the appropriate place on a Application. • An object checkpoint (Standard) checks the values of an object on a Application. • An image checkpoint checks the values of an image on a Application. • A table checkpoint checks information within a table on a Application • An Accessiblity checkpoint checks the web page for Section 508 compliance. • An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application. • A database checkpoint checks the contents of databases accessed by your web site In how many ways we can add check points to an application using QTP. We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording). Explain in brief about the QTP Automation Object Model. Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program. Discuss QTP Environment. QuickTest Pro environment using the graphical interface and ActiveScreen technologies – A testing process for creating test scripts, relating manual test requirements to automated verification features – Data driving to use several sets of data using one test script. Explain the concept of how QTP identifies object. During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording. Object Repositories types, Which & when to use? Deciding Which Object Repository Mode to Choose To choose the default object repository mode and the appropriate object repository mode for each test, you need to understand the differences between the two modes. In general, the object repository per-action mode is easiest to use when you are creating simple record and run tests, especially under the following conditions: You have only one, or very few, tests that correspond to a given application, interface, or set of objects. You do not expect to frequently modify test object properties. You generally create single-action tests. Conversely, the shared object repository mode is generally the preferred mode when: You have several tests that test elements of the same application, interface, or set of objects. You expect the object properties in your application to change from time to time and/or you regularly need to update or modify test object properties. You often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options. Can we Script any test case with out having Object repository? or Using Object Repository is a must? No. U can script with out Object repository by knowing the Window Handlers, spying and recognizing the objects logical names and properties available. How to execute a WinRunner Script in QTP? (a) TSLTest.RunTest TestPath, TestSet [, Parameters ] –> Used in QTP 6.0 used for backward compatibility Parameters : The test set within Quality Center, in which test runs are stored. Note that this argument is relevant only when working with a test in a Quality Center project. When the test is not saved in Quality Center, this parameter is ignored. e.g : TSLTest.RunTest “D:test1”, “” (b)TSLTest.RunTestEx TestPath, RunMinimized, CloseApp [, Parameters ] TSLTest.RunTestEx “C:WinRunnerTestsbasic_flight”, TRUE, FALSE, “MyValue” CloseApp : Indicates whether to close the WinRunner application when the WinRunner test run ends. Parameters : Up to 15 WinRunner function argument Why divide a test into three action calls? When you create a new test, it contains a call to one action. By dividing your tests into calls to multiple actions, you can design more modular and efficient tests. How To clear the AutoComplete? 1 In your Internet Explorer’s menu bar, choose Tools > Internet Options > Content tab. 2 Click AutoComplete in the Personal information area. The AutoComplete Settings dialog box opens. 3 In the Use AutoComplete for area, clear the User names and passwords on forms option. 4 Click OK to save your changes and close the AutoComplete Settings dialog box, then click OK again to close the Internet Options dialog box. What is Object Spy in QTP? Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box. What is the Diff between Image check-point and Bit map Check point? Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QuickTest captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly. You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded). Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings. How many ways we can parameterize data in QTP ? There are four types of parameters: Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test. Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data Table. Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and options you choose. Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have QuickTest generate a random number and insert it in a number of tickets edit field. How do u do batch testing in WR & is it possible to do in QTP, if so explain? Batch Testing in WR is nothing but running the whole test set by selecting “Run Testset” from the “Execution Grid”.The same is possible with QTP also. If our test cases are automated then by selecting “Run Testset” all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in “Waiting” mode. How to use the Object spy in QTP 8.0 version? There are two ways to Spy the objects in QTP 1) Thru file toolbar —In the File ToolBar click on the last toolbar button (an icon showing a person with hat). 2) Tru Object repository Dialog —In Objectrepository dialog click on the button”object spy…” In the Object spy Dialog click on the button showing hand symbol. the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button. What is the file extension of the code file & object repository file in QTP? File extension of — Per test object rep :- filename.mtr — Shared Oject rep :- filename.tsr Code file extension id script.mts How to Creating an Output Value using QTP? 1 Start QuickTest and open the Parameter test. 2 Save the test as Output. 3 Confirm that the Active Screen option is enabled. 4 Select the text you want to use as an output value. 5 Set the output value settings. 6 Modify the table checkpoint. 7 Save the test. What does it mean when a check point is in red color? what do u do? A red color indicates failure. Here we analyze the the cause for failure whether it is a Script Issue or Envronment Issue or a Application issue. What do you call the window testdirector-testlab? “Execution Grid”. It is place from where we Run all Manual / Automated Scripts How do u create new test sets in TD Login to TD. Click on “Test Lab” tab. Select the Desired folder under which we need to Create the Test Set. ( Test Sets can be grouped as per module.) Click on “New Test Set or Ctrl+N” Icon to create a Test Set. Explain the concept of object repository & how QTP recognises objects? Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected). we can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code. What are the properties you would use for identifying a browser & page when using descriptive programming ? “name” would be another property apart from “title” that we can use. OR We can also use the property “micClass”. ex: Browser(“micClass:=browser”).page(“micClass:=page”)…. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this? U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window. Try it out. All the Best. If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles? If an application name is changes frequently i.e while recording it has name ?Window1? and then while running its ?Windows2? in this case how does QTP handles? QTP handles those situations using ?Regular Expressions?. … How does QTP identifies the object in the application? How does QTP identifies the object in the application? QTP identifies the object in the application by LogicalName and Class. For example: The Edit box is identified by Logical Name : PSOPTIONS_BSE_TIME20 Class: WebEdit … IF we use batch testing.the result shown for last action only.in that how can i get result for every action. You can click on the icon in the tree view to view the result of every action WinRunner Compared to QuickTest Pro Environment Coverage Comparison: Common environments shared by both WinRunner and QuickTest Pro: Web-Related Environments IE, Netscape, AOL JDK, Java Foundation Classes, AWT Symantec Visual Café ActiveX Controls ERP/CRM Oracle: Jinitiator, 11i, NCA Custom Client Server Windows C++/C Visual Basic Operating Systems Windows 98, 2000, NT, ME, XP Legacy 3270, 5250 Emulators VT100 WinRunner Only Environments: Custom Client/Server PowerBuilder Forte Delphi Centura Stingray SmallTalk ERP/CRM Baan PeopleSoft Windows Siebel 5, 6 GUI Clients Oracle GUI Forms QuickTest Pro Only Environments: ERP/CRM SAP Siebel 7.x PeopleSoft 8.x .Net WinForms WebForms .Net controls Web Services XML, HTTP WSDL, SOAP J2EE, .Net Multimedia RealAudio/Video Flash Feature Comparison: Common features found in both WinRunner and QuickTest Pro: Record/Replay ODBC & Excel Connectivity Code Editor & Debugger Recovery Manager Shared Object Repository Rapid Object Import Numerous Checkpoints Analog Script & Function Libraries WinRunner Only Environments: Function Generator Database Integration Run Wizard TSL MDI QuickTest Pro Only Environments: ActiveScreen TestGuard Tree View ScriptFusion Data Table VBScript Function Generator* (coming in v7.0) Run Wizard* (coming in v7.0) How to Import data from a “.xls” file to Data table during Runtime. Datatable.Import “…XLS file name…” DataTable.ImportSheet(FileName, SheetSource, SheetDest) DataTable.ImportSheet “C:name.xls” ,1 ,”name” How to export data present in Datatable to an “.xls” file? DataTable.Export “….xls file name…” Syntact for how to call one script from another? and Syntax to call one “Action” in another? RunAction ActionName, [IterationMode , IterationRange , Parameters] Here the actions becomes reusable on making this call to any Action. IterationRange String Not always required. Indicates the rows for which action iterations will be performed. Valid only when the IterationMode is rngIterations. Enter the row range (i.e. “1-7”), or enter rngAll to run iterations on all rows. If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction’s RetVal argument. How to export QTP results to an “.xls” file? By default it creates an “XML” file and displays the results How the exception handling can be done using QTP It can be done Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager ……. How many types of Actions are there in QTP? There are three kinds of actions: non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once. reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests. external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action. Analyzing the Checpoint results Standard Checpoint :By adding standard checkpoints to your tests or components, you can compare the expected values of object properties to the object’s current values during a run session. If the results do not match, the checkpoint fails. How to handle Run-time errors? On Error Resume Next : causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure. Using “Err” object msgbox “Error no: ” & ” ” & Err.Number & ” ” & Err.description & ” ” & Err.Source & Err.HelpContext What are the different scripting languages you could use when working with QTP ? Visual Basic (VB),XML,JavaScript,Java,HTML How to handle dynamic objects in QTP? QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time. Check this out- If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object. While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails. The Smart Identification mechanism uses two types of properties: Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable. Explain the keyword createobject with an example. Creates and returns a reference to an Automation object syntax: CreateObject(servername.typename [, location]) Arguments servername:Required. The name of the application providing the object. typename : Required. The type or class of the object to create. location : Optional. The name of the network server where the object is to be created. What is a Run-Time Data Table? Where can I find and view this table? -In QTP, there is data table used , which is used at runtime. -In QTP, select the option View->Data tabke. -This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default. How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues? Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps. What is the difference between check point and output value. An outPut value is a value captured during the test run and entered in the run-time but to a specified location. EX:-Location in Data Table[Global sheet / local sheet] Types of properties that Quick Test learns while recording? (a) Mandatory (b) Assistive . In addition to recording the mandatory and assistive properties specified in the Object Identification dialog box, QuickTest can also record a backup ordinal identifier for each test object. The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables QuickTest to create a unique description when the mandatory and assistive properties are not sufficient to do so. Differences between QTP & Winrunner? (a) QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting. (b) QTP supports “.NET” application Automation not available in Winrunner (c) QTP has “Active Screen” support which captures the application, not available in WR. (d) QTP has “Data Table” to store script values , variables which WR does not have. (e) Using a “point and click” capability you can easily interface with objects, their definitions and create checkpoints after having recorded a script – without having to navigate back to that location in your application like you have to with WinRunner. This greatly speeds up script development. Few basic questions on commonly used Excel VBA functions. common functions are: Coloring the cell Auto fit cell setting navigation from link in one cell to other saving How does Parameterization and Data-Driving relate to each other in QTP? To datadrive we have to parameterize.i.e. we have to make the constant value as parameter, so that in each iteraration(cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it’s also of no use. What is the difference between Call to Action and Copy Action.? Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action) How to verify the Cursor focus of a certain field? Use “focus” property of “GetRoProperty” method” Any limitation to XML Checkpoints? Mercury has determined that 1.4MB is the maximum size of a XML file that QTP 6.5 can handle How to make arguments optional in a function? this is not possible as default VBS doesn’t support this. Instead you can pass a blank scring and have a default value if arguments r not required. How to add a text checkpoint to your test to check whether ‘welcome’ is displayed in your welcome page. 1 Locate the page where you want to add a text checkpoint. 2 Create a text checkpoint. In the Active Screen, under your page highlight the text welcome. Right-click the highlighted text and choose Insert Text Checkpoint. The Text Checkpoint Properties dialog box opens. When Checked Text appears in the list box, the Constant field displays the text string you highlighted. This is the text QuickTest looks for when running the test. Click OK to accept the default settings in this dialog box. QuickTest adds the text checkpoint to your test. It is displayed in the Keyword View as a checkpoint operation on your welcome page 3 Save the test. How to Running and Analyzing a Test with Checkpoints? 1 Expand the test and review your test. Choose View > Expand All or use the * shortcut key on your number keypad. 2 Start running your test. Click Run or choose Test > Run. The Run dialog box opens. Ensure that New run results folder is selected. Accept the default results folder name. Click OK. When the test run is completed, the Test Results window opens. 3 View the test results. When QuickTest finishes running the test, the Test Results window opens. The test result should be Passed, indicating that all checkpoints passed. If one or more checkpoints had failed, the test result would be Failed. 4 View the results of the page checkpoint. In the Details pane, you can review the details of the page checkpoint, which lists the items checked. 5 View the results of the table checkpoint. In the Details pane, you can review the details of the table checkpoint. You can also review the values of the table cells (cell values that were checked are displayed in black; cell values that were not checked are displayed in gray). 6 View the results of the standard checkpoint. In the Details pane, you can review the details of the standard checkpoint, which lists the properties that were checked and their values. The checkpoint passed because the actual values of the checked properties match the expected values. 7 View the results of the text checkpoint. In the Details pane, you can review the details of the text checkpoint. The checkpoint passed because the actual text matches the expected text. 8 Close the Test Results window. Choose File > Exit. How to Defining a Data Table Parameter for QTP? 1 Start QuickTest and open the Checkpoint test. 2 Save the test as Parameter. 3 Confirm that the Active Screen option is enabled. 4 Confirm that the Data Table option is enabled. 5 Select the text to parameterize. 6 Set the parameterization properties. How to add a runtime parameter to a datasheet? DataTable.LocalSheet The following example uses the LocalSheet property to return the local sheet of the run-time Data Table in order to add a parameter (column) to it. MyParam=DataTable.LocalSheet.AddParameter(“Time”, “5:45”) How to change the run-time value of a property for an object? SetTOProperty changes the property values used to identify an object during the test run. Only properties that are included in the test object description can be set How to retrieve the property of an object? using “GetRoProperty”. How to open any application during Scripting? SystemUtil , object used to open and close applications and processes during a run session. (a) A SystemUtil.Run statement is automatically added to your test when you run an application from the Start menu or the Run dialog box while recording a test E.g : SystemUtil.Run “Notepad.exe” SystemUtil.CloseDescendentProcesses ( Closes all the processes opened by QTP ) How to covert a String to an integer? CInt()—> a conversion function available. Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why? Inserting a call to action will only Import the columns of the Action called Differentiate the two Object Repository Types of QTP. Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. In shared repository only one centralised repository for all the tests. where as in per action.for each test a separate per action repostory is created. What the differences are and best practical application of each. Per Action: For Each Action, one Object Repository is created. Shared : One Object Repository is used by entire application Explain what the difference between Shared Repository and Per_Action Repository Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner Per Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner Have you ever written a compiled module? If yes tell me about some of the functions that you wrote. I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages. What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them. pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation. Can you do more than just capture and playback? I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL. -It was done by the windows scripting using the DOM(Document Object Model) of the windows. Summary: QuickTest Pro Summary: QuickTest Professional provides an interactive, visual environment for test development. Here is the description from the Mercury Interactive “How it Works” section of the QuickTest Pro web page: Mercury QuickTest Professional™ allows even novice testers to be productive in minutes. You can create a test script by simply pressing a Record button and using an application to perform a typical business process. Each step in the business process is automated documented with a plain-English sentence and screen shot. Users can easily modify, remove, or rearrange test steps in the Keyword View. QuickTest Professional can automatically introduce checkpoints to verify application properties and functionality, for example to validate output or check link validity. For each step in the Keyword View, there is an ActiveScreen showing exactly how the application under test looked at that step. You can also add several types of checkpoints for any object to verify that components behave as expected, simply by clicking on that object in the ActiveScreen. You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. Advanced testers can view and edit their test scripts in the Expert View, which reveals the underlying industry-standard VBScript that QuickTest Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View. Once a tester has run a script, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test script specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with Mercury Quality Management, you can share reports across an entire QA and development team. QuickTest Professional also facilitates the update process. As an application under test changes, such as when a “Login” button is renamed “Sign In,” you can make one update to the Shared Object Repository, and the update will propagate to all scripts that reference this object. You can publish test scripts to Mercury Quality Management, enabling other QA team members to reuse your test scripts, eliminating duplicative work. QuickTest Professional supports functional testing of all popular environments, including Windows, Web, .Net, Visual Basic, ActiveX, Java, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and Web services. – QuickTest Pro “How it Works” webpage from Mercury: http://www.mercury.com/us/products/quality-center/functional-testing/quicktest-professional/works.html We like QuickTest Pro and now prefer implementing it over WinRunner. When you get into advance testing scenarios, QuickTest Pro has more options and they are easier to implement compared to WinRunner in our opinion. Do to the similarities in concept and features, an experienced WinRunner user can easily convert to QuickTest Pro and quickly become an efficient Test Automation Engineer! We recommend that existing customers begin all new development with QuickTest Pro and use the built-in feature of calling WinRunner scripts from QuickTest Pro for all existing WinRunner scripts that they already have. As older scripts require updates and time permits, we recommend replacing them with QuickTest Pro scripts. Eventually you will be able to convert your test script library with all QuickTest Pro scripts. Pros: * Will be getting the initial focus on development of all new features and supported technologies. * Ease of use. * Simple interface. * Presents the test case as a business workflow to the tester (simpler to understand). * Numerous features. * Uses a real programming language (Microsoft’s VBScript) with numerous resources available. * QuickTest Pro is significantly easier for a non-technical person to adapt to and create working test cases, compared to WinRunner. * Data table integration better and easier to use than WinRunner. * Test Run Iterations/Data driving a test is easier and better implement with QuickTest. * Parameterization easier than WinRunner. * Can enhance existing QuickTest scripts without the “Application Under Test” being available; by using the ActiveScreen. * Can create and implement the Microsoft Object Model (Outlook objects, ADO objects, FileSystem objects, supports DOM, WSH, etc.). * Better object identification mechanism. * Numerous existing functions available for implementation – both from within QuickTest Pro and VBScript. * QTP supports .NET development environment (currently WinRunner 7.5 does not). * XML support (currently WinRunner 7.5 does not). * The Test Report is more robust in QuickTest compared to WinRunner. * Integrates with TestDirector and WinRunner (can kick off WinRunner scripts from QuickTest). Cons: * Currently there are fewer resources (consultants and expertise) available due to QTP being a newer product on the market and because there is a greater Demand than Supply, thus fewer employee/consulting resources. * Must know VBScript in order to program at all. * Must be able to program in VBScript in order to implement the real advance testing tasks and to handle very dynamic situations. * Need training to implement properly. * The Object Repository (OR) and “testing environment” (paths, folders, function libraries, OR) can be difficult to understand and implement initially. Explain the terms “TEST” and “ Business Component” Test—A collection of steps organized into one or more actions, which are used to verify that your application performs as expected. By default each test begins with a single action. Business Component—A collection of steps representing a single task in your application. Business components (also known as components) are combined into specific scenarios to build business process tests in Mercury Quality Center with Business Process Testing. A component does not contain actions, you add steps directly to a componenet. What is check point? A checkpoint checks specific values or characteristics of a page, object, or text string and enables you to identify whether or not your Web site or application is functioning correctly. A checkpoint compares the value of an element captured in your test when you recorded your test, with the value of the same element captured during the test run. What do you mean by iteration ? Each run session that uses a different set of parameterized data is called an iteration. What is output value? An output value is a value retrieved during the run session and entered into your Data Table or saved as a variable or a parameter. Each run session that uses a different set of parameterized data is called an iteration. How many Add-ins comes by default with QTP? There are 3 Add-ins comes with QTP: (1) ActiveX (2) Visual Basic (3) Web What are the views available in QTP? (1) Keyword View (2) Expert View What is Active Screen? The Active Screen provides a snapshot of your application as it appeared when you performed a certain step during a recording session. What are the key elements of a QTP window? The QuickTest window contains the following key elements: ? QuickTest title bar—Displays the name of the currently open test or component. ? Menu bar—Displays menus of QuickTest commands. ? File toolbar—Contains buttons to assist you in managing your test or component. ? Testing toolbar—Contains buttons to assist you in the testing process. ? Debug toolbar—Contains buttons to assist you in debugging your test or component (not displayed by default). ? Action toolbar—Contains buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow. ? Test pane—Contains the Keyword View and Expert View tabs. ? Active Screen—Provides a snapshot of your application as it appeared when you performed a certain step during the recording session. ? Data Table—Assists you in parameterizing your test or component. For a test, the Data Table contains the Global tab and a tab for each action. For a component, the Data Table contains single tab. ? Debug Viewer pane—Assists you in debugging your test or component. The Debug Viewer pane contains the Watch Expressions, Variables, and Command tabs (not displayed by default). ? Status bar—Displays the status of the QuickTest application. How many tabs are available in Debug Viewer Pane? The Debug Viewer pane contains three tabs to assist you in debugging your test or component—Watch Expressions, Variables, and Command. Watch Expressions The Watch Expressions tab enables you to view the current value of any variable or other VBScript expression. Variables The Variables tab enables you to view the current value of all variables that have been recognized up to the last step performed in the run session. Command The Command tab enables you to execute a line of script in order to set or modify the current value of a variable or VBScript object in your test or component. When you continue the run session, QuickTest uses the new value that was set in the command. How many toolbars QTP has? QuickTest has 4 built-in toolbars: 1. The File toolbar 2. The Testing toolbar 3. The Debug toolbar 4. Action toolbar The Action toolbar is available in the Keyword View and contains options that enable you to view all actions in the test flow or to view the details of a selected action. The Action toolbar is not available for components. Explain the terms Password Encoder, Remote Agent, Test Batch Runner, Test Results Deletion tool? Password Encoder—enables you to encode passwords. You can use the resulting strings as method arguments or Data Table parameter values. Remote Agent—determines how QuickTest behaves when a test or component is run by a remote application such as Quality Center. Test Batch Runner—enables you to set up QuickTest to run several tests in succession. Test Results Deletion Tool—enables you to delete unwanted or obsolete results from your system according to specific criteria that you define. Explain the terms Test Object Model, Test Object & Run-Time object? The test object model is a large set of object types or classes that QuickTest uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that QuickTest can record for it. A test object is an object that QuickTest creates in the test or component to represent the actual object in your application. QuickTest stores information about the object that will help it identify and check the object during the run session. A run-time object is the actual object in your Web site or application on which methods are performed during the run session. What are assistive properties or an ordinal identifier? When mandatory property values are not sufficient to uniquely identify the object within its parent object, QuickTest adds some assistive properties and/or an ordinal identifier to create a unique description. Note: You can retrieve or modify property values of the test object during the run session by adding GetTOProperty and SetTOProperty statements in the Keyword View or Expert View. You can retrieve property values of the runtime object during the run session by adding GetROProperty statements. If the available test object methods or properties for an object do not provide the functionality you need, you can access the internal methods and properties of any run-time object using the Object property. You can also use the attribute object property to identify Web objects in your application according to user-defined properties. What is object Repository ?Explain different types of Object Repositories? QuickTest identifies objects in your application based on a set of test object properties. It stores the object data it learns in the object repository. You can save your objects either in a shared object repository or in action object repository. In shared object repository mode, you can use one object repository file for multiple tests or components. In object repository peraction mode, QuickTest automatically creates an object repository file for each action in your test. Object repository per-action mode is not available for components. How you can enhance your test? There are variety of options to enhance your test: (1) You can add checkpoints to your test. A checkpoint is a step in your test that compares the values of the specified property during a test run with the values stored for the same test object property within the test. This enables you to identify whether or not your Web site or application is functioning correctly. (2) You can parameterize your test to replace fixed values with values from an external source during your test run. The values can come from a Data Table, environment variables you define, or values that QuickTest generates during the test run. (3)You can retrieve values from your test and store them in the Data Table as output values. You can subsequently use these values as an input parameter in your test. This enables you to use data retrieved during a test in other parts of the test. (4) You can divide your test into actions to streamline the testing process of your Web site or application. (5)You can use special QuickTest options to enhance your test with programming statements. The Step Generator guides you step-by-step through the process of adding recordable and non-recordable methods to your test. You can also synchronize your test to ensure that your application is ready for QuickTest to perform the next step in your test, and you can measure the amount of time it takes for your application to perform steps in a test by defining and measuring transactions. (6)You can also manually enter standard VBScript statements, as well as statements using QuickTest test objects and methods, in the Expert View. Explain different recording modes ? QuickTest’s normal recording mode records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of QuickTest’s test object model, recognizing the objects in your application regardless of their location on the screen. Analog Recording – enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. In this recording mode, QuickTest records and tracks every movement of the mouse as you drag the mouse around a screen or window. This mode is useful for recording operations that cannot be recorded at the level of an object, for example, recording a signature produced by dragging the mouse. Note: You cannot edit analog recording steps from within QuickTest. ? Low-Level Recording – enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation. This mode records at the object level and records all run-time objects as Window or WinObject test objects. Use low-level recording for recording tests in an environment or on an object not recognized by QuickTest. You can also use low-level recording if the exact coordinates of the object are important for your test. Note: Steps recorded using low-level mode may not run correctly on all objects. Explain different types of checkpoints? There are 10 types of checkpoints you can insert: Standard Checkpoint checks the property value of an object in your application or Web page. The standard checkpoint checks a variety of objects such as buttons, radio buttons, combo boxes, lists, etc. Image Checkpoint checks the value of an image in your application or Web page. For example, you can check that a selected image’s source file is correct. Bitmap Checkpoint checks an area of your Web page or application as a bitmap. Table Checkpoint checks information within a table. For example, suppose your application or Web site contains a table listing all available flights from New York to San Francisco. You can add a table checkpoint to check that the time of the first flight in the table is correct. Text Checkpoint checks that a text string is displayed in the appropriate place in your application or on a Web page. Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows application, according to specified criteria. Accessibility Checkpoint identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines. Page Checkpoint checks the characteristics of a Web page. For example, you can check how long a Web page takes to load or whether a Web page contains broken links. Database Checkpoint checks the contents of a database accessed by your application. XML Checkpoint checks the data content of XML documents in XML files or XML documents in Web pages and frames. What is parameter? A parameter is a variable that is assigned a value from an external data source or generator. If you wish to parameterize the same value in several steps in your test or component, you may want to consider using the Data Driver rather than adding parameters manually. How many types of parameters are there? There are four types of parameters: 1. Test, action or component parameters 2. Data Table parameters 3. Environment variable parameters 4. Random number parameters Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.0 Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data Table. Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and options you choose. Random number parameters enable you to insert random numbers as values in your test or component. How Does Run time data (Parameterization) is handled in QTP? You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. Explain about the Test Fusion Report of QTP ? Once a tester has run a test, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with QuickTest Professional, you can share reports across an entire QA and development team. How QTP recognizes Objects in AUT? QuickTest stores the definitions for application objects in a file called the Object Repository. As you record your test, QuickTest will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by QuickTest), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the QuickTest script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties. In how many ways we can add check points to an application using QTP. We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording)
  26. Here are few more Questions.

    1. What are the Features & Benefits of Quick Test Pro (QTP 8.0)? – Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation zero-configuration Keyword Driven testing technology in Quick Test Professional 8.0 allowing for fast test creation, easier maintenance, and more powerful data-driving capability. Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution. Collapses test documentation and test creation to a single step with Auto-documentation technology. Enables thorough validation of applications through a full complement of checkpoints.
    2. How to handle the exceptions using recovery scenario manager in QTP? – There are 4 trigger events during which a recovery scenario should be activated. A pop up window appears in an opened application during the test run: A property of an object changes its state or value, A step in the test does not run successfully, An open application fails during the test run, These triggers are considered as exceptions.You can instruct QTP to recover unexpected events or errors that occurred in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps: 1. Triggered Events 2. Recovery steps 3. Post Recovery Test-Run
    3. What is the use of Text output value in QTP? – Output values enable to view the values that the application talks during run time. When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.
    4. How to use the Object spy in QTP 8.0 version? – There are two ways to Spy the objects in QTP: 1) Thru file toolbar, In the File Toolbar click on the last toolbar button (an icon showing a person with hat). 2) True Object repository Dialog, In Object repository dialog click on the button object spy. In the Object spy Dialog click on the button showing hand symbol. The pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible. or window is minimized then, hold the Ctrl button and activate the required window to and release the Ctrl button.
    5. How Does Run time data (Parameterization) is handled in QTP? – You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files.
    6. What is keyword view and Expert view in QTP? – Quick Test’s Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that Quick Test Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View.
    7. Explain about the Test Fusion Report of QTP? – Once a tester has run a test, a Test Fusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining Test Fusion reports with Quick Test Professional, you can share reports across an entire QA and development team.
    8. Which environments does QTP support? – Quick Test Professional supports functional testing of all enterprise environments, including Windows, Web,..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services.
    9. What is QTP? – Quick Test is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, Quick Test Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and.NET framework applications
    10. Explain QTP Testing process? – Quick Test testing process consists of 6 main phases:
    11. Create your test plan – Prior to automating there should be a detailed description of the test including the exact steps to follow, data to be input, and all items to be verified by the test. The verification information should include both data validations and existence or state verifications of objects in the application.
    12. Recording a session on your application – As you navigate through your application, Quick Test graphically displays each step you perform in the form of a collapsible icon-based test tree. A step is any user action that causes or makes a change in your site, such as clicking a link or image, or entering data in a form.
    13. Enhancing your test – Inserting checkpoints into your test lets you search for a specific value of a page, object or text string, which helps you identify whether or not your application is functioning correctly. NOTE: Checkpoints can be added to a test as you record it or after the fact via the Active Screen. It is much easier and faster to add the checkpoints during the recording process. Broadening the scope of your test by replacing fixed values with parameters lets you check how your application performs the same operations with multiple sets of data. Adding logic and conditional statements to your test enables you to add sophisticated checks to your test.
    14. Debugging your test – If changes were made to the script, you need to debug it to check that it operates smoothly and without interruption.
    15. Running your test on a new version of your application – You run a test to check the behavior of your application. While running, Quick Test connects to your application and performs each step in your test.
    16. Analyzing the test results – You examine the test results to pinpoint defects in your application.
    17. Reporting defects – As you encounter failures in the application when analyzing test results, you will create defect reports in Defect Reporting Tool.
    18. Explain the QTP Tool interface. – It contains the following key elements: Title bar, displaying the name of the currently open test, Menu bar, displaying menus of Quick Test commands, File toolbar, containing buttons to assist you in managing tests, Test toolbar, containing buttons used while creating and maintaining tests, Debug toolbar, containing buttons used while debugging tests. Note: The Debug toolbar is not displayed when you open Quick Test for the first time. You can display the Debug toolbar by choosing View — Toolbars — Debug. Action toolbar, containing buttons and a list of actions, enabling you to view the details of an individual action or the entire test flow. Note: The Action toolbar is not displayed when you open Quick Test for the first time. You can display the Action toolbar by choosing View — Toolbars — Action. If you insert a reusable or external action in a test, the Action toolbar is displayed automatically. Test pane, containing two tabs to view your test-the Tree View and the Expert View ,Test Details pane, containing the Active Screen. Data Table, containing two tabs, Global and Action, to assist you in parameterizing your test. Debug Viewer pane, containing three tabs to assist you in debugging your test-Watch Expressions, Variables, and Command. (The Debug Viewer pane can be opened only when a test run pauses at a breakpoint.) Status bar, displaying the status of the test
    19. How does QTP recognize Objects in AUT? – Quick Test stores the definitions for application objects in a file called the Object Repository. As you record your test, Quick Test will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by Quick Test), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the Quick Test script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.
    20. What are the types of Object Repositories in QTP? – Quick Test has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test. The object repository per-action mode is the default setting. In this mode, Quick Test automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object’s property values in one action, you may need to make the same change in every action (and any test) containing the object.
    21. Explain the check points in QTP? – A checkpoint verifies that expected information is displayed in an Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP. A page checkpoint checks the characteristics of an Application. A text checkpoint checks that a text string is displayed in the appropriate place on an Application. An object checkpoint (Standard) checks the values of an object on an Application. An image checkpoint checks the values of an image on an Application. A table checkpoint checks information within a table on a Application. An Accessibilityy checkpoint checks the web page for Section 508 compliance. An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application. A database checkpoint checks the contents of databases accessed by your web site
    22. In how many ways we can add check points to an application using QTP? – We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording).
    23. How does QTP identify objects in the application? – QTP identifies the object in the application by Logical Name and Class.
    24. What is Parameterizing Tests? – When you test your application, you may want to check how it performs the same operations with multiple sets of data. For example, suppose you want to check how your application responds to ten separate sets of data. You could record ten separate tests, each with its own set of data. Alternatively, you can create a parameterized test that runs ten times: each time the test runs, it uses a different set of data.
    25. What is test object model in QTP? – The test object model is a large set of object types or classes that Quick Test uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that Quick Test can record for it. A test object is an object that Quick Test creates in the test or component to represent the actual object in your application. Quick Test stores information about the object that will help it identify and check the object during the run session.
    26. What is Object Spy in QTP? – Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
    27. What is the Diff between Image check-point and Bit map Check point? – Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. Quick Test captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space. For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly. You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded). Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.
    28. How many ways we can parameterize data in QTP? – There are four types of parameters: Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test. Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, Quick Test uses a different value from the Data Table. Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that Quick Test generates for you based on conditions and options you choose. Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have Quick Test generate a random number and insert it in a number of tickets edit field.
    29. How do u do batch testing in WR & is it possible to do in QTP, if so explain? – Batch Testing in WR is nothing but running the whole test set by selecting Run Test set from the Execution Grid. The same is possible with QTP also. If our test cases are automated then by selecting Run Test set all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in Waiting mode.
    30. If I give some thousand tests to execute in 2 days what do u do? – Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
    31. What does it mean when a check point is in red color? what do u do? – A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or a Application issue.
    32. What is Object Spy in QTP? – Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
    33. What is the file extension of the code file & object repository file in QTP? – Code file extension is.vbs and object repository is.tsr
    34. Explain the concept of object repository & how QTP recognizes objects? – Object Repository: displays a tree of all objects in the current component or in the current action or entire test (depending on the object repository mode you selected). We can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits. If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description. If no assistive properties are available, then it adds a special Ordinal identifier such as objects location on the page or in the source code.
    35. What are the properties you would use for identifying a browser & page when using descriptive programming? – Name would be another property apart from title that we can use.
    36. Give me an example where you have used a COM interface in your QTP project? – com interface appears in the scenario of front end and back end. for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface. of which COM will be one among those interfaces. Create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).
    37. Explain in brief about the QTP Automation Object Model. – Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.

  27. Hi
    Let me sincerely appreciate the forum for the kind of contributions from all members. Please let me know if anybody have Java Plug in for QTP.

    Best Regards
    Anil

  28. Hi Mayank,

    Do you have any idea about free download of .NET Addin for QTP 8.2??????……… I am in need of it urgently…..

    Regards,
    Priyanka

  29. Hi Kuldeep,

    Do you have any idea about free download of .NET Addin for QTP 8.2??????……… I am in need of it urgently….

    Regards,
    Priyanka

  30. Hi all,

    I am trying to use QTP 8.2 Version in a C# .NET Windows Application. The Recording part of the QTP is going on fine, but, while running the test, a button is not getting identified. To solve this problem, I have checked the runtime object properties of the object in the Application and also the Test Object Properties of the object using Object Spy.

    I am not able to comprehend what and where is the problem. It would be of great help if you can kindly help me in this regard.

    Is it because of not having .NET Addin?

    Awaiting your kind reply,
    Priyanka

  31. HI FRIENDS

    can any one please answer this . say if i am using qtp8.2 for one project . now the company wants to use it for another project is there any option available to use the same license for another project or do i have to buy a new license.

  32. Especially two reasons – In winrunner you can test this type of applications like java,vb,vb.net, etc., the script should be in c lanaguage. You have to know minimum c knowledge for winrunner(tsl) . But in QTP , based on application the script will be developed
    i.e., java – java script , VB – vb script. you need not worry about languages. Learn languages are not compulsory.

    QTP tool almost suitable for all s/w products like vb,java,vb.net,sap,siebel,erp,embedded.mainframe, etc.,

    QTP is also testing web applications and in real time gives quick results and no need to create the script again and again,once create execute . In winrunner we have to create again and again.

    choose add ins – Based on company , for example u r working in one mnc , ur company using java language and qtp . Java add ins purchased by ur comapny along with qtp software. Then when you open a qtp for testing java application , addins automatically there and u can select that addins only.

    90% in real time fuctional testing is required . Concentrate on it

  33. Hi Madhukar

    for u

    Especially two reasons – In winrunner you can test this type of applications like java,vb,vb.net, etc., the script should be in c lanaguage. You have to know minimum c knowledge for winrunner(tsl) . But in QTP , based on application the script will be developed
    i.e., java – java script , VB – vb script. you need not worry about languages. Learn languages are not compulsory.

    QTP tool almost suitable for all s/w products like vb,java,vb.net,sap,siebel,erp,embedded.mainframe, etc.,

    QTP is also testing web applications and in real time gives quick results and no need to create the script again and again,once create execute . In winrunner we have to create again and again.

    choose add ins – Based on company , for example u r working in one mnc , ur company using java language and qtp . Java add ins purchased by ur comapny along with qtp software. Then when you open a qtp for testing java application , addins automatically there and u can select that addins only.

    90% in real time fuctional testing is required . Concentrate on it

  34. Hi Priyanka,

    if u go for low level recording , u should get where the object is identified. And once again u have to recollect ur qtp i mean concentrate on Object identification of qtp .

    Mandatory Properties()

    Assistive Properties()

    Ordinal identifier()

    Bye

    aravind

  35. hai, can u give me ans for these ques ASAP

    1.List me out the short cut keys for some functionalities in the QTP….for example…….to record……to run….etc
    2.What are the challenges do we face while testing webbased applications using the automation tool QTP or any?
    3.Do we get any issues if we run the testscript on different browsers?What are the options we need to st in QTP?
    4.How we can add actions in the test using QTP?
    5.Does QTP provides any tools for parametarization?
    6.What are recovery management techniques?
    7.How we can merge the object repositories?say if we have two or three object repositories then how we can merge them?is there any option in qtp to merge the object repositories?
    8.What is the difference between link and hyperlink?
    9.Can some one help me how to compare thevalues from one sheet to values in another sheet?suppose i have a field called temp in action1 and i also have temp in action2. i want to compare the values of those two actions sheets data table? how can i do it using descriptive programming?
    10.How to do batch run in qtp? provide the steps?
    11.Can we do qtp testing without creating objects in Dbject repository?can we do it completely writing code i.e in expert view only. are there any books for this?
    12. In qtp,how to interact tool & application build?
    13.Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20…30,30.40,…selecting ‘a’ shuld display
    10…..20.,’b’ shld display 20…….30…….and so on.tell d script? 2.Random testing of 500 test cases in qtp?
    14.How to do the batch testing using qtp?
    15. What is the use of “function generator ” in qtp?
    16. What is environment variables?
    17. What is the use of virtual object?explain?
    18. Difference between wr 8.2? how to integrate with some other tools?
    19. What is the function (how to do) the batch testing in test director using manual testing procedure?
    20. What is a test strategy & what is the difference between test strategy & test plan?
    21. What is descriptive programming when it is useful? & when to use this?
    22.How to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
    23. If two text boxes are there in a “form”. ….>A table contains some records which contains usernames & password….what is the script we need to write using descriptive programming concept….in QTP(simply data driven test script of qtp)?
    24. Can we run the scripts of qtp 8.2 in the qtp 7.0?
    25. How to capture data from images in qtp and produce them in excel sheet?
    26. How to handle recovery scenario in QTP. give detailed explanation about recovery scenario..
    27. How we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables
    28. What are the file extensions for pre-action,shared object repository files and what is the extension for library files?
    29. What are the most frequent errors you faced while executing your scripts?
    30. among all the check points what is the most important check point?
    31. How to write script in QTP(vbscript)…i mean with out application deployed…and how to call script1 into script2?
    32. How do you handle multiple banners(at the top the page,the banner is scrolling) in a web page(donot take the name property(regular expression))
    33. How do you handle XML exceptions in QTP(here it is exception,not the check point)
    34. What is iteration? how it is related to test results in QTP
    35. Is it possible to map an image as standard object or u’ve to treat as virtual? how to map an dynamic image into standard object?
    36. What is the exact diff between test and component in QTP?
    37. Difference between image checkpoint and bitmap checkpoint?
    38. What is the descriptive.crate() in QTP?
    39. What is TOM in QTP?
    40. What is the abbrivation of .mtr in action repository?
    41.I am new in QTP, plz tell me any books for QTP,my company is QTP,so i learn QTP
    42. Tell about descriptive programming in QTP8.2?
    43. Tell about automation object model(Aom) in QTP?
    44. How to merge object repositories?
    45. What is the command used to start the QTP from run.(start-> run)
    46. What does VBS file contain…??what is VBS file?
    47. What is unicoad compability?how does this makes a difference from winrunner?
    48. What is the exact meaning of environment variables? what is complie module in QTP?what exactly it contains functions or actions?
    49. What is compile modulein QTP?what exactly it contains functions or actions?
    50. What is the exact meaning of environment variabes?
    51. How to watch currnet value of an object like OK button or edit box with “agent nale:” lable. in watch expression tab
    52. Which functionalities of QTP used in banking project?
    53. I am begineer in QTP and i want to try the software QTP. i checked the mercury site for QTP trial version and i found QTP9.0. the thing is tht it supports windows 2000,Xp but not windows 98. and i am using windows 98 only and its not possible for me to update to windows 2000.guide me to get the tria version of QTP which supports windows 98 operating system.
    54. Tell me the QTP advantage and disadvantges?
    55. How do you configure QTP and test director?
    56. How to get the column count and column name from the result set in the data base connection program?
    57. Scalability testing comes under in which tool?
    58. What is the difference between rational rose and QTP?which tool is better to learn?
    59. How to test the mainframe application?(tell me few basic things)
    60. What is throw object?
    61. How will you handle the situation when object isnot captured during recors?
    62. What kind of errors can be handled in QTP in real time scenario?
    63. Can objects recognised without repository?
    64. What is smart identification?
    65. What is the differece between normal mode and fast moce?
    66. In how many ways you perform batchtesting
    67. What is API
    68.What is the difference between action and script
    69.Synchronozation types in QTP
    70.Batch testing in howmany ways u perform in QTP
    71. Approch for installation,comaptibility,system testing
    72.user defined function in QTP
    73.How you perform exception handling in QTP,what is other name for this.
    74.How you call functions in QTP
    75.How you connect bugzilla with QTP
    76.How you sre using QTP in ur projrct
    77.how you automate testscripts one by one or modukewise or all at once
    78.Can we directly automate testscripts according to requirements
    79.How you automate test scripts
    80.What do you do if QTP doesnt recognize object,what action should be taken
    81.After running scripts how you report results, there is any specific report form?
    82.In object repository,two actions r there.action1 name is A.tsr, action2 name is B.tsr.is it possible?if yes,what is the output of A+B?if no, why?
    83.Anybody explain me,the concept of checkpoint declaration in the QTP mainly for the objects,pages,text and tables?
    84.How to use regular expressions in QTP?give an example.
    85.Take a situation when you are working with QTP,suddenly systam has crashed. so u again start the system. my que ishow can QTP directly opened when the system desktop appears?
    86.Give me descriptive programming code sample flight application in QTP
    87.Can you put checkpoints for moving images.
    88.how to test background color and dynamic images during runtime
    89.Where is the bitmap checkpoint be saved?
    90.What happen in object repository(shared) if we call an existing action from an external action? and what happen in object repository(peraction) if we call an existing action from an external action?
    91.How can we retrive ten rows from the data table using loop concept?
    92.How to convert a string to an integer?
    93.How to “turn off” QTP results after running a script?
    94.Does QTP is “unicoe” compatible?
    95.How to supress warnings from the “test results page”?
    96.What is the extension of script and object repository files in QTP?
    97.How to open any application during scripting in QTP?
    98.How to retrive the property of an object in QTP?
    99.How to change the run time values of a property for an object in QTP?
    100.How to handle run-time errors?
    1. how many maximum actions can be performed in a single test
    2. How to create the dynamic object repository in QTP?
    3. What is difference between global sheet anh action sheet?
    4. How to pass parameters from one action to another action.
    5. How to perform Cross platform testing and Cross browser testing using QTP?Can u explain giving some exampl
    6. how to connect the database through QTP
    7. How to open multiple instances of an application from QTP? 2. How to recognize each instance and setting
    8. This is the chain of question#: 15434What conditions we go for Reusable Scripts and how we create and
    9. Can we call QTP test from another test using scripting.Suppose there are 4 tests and i want to call these
    10. Is it possible to test a web application(java) with winrunner?otherwise is it possible to check with
    11. How can we insert Text check point and Bit map check point ? if provide example script, it is greatefu
    12. Can we mask a Code In .vbs file so that it is not viewable to others?
    13. Is there any function to double click a particular row in a webtable?
    14. what is the use of command tab in Debug viewer ?can we execute any user defined queries
    15. What is Analog recording,What is the difference between analog recording and low level recording
    16. what is database check point.
    17. What is the use of function and sub function in QTP?
    18. What is the new Version of QTP which is recently released in the Market?
    19. How to call a funtion present in dll file in QTP Script.
    20. I have n iterations of test run in QTP. I want to see the results of not only the latest (‘n’th) iteration
    21. How to call from one action to another action in QTP?
    22. What is the Difference Between Bit map Check point & Image Check pointPlease explain in detailText &
    23. How can we do block commenting in QTP?
    24. How to get the column count and column name from resultset in database connction program?
    25. 1. How to write QTP scripts?2. Any related website resource to learn QTP?3. What steps the to be follwed
    26. How to check an XML schema (XML Schema Validation–from XML file)? Ttell me about .XSD file format.
    27. How to schedule tests in QTP?
    28. Is Addins enough to work in Flex based applications? or do we have to get a licence for multimedia for
    29. how to identify a ‘web element’ class object while recording and running in ‘Event’ mode of settings.
    30. What are the new features available in QTP 8.2 compared with earlier versions?
    31. Hi forum. Could any body tell me what is AMDOCS, and what are its models ? Best regrds.
    32. What is difference between window(” “) and dialog(” “) in QTP while creating script?
    33. How do you retrieve the Class name of a Test Object programmatically from within a script?
    34. What is the best way to test UNIX (QTP, Winrunner or Xrunner)? If QTP supports let me know the brief
    35. What is the Recovery Scenerio can apllied for any telephone line connection(Ex:BSNl,Airtel etc
    36. what are advantages and disadvantages between internet explorer and netscape navigator (or) Internet
    37. Anybody with an experience of testing Mainframe applications. I usually check the ActiveX and VB add-ins
    38. Difference Between text and Textarea checkpoints in QTP
    39. How to Handle dynamic WebList in QTP…Values in Weblist are different
    40. What is the Hotkey that can be used for Hitting spacebar?
    41. We are trying to avoid that anybody see our script after we wrote it. Did anybody know how to do this?
    42. how can i insert database checkpoint in qtp-6.5
    43. What are different execution modes available in QTP & explain them.
    44. How can we recognize objects in Flex application using QTP? When I record scripts, it takes all objects
    45. For the AS/400 application that takes data only thru the keyboard input and not even single mouse click
    46. How to write QTP test results to an Excel application
    47. How to write recovery scenario for below questions and what are the steps we will follow?if i click
    48. If winrunner and QTP both are functional testing tools from the same company.why a separate tool QTP
    49. How do we test Links using Quick Test Professional and confirm that the page we are requesting is seen
    50. How do you test DLL files using QTP?
    51. After importing external .xls datasheet in to Datatable of QTP, How to set NO of iterations run for
    52. How to test Dynamic web pages using QTP
    53. How to record Flex (1.0) objects using QTP?Post the code which works for this.
    54. Advantage of using Mercury Quality Center over Test Director
    55. How do we connect to Oracle database from QTP ?
    56. Can any one pls tell me about how to configure the environment variables in qtp and how to use the variables
    57. What is the process for creating an automated test script using QTP assuming you have reviewed the manual
    58. How to use a data driver in QTP?
    59. What is the method used to focus on particuler field.I need the script.I will give example.I flights
    60. 1)what is the advantage and disadvantage of using Virtual Object wizard?2) How efficiently we can use
    61. Without recording objects in Object Repository are we able to run scripts?
    62. Can we call a QTP script from a main script without making it reusable?
    63. wat is xml schema validation and how to perform schema validation for a file.wat is *.XSD extention
    64. Can any body expalin me the differences between a reusable and a external action with example?
    65. I need information on using FSO(file system object) also its significance
    66. How to Run a script recorded in English flavor of my application and re-run the same script on different
    67. How to write QTP test results to an Excel application, Please provide the exact code if possible ASAPThanks
    68. What are the limitations for XML Checkpoints in QTP 8.0?
    69. how good is QTP for testing siebel applications?whether QTP recognizes siebel objects or something else
    70. How do I use text checkpoint in QTP as everytime I use this checkpoint in the excel sheet and highlight
    71. How is automation used in QTP for regreession testing. Please give me a sample script.
    72. Anybody explain me, the concept of checkpoint declaration in the QTP mainly for the Objects, Pages, Text
    73. How can we validate the PDF file recognization and its content with the help of Mercury product QTP(Quick
    74. What is Expert view in QTP?Can you explain with example?
    75. What is the best way to do regression testing using QTP.
    76. what is the use functions in QTP. public, private
    77. How can we return values from userdefined function? anybody provide code with small example its great
    78. how to retrive/update database by writing code in expert viewIn my case database is Accessmy dsn name=”try”database
    79. How can I import and/or merge an existing repository into my current test?
    81. Hi,I was set the repository as per test mode and recorded my script. Now I wana to change the repository
    82. What are Limitation of QTP?
    83. what is difference between stub and driver?
    84. What is meant by Source Control?
    85. What is descriptive programming?
    86. how to automate editing an XML file .because when i record the editing on an XML file and run it,some
    87. What are the disadvantages or drawbacks in QTP?
    88. 1. Each test that you run is displayed into the screen … I’m looking for a way to run a test in background
    89. I have faced one question in interviewhe has given one screen with one bitmap and one edit box.The original
    90. What qt plus ? How we merge the files in qtp?What is feasibility study in automation?
    91. when a script is recorded in quick test for connecting 10 rows in the database, can we change script
    92. How do you test siebel application using qtp?
    93. How to get Traceability matrix from TD?
    94. How to import a test case present in “.xls” file to TD under a Test set?
    95. How to attach a file to TD?
    96. What do you to script when objects are removed from application?
    97. How do you data drive an external spreadsheet?
    98. Give me an example where you have used a COM interface in your QTP project?
    99. How long have you used the product?
    100. How to get “FontSize” of a “WebEdit”?
    101. Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
    102. How to create a Runtime property for an object?
    103. How to handle the exceptions using recovery scenario manager in QTP ?
    104. What is the use of Text output value in QTP?
    105. Have you ever written a compiled module? If yes tell me about some of the features.
    106. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?
    107. What is the command in QTP to invoke IE Browser?
    108. How to execute QTP script from command prompt?
    109. How We will count the total number of web Links on a Page?
    110. How you will creat a object in VB Script?
    111. What is the difference between TSL & VBScript?
    112. Write a Script if a button is enable or not?

  36. How do i use the user defined functions in QTP . Functional definition generator is there but i have a set of pre defined functions . will i be able to store as a repository and retrieve as and when required .

  37. hi friends i have some quatins in QTP if any persone knows answers please help me thaks

    Test Profissional

    1. What is the difference between QTP and Winrunner?
    2. Which one do you prefer, QTP or Winrunner? And why?
    3. What are the different data tables in QTP
    4. What are the different types of object repositories in QTP
    5. What in the difference between shared and global object repositories, which one do you prefer and why?
    6. What are checkpoints and how many types of checkpoints are there in QTP?
    7. What is the difference between database checkpoint and table checkpoint?
    8. How do you insert a database checkpoint and a table checkpoint?
    9. Can we use text checkpoint on a word document, pdf and a web application? Which of these is not possible if at all it is not possible and why?
    10. What is an add-in?
    11. What is parameterization?
    12. Can we parameterize a link on a website?
    13. What is synchronization?
    14. What is the difference between a sync and a wait statement?
    15. What are looping functions in QTP, give examples?
    16. How many modes of recording are available in QTP and explain each.
    17. What is the default synchronization time in QTP and where and how can you change it?
    18. What is an object repository?
    19. What is the object identification process that QTP uses to identify an object?
    20. What is an ordinal identifier?
    21. What is smart identification?
    22. What is a virtual object?
    23. Can we run winrunner script from QTP?
    24. Can we run a Vugen script from QTP?
    25. What is a regular expression; give an example that is not from the mercury tutorial.
    26. What is the difference between normal recording mode, low level and analog mode?
    27. Where does the origin (0,0) lay on the screen for the x and y co-ordinates during low level recording?

  38. Hi people,
    This is Nanda, and searching for job on Tesing. can any one tell the exact test case Format.

    What is the Use case?

    Thanks in Advance…

    Regards..
    Nanda

  39. Hi,
    Its good 4 freshers.any body u r having QTp material PLz forwarded me to this Email id.(purushotham.sree@gmail.com)

  40. i am a beginner in testing and to qtp.. I was trying to test a website .. and i want to capture a text( warning that appears while recording) . is it possible????

    Thanks..

    asha

  41. hi mayak,

    its me lalitha, i need whats the difference between winrunner and qtp 8.0and whats the difference between qtp7 and qtp 8.0 can u tell

    thank u,bye

  42. Hi Guy’s

    I am getting the following error while running my QTP Script
    “Description:Catastrophic failure”
    And when run script automatically generating script “Call RunAction(“Action1″,oneIteration)”

    Can any body please help me in this regard???

    Thanks,
    Rajesh

  43. Hi,

    Create all the progorms as library files(.vbs) extension
    Record what thing that u want and remove the script and paste in to a note pad and save individually
    For Eg.
    Login as one library file(.vbs)
    Open a record as one library file(.vbs)
    Perform a change as one Library file(.vbs)
    Make the test pane as empty
    Take the Test Batch Run which is available at Start >> Programms >> QTP >> Test Batch Runner

    Select individual files and put all together
    Then click on Run

  44. Hi ,

    This is arjun reddy , now i am working as manual testing amd i want to learn QTP tool .plz helpi me how to start the QTP and send a some related links to read.

    Thanks ,

    Arjun reddy

  45. Hi

    1) What is custom checkpoint?
    2) Can Anyone guide me with an example, how to create a custom checkpoint in QTP?
    3) Is it possible to create checkpoints in Descriptive programming

    Kindly revert back ASAP

    Suman

  46. Hi

    1) What is custom checkpoint?
    2) Can Anyone guide me with an example, how to create a custom checkpoint in QTP?
    3) Is it possible to create checkpoints in Descriptive programming

    Kindly revert back ASAP. My email id is sbrajwar@gmail.com

    Suman

  47. What is the importance of Analog Recording & Low Level Recording in QTP? Also I need to know can we record the scripts for Terminal servers e.g Citrix Program Neighborhood etc.

  48. Hi Ranjan,

    Using descriptive programming we can click dynamic link ..If u explain me in detail about your scenario i can help u out…

    Thanks,

    Ranjani

  49. Hi to everybody and i am new user.I am really impressed abt this comments.
    So, please get me the compatible browser versions of qtp 8.2.
    I will be waiting for your answers.

    Bye & All the people have a nice day.
    Thanks,

    Amar.

  50. Hi I am having a CPU of AMD athlon 64 processor. Initially I had installed the trial version of Winnrunner 7.6. But after 45 days, the trial version expired. I could not again re-installed the trial version of Winnrunner 7.6. Even I tried to install RestoreIT data back up software but my CPU does not support RestoreIT.

    So, please any body can me answer (a) how to install once again the free version of WinnerRunner, may it be 7.6 or 7.5.
    (b) Is there any data backup software for AMD Athlon 64 processor.

    Thank you.
    anup

  51. Create all the progorms as library files(.vbs) extension
    Record what thing that u want and remove the script and paste in to a note pad and save individually
    For Eg.
    Login as one library file(.vbs)
    Open a record as one library file(.vbs)
    Perform a change as one Library file(.vbs)
    Make the test pane as empty
    Take the Test Batch Run which is available at Start >> Programms >> QTP >> Test Batch Runner

    Select individual files and put all together
    Then click on Run

  52. Testing Training@Bangalore

    Cocksure Consulting, a professional venture-conceived, promoted and Co-founded by Like-Minded Human Resource and Testing professionals committed to the cause of imparting high level of sophisticated training. We are basically into IT Consulting, Education & Training.

    Mission

    It is our mission to provide the most up-to-date practical hands-on training at affordable prices. It is our commitment to make your training experience exactly what you want it to be. We can help, with a unique set of training classes on software testing We talked to a number of Test Managers to find out what skills they desired in a tester. Along with that knowledge and our own years of experience in testing we’ve created classes designed to give you the practical knowledge and hands-on training necessary to be an effective tester. Our courseware is tailor made to be instructor led with plenty of hands-on exercises to ensure you get the highest quality of instruction.

    There’s material on how to do performance testing so that you get valid results. It’s based on an insightful analysis of how systems respond to increasing load, and what makes them fail in various ways. With this information, it’s clear how we need to do load testing.

    Experience Counts

    Our instructors are seasoned professionals with years of personal experience in the world of software testing/development. You’ll learn from the experts who have been there and can expertly convey their knowledge of testing. Real-world examples, tips, tricks and methodologies and how to apply them is what practical training is all about.

    Why join Cocksure Consulting, Bangalore?

    Training imparted by the Real –Time experts
    Corporate! training available
    24/7 assistance available
    Limited strength for high level of Trainee-Trainer interaction
    100% Hands-On-Training
    Flexible Batch Timings, so your daily schedules don’t get disturbed
    Study material and help CDs provided
    Career counseling provided
    Placement assistance provided, which includes the following:

    Resume Formatting/ Up Gradation / Forwarding.
    Mock Interview and tips

    Consultancy services and relevant
    details that assists getting testing jobs.

    Loads of latest valuable information

    Curriculum:

    Manual testing:

    Basic Testing Concepts

    Basic knowledge of functional and performance testing

    How to create Test Plan, Test Cases

    How to decide testing should start and stop.

    Testing Methodology (based on various STLC cycle)

    Automation Testing:

    Mercury Tool

    Winrunner Course Outline

    Recording and Running Scripts

    • Recording a test script

    • Setting the initial condition

    • Record modes and run modes

    Synchronizing Script and Application

    • Creating synchronization points

    Verification with Standard Checkpoints

    • Implementing GUI checkpoints

    • Implementing bitmap checkpoints

    Data-Driving a Test

    • Understanding parameters

    • Using the Data Driver Wizard

    Introduction to the GUI Map

    • How the GUI Map works

    • Logical Names and Physical Descriptions

    • The two types of GUI Maps

    • How to load a GUI Map from a startup script

    GUI Map Maintenance and Troubleshooting

    • How the GUI Map is recorded and used

    • Two methods for GUI Map maintenance

    • Using the Rapid Test Script Wizard

    • Modifying Logical Names and Physical Descriptions

    • The GUI Spy

    Batch Testing

    • Running tests in Batch mode

    • Calling a test from another test

    • Passing values from one test to another

    LoadRunner Course Outline

    Planning and Effective Load Test

    · · The importance of planning

    · · Analyzing and formatting system usage information

    · · Determining fields to parameterize and the data to use

    Creating Web Virtual Users (Vuser)

    · · Recording user actions

    · · Measuring specific business processes

    · · Parameterize input data

    · · Verifying functionality under load

    · · Verifying correct Vuser execution

    LoadRunner Scenarios

    · · Defining and connecting to hosts

    · · Defining Vuser and scripts

    · · Options and run-time settings for specific purposes

    Analyzing Scenario Execution

    · · Troubleshooting Vuser concurrency issues

    · · Isolating top time transactions

    · · Scenario and cross results graphs

    Advanced Topics

    · · How VuGen records and replays user actions

    · · Capturing dynamic values

    · · Adding logic to the Vuser

    · · Making output logs more descriptive

    * · Emulating different IP addresses during load testing

    Addition in LoadRunner

    Working with Db Vuser

    This course teaches students to record and enhance Vuser scripts using VuGen in DB protocol for the purpose of including them in LoadRunner scenario

    Course Objectives

    The course teaches you to:

    · Create and enhance Virtual User Scripts

    · Understand what is DB Vuser?

    · Record user actions

    · Script specific Run-Time settings

    · Configure Run-Time Settings

    · Add Transactions – How long does a business process take to complete?

    · Parameterize and input data

    Mercury Site Scope Course Outline

    Hands on sitescope.

    Configuration of application server and Database server

    Mercury Quality Center Course Outline

    Basic Knowledge of QC

    Component of QC

    How to create Test Plan in QC

    How to create Test Lab and Test report

    How to track bugs.

    Manage QC

    Lisa tool:

    The LISA Complete SOA Test Platform is a comprehensive testing solution that reduces the effort and cost of SOA test creation and maintenance, while allowing your team to drastically improve quality levels over time through test reuse.

    This is user for Functional as well as Performance Testing

    Creating test case

    · Record business scenario

    · Edit script

    · Node creation

    · Parameterization

    Creating staging document

    · Run Length Options

    · Simulators

    · Report Generators

    Test Suite creation

    · Creating a Suite Document

    · Suite Execution

    The Test Registry

    · Test Registry

    · Co-coordinator server

    · Simulator Server

    CTS dashboard

    Managing Reports

    How long will it take to break the ice?

    The total course duration is 5 – 6 weeks. We have weekday as well as weekend batches. For batch details, please refer below furnished:

    Week Day Batches:

    Morning: 7:00 AM to 9:00 AM

    Evening:

    7:00 PM to 9:00 PM

    Weekend Batches:

    Scheduled according top your convenience.

    THE Final Destiny – FOR NOW ……………………

    Regards:

    Cocksure Consulting

    Mobile: +91 9845926834

    Email: cocksure.consulting@gmail.com

    cocksure.consulting@yahoo.com

  53. hi nanda test case format

    test case id |Feature Id | Test case description | Expected results | Actual results | Executed by | Executed date | Status [pass/ fail] see it varies from company to company they will following thier own see we are writing in excel sheets how many coulmns needed according their needs they will choose

    thanks

    hanumanth

  54. i need a more about discriptive programmin in qtp using vbscript,or will u suggest any books for that
    warm regards
    mahi

  55. More info about
    1. Parameter
    2. Regular expression
    3. Working with multiple action
    4. calling external actions
    5. Please let me know about, I have multiple test cases (by recording through QTP) and want to use one generalized function in these cases (QTP).

  56. Hi Guys, this is really an awesome blog. Gr8 help for job seekers and also job holders 😉

    I am facing one problem with QTP, does any of you know the workaround.

    I am trying to record an action on a VB application that is launched through a remote Citrix server (remote application publishing server from Citrix). QTP is not recognizing few buttons and all objects are recorded as \\Remote. While running the script, QTP is throwing ‘object not found’ error. Even object spy is not recognizing the application.

  57. Hi friends.,

    I have some problem in QTP.
    It’s Sucessfully installed. While recording a sample project, the script written only for the first action.. Rest of the actions the script does not work.. But the recording process going on!!!

    Why it Came??? Can any one Help me!!
    I face this Problem for past a month!!!

  58. Hi All,
    I am working using qtp9.2 with its .net add-in as my application is a .net application. I am facing problem as in –

    1. my application abruptly closes after every execution of my QTP script.

    2. There is a SWFTable(“grd_results”) – my script fails at this point and gives error “Runtime error”

    3. There is toolstrip which has got list of menus – QTP does identify it as toolstrip and menu items are also identified – but when I select menu item – it fails…

    Can anyone suggest any answers to this.
    It will be of great help to me.
    Thanks for your help in advance.

  59. Hi All,

    I am working on QTP 8.0. Thanks for all. what i am getting materil is good on this site.
    This is very useful to interview point of view.

    Thnaks for All

  60. Hi Priyanka,

    You can downloand .Net Add-in free that is trial version from Mercury site.

    Regards,
    Kuldeep

  61. Hi Mayank,

    Very good starters. thanks too.
    Can you help me. please add the below questions

    1. How to design a automation framework for a web application?
    2. How to start QTP thru Other scripting languages like Js, Python, Perl.

  62. Hi All,

    Pooja, Kalpna, Keerti, Priyanka, Mayank, Ravi Can i have your Gmail id so that we can disucss more about QTP. Now in these days there is a huge demand of QTP.

    My gmail id: kuldeepse@gmail.com
    My blog: kuldeepse.wordpress.com

    Regards,
    Kuldeep

  63. Hello, Can you please tell me how to do the following in QTP:

    If I get a list of choices to choose from, how to I paramaterize my test to take the one I want?
    For example: In the flight app mercury provides you get to enter a from/to flight and once you hit the ‘Flights” button you get a choice of flights, each time you change your from/to it will be different. How do I make my script to take the one that cost the less.

  64. Hi, I am new at QTP and trying to put together tests on an “Attachmate Extra 7.1 3270” using QTP’s terminal emulator. When I try to insert a text checkpoint on the active screen I recieve error “Cannot insert text checkpoint, cannot retrieve text for this object”. Can you help as this is a huge stopper at the moment?

  65. hai this is sitaramaiah i am preparing to qtp interview but i am not having any questions.so pl’s send a questions
    Regards
    Sitaramaiah

  66. Question:Hello, Can you please tell me how to do the following in QTP:

    If I get a list of choices to choose from, how to I paramaterize my test to take the one I want?
    For example: In the flight app mercury provides you get to enter a from/to flight and once you hit the ‘Flights” button you get a choice of flights, each time you change your from/to it will be different. How do I make my script to take the one that cost the less.

    Answer: Hi,
    In this situation convert ur value(choice of Flights) into parameter and in the Datatable u need to mention the Index of the choice.(Index value begins from zero). Instead of “select” method mention “GetItem” method.This script will work without any errors.

    FYI:

    Window(“Flight Reservation”).WinComboBox(“Fly From:”).Select DataTable(“From”, dtGlobalSheet)

    Window(“Flight Reservation”).WinComboBox(“Fly To:”).Select DataTable(“To”, dtGlobalSheet)

    Window(“Flight Reservation”).WinButton(“FLIGHT”).Click

    Window(“Flight Reservation”).Dialog(“Flights Table”).WinList(“From”).GetItem DataTable(“Index”, dtGlobalSheet)

    Window(“Flight Reservation”).Dialog(“Flights Table”).WinButton(“OK”).Click

    -Chandu

  67. What is the difference between set-to-property and get-to-property?what is the internel functionality.explain with an example?

  68. I am working on Manual Testing till now and need to work on QTP now.So from where i need to start to learn in a short period and is any programming skills are required for writing VB script functions in QTP.What i need to learn in VB script?Please help me out in these areas.

  69. Hi Mayank/Anybody,

    Do you guys have answers for the following queries…

    1)How u connect bugzilla with QTP

    2)User defined functions in QTP and one example?

    3)How do you handle objects that were not recognized by QTP?

    4)Error handling in QTP and example for that?

    5)If there is any error or hard pause in the application,how does your script handle it?

    Thanks
    pcn

  70. Hi to all i m new to site and as well as testing domain can u send some suggestions about qtp to my mail gudlanaveen@gmail.com and about the sites and forums we have i will be thankfuk to u all if u send me please and thanks in advance to all

  71. I would like to know how should I configure my QTP 8.2 that already has installed Java Add-In 8.2 to recognize java table as it shows it to me as beeing java object. what should i consider in order for this to work ?

    Thank you in advance…

  72. hi, this is sagar. Excellent job Mayank and everyone . You guys did little brainstorming group interview. one who go thru this site will gain some confidence in attaining sum subj.oriented stuff.it would be nice if somebody can pass on some sample testcases for the beginners to get into thr subject,Good job guys!!!!!!!!1
    bye
    sagar

  73. What is QTP ?
    QuickTest is a graphical interface record-playback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, QuickTest Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and .NET framework applications…
    QTP is Mercury Interactive Functional Testing Tool. QTP stands for Quality Test Professional.
    Mercury QuickTest Professional: provides the industry’s best solution for functional test and regression test automation – addressing every major software application and environment. This next-generation automated testing solution deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance. Unique to QuickTest Professional’s Keyword-driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View.

    QuickTest Professional enables you to test standard Windows applications, Web objects, ActiveX controls, and Visual Basic applications. You can also acquire additional QuickTest add-ins for a number of special environments (such as Java, Oracle, SAP Solutions, .NET Windows and Web Forms, Siebel, PeopleSoft, Web services, and terminal emulator applications).

    What’s the basic concept of QTP?
    QTP is based on two concept-
    * Recording
    * Playback

    Which scripting language used by QTP?
    QTP using VB scripting.

    How many types of recording facility are available in QTP?
    QTP provides three types of recording methods-
    * Context Recording (Normal)
    * Analog Recording
    * Low Level Recording

    How many types of Parameters are available in QTP?
    QTP provides three types of Parameter-
    * Method Argument
    * Data Driven
    * Dynamic

    What’s the QTP testing process?
    QTP testing process consist of seven steps-
    * Preparing to recoding
    * Recording
    * Enhancing your script
    * Debugging
    * Run
    * Analyze
    * Report Defects (more…)

    How to Start recording using QTP?
    Choose Test > Record or click the Record button.
    When the Record and Run Settings dialog box opens to do this;
    1. In the Web tab, select Open the following browser when a record or run session begins.
    2. In the Windows Applications tab, confirm that Record and run on these applications (opened on session start) is selected, and that there are no applications listed.

    How to insert a check point to a image to check enable property in QTP?

    Answer1:
    AS you are saying that the all images are as push button than you can check the property enabled or disabled. If you are not able to find that property than go to object repository for that objecct and click on add remove to add the available properties to that object. Let me know if that works. And if you take it as image than you need to check visible or invisible property tht also might help you are there are no enable or disable properties for the image object.

    Answer2:
    The Image Checkpoint does not have any property to verify the enable/disable property.
    One thing you need to check is:
    * Find out form the Developer if he is showing different images for activating/deactiving i.e greyed out image. That is the only way a developer can show deactivate/activate if he is using an “image”. Else he might be using a button having a headsup with an image.
    * If it is a button used to display with the headsup as an image you woudl need to use the object Properties as a checkpoint.
    How to Save your test using QTP?
    Select File > Save or click the Save button. The Save dialog box opens to the Tests folder.
    Create a folder which you want to save to, select it, and click Open.
    Type your test name in the File name field.
    Confirm that Save Active Screen files is selected.
    Click Save. Your test name is displayed in the title bar of the main QuickTest window.

    How to Run a Test using QTP?
    1 Start QuickTest and open your test.

    If QuickTest is not already open, choose Start > Programs > QuickTest Professional > QuickTest Professional.

    . If the Welcome window opens, click Open Existing.
    . If QuickTest opens without displaying the Welcome window, choose File > Open or click the Open button.
    In the Open Test dialog box, locate and select your test, then click Open.

    2 Confirm that all images are saved to the test results.
    QuickTest allows you to determine when to save images to the test results.

    Choose Tools > Options and select the Run tab. In the Save step screen capture to test results option, select Always.

    Click OK to close the Options dialog box.

    3 Start running your test.

    Click Run or choose Test > Run. The Run dialog box opens.
    Select New run results folder. Accept the default results folder name.
    Click OK to close the Run dialog box.

    How to open a new test using QTP?
    1. If QuickTest is not currently open, choose Start > Programs > QuickTest Professional > QuickTest Professional. If the Welcome window opens, click Blank Test. Otherwise, choose File > New, or click the New button. A blank test opens. 2. . If QuickTest is already open, check which add-ins are loaded by selecting Help > About QuickTest Professional. If the Web Add-in is not loaded, you must exit and restart QuickTest. When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins. Choose File > New, or click the New button. A blank test opens.

    How to do Laod testing for web based Application?
    1. Recording a scenerio in QTP of my web based application.
    2. Make 100 copies of that scenerio and run the test (scenerio run for 100 times)
    3. In that case, do the load of application on server.
    4. The basic logic of running the copy 100 times is to create same scenerio as if 100 users were working.

    What is the extension of script and object repository files?
    Object Repository : .tsr , Script : .mts, Excel : Default.xls

    How to supress warnings from the “Test results page”?
    From the Test results Viewer “Tools > Filters > Warnings”…must be “Unchecked”.

    When we try to use test run option “Run from Step”, the browser is not launching automatically why?
    This is default behaviour.
    What’s Checkpoints for QTP?
    A checkpoint verifies that expected information is displayed in your application while the test is running.

    QuickTest Professional offers the following types of checkpoints:
    Checkpoint Type Description Example of Use
    Standard Checkpoint Checks values of an object’s properties. Check that a radio button is selected.
    Image Checkpoint Checks the property values of an image. Check that the image source file is correct.
    Table Checkpoint Checks information in a table. Check that the value in a table cell is correct.
    Page Checkpoint Checks the characteristics of a Web page. Check how long a Web page takes to load or if a Web page contains broken links.
    Text / Text Area Checkpoint Checks that a text string is displayed in the appropriate place in a Web page or application window. Check whether the expected text string is displayed in the expected locatio
    Bitmap Checkpoint Checks an area of a Web page or application after capturing it as a bitmap Check that a Web page (or any portion of it) is displayed as expected.
    Database Checkpoint Checks the contents of databases accessed by an application or Web site Check that the value in a database query is correct.
    Accessibility Checkpoint Identifies areas of a Web site to check for Section 508 compliancy. Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines.
    XML Checkpoint Checks the data content of XML documents. Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page.

    How to add a standard checkpoint in your test ?
    1. Start QuickTest and open your test.
    In the Open Test dialog box, locate and select your test, then click Open.

    2. Save the test as Checkpoint.
    Select File > Save As. Save the test as Checkpoint.

    3. Confirm that the Active Screen option is enabled.
    If you do not see the Active Screen at the bottom of the QuickTest window, click the Active Screen button, or choose View > Active Screen.

    4. Locate the page where you want to add a standard checkpoint.

    5 Create a standard checkpoint.
    In the Active Screen, right-click element in your application and choose Insert Standard Checkpoint.

    6 Save the test.

    How to add a page checkpoint to your test?
    The page checkpoint checks that the number of links and images in the page when you run your test is the same as when you recorded your test.
    1 Locate the page where you want to add a page checkpoint.
    2 Create a page checkpoint.
    Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint. The Object Selection – Checkpoint Properties dialog box opens. Note that this dialog box may include different elements, depending on where you click in the Active Screen.
    3 Save the test.
    How Does Run time data (Parameterization) is handled in QTP?
    You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files.

    What is keyword view and Expert view in QTP?
    QuickTest’s Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is round-trip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industry-standard VBScript that QuickTest Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View.

    How QTP recognizes Objects in AUT?
    QuickTest stores the definitions for application objects in a file called the Object Repository. As you record your test, QuickTest will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by QuickTest), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the QuickTest script will contain a reference to the object that you interacted with, a call to the appropriate method (set, click, check) and any parameters for that method (such as the value for a call to the set method). The references to objects in the script will all be identified by the logical name, rather than any physical, descriptive properties.

    What are the types of Object Repositorys in QTP?
    QuickTest has two types of object repositories for storing object information: shared object repositories and action object repositories. You can choose which type of object repository you want to use as the default type for new tests, and you can change the default as necessary for each new test. The object repository per-action mode is the default setting. In this mode, QuickTest automatically creates an object repository file for each action in your test so that you can create and run tests without creating, choosing, or modifying object repository files. However, if you do modify values in an action object repository, your changes do not have any effect on other actions. Therefore, if the same test object exists in more than one action and you modify an object’s property values in one action, you may need to make the same change in every action (and any test) containing the object.

    If I give some thousand tests to execute in 2 days what do u do?
    Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
    Does QTP is “Unicode” compatible?
    QTP 6.5 is not but QTP 8.0 is expected to be Unicode compatabile by end of December 2004.

    How to “Turn Off” QTP results after running a Script?
    Goto “Tools > Options > Run Tab” and Deselect “View results when run session ends”. But this supresses only the result window, but a og will be created and can viewed manulaly which cannot be restricted from getting created.

    Explain about the Test Fusion Report of QTP ?
    Once a tester has run a test, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with QuickTest Professional, you can share reports across an entire QA and development team.

    To which environments does QTP supports ?
    QuickTest Professional supports functional testing of all enterprise environments, including Windows, Web, ..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services.

    What’s QuickTest Window?
    Before you begin creating tests, you should familiarize yourself with the main QuickTest window.
    The QuickTest window contains the following key elements:
    . Title bar—Displays the name of the currently open test.
    . Menu bar—Displays menus of QuickTest commands.
    . File toolbar—Contains buttons to assist you in managing your test.
    . Testing toolbar—Contains buttons to assist you in the testing process.
    . Debug toolbar—Contains buttons to assist you in debugging tests.
    . Test pane—Contains the Keyword View and Expert View tabs.
    . Active Screen—Provides a snapshot of your application as it appeared when you performed a certain step during the recording session.
    . Data Table—Assists you in parameterizing your test.
    . Debug Viewer pane—Assists you in debugging your test. The Debug Viewer pane contains the Watch Expressions, Variables, and Command tabs. (The Debug Viewer pane is not displayed when you open QuickTest for the first time. You can display the Debug Viewer by choosing View

    QuickTest identifies the object that you clicked as a WebButton test object. It creates a WebButton object with the name Find, and records the following properties and values for the Find WebButton:
    It also records that you performed a Click method on the WebButton.
    QuickTest displays your step in the Keyword View like this:
    QuickTest displays your step in the Expert View like this:
    Browser(”Mercury Interactive”).Page(”Mercury Interactive”).
    WebButton(”Find”).
    How to analyzing Test Results using QTP?
    When QuickTest finishes running the test, the Test Results window opens.
    Initially, the Test Results window contains two panes for displaying the key elements of your test run.
    . The left pane displays the results tree, an icon-based view of the steps that were performed while the test was running. The results tree is organized according to the Web pages visited during the test run and can be expanded (+) to view each step. The steps performed during the test run are represented by icons in the tree. You can instruct QuickTest to run a test or action more than once using different sets of data in each run. Each test run is called an iteration, and each iteration is numbered. (The test you ran had only one iteration.)
    . The right pane displays the test results details. The iteration summary table indicates which iterations passed and which failed. The status summary table indicates the number of checkpoints or reports that passed, failed, and raised warnings during the test.
    1 View the test results for a specific step.
    In the results tree, expand (+) Test Recording Summary > Recording Iteration 1 (Row 1) > Action1 Summary > your application > your test name .
    The Test Results window now contains three panes, displaying:
    . the results tree, with one step highlighted
    . the test results details of the highlighted step
    . the Active Screen, showing a screen capture of the Web page on which the step was performed.

    When you click a page in the results tree, QuickTest displays the corresponding page in the application view. When you click a step (an operation performed on an object) in the results tree, the corresponding object is highlighted in the application view. In this case, the Departing From text box is highlighted.

    Explain the check points in QTP?
    A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP.

    • A page checkpoint checks the characteristics of a Application
    • A text checkpoint checks that a text string is displayed in the appropriate place on a Application.
    • An object checkpoint (Standard) checks the values of an object on a Application.
    • An image checkpoint checks the values of an image on a Application.
    • A table checkpoint checks information within a table on a Application
    • An Accessiblity checkpoint checks the web page for Section 508 compliance.
    • An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.
    • A database checkpoint checks the contents of databases accessed by your web site

    In how many ways we can add check points to an application using QTP.
    We can add checkpoints while recording the application or we can add after recording is completed using Active screen (Note : To perform the second one The Active screen must be enabled while recording).
    Explain in brief about the QTP Automation Object Model.
    Essentially all configuration and run functionality provided via the QuickTest interface is in some way represented in the QuickTest automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in QuickTest have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the QuickTest automation object model, along with standard programming elements such as loops and conditional statements to design your program.

    Discuss QTP Environment.
    QuickTest Pro environment using the graphical interface and ActiveScreen technologies – A testing process for creating test scripts, relating manual test requirements to automated verification features – Data driving to use several sets of data using one test script.

    Explain the concept of how QTP identifies object.
    During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run,QT searches for the run time obkects that matches with the test object it learned while recording.
    Object Repositories types, Which & when to use?
    Deciding Which Object Repository Mode to Choose
    To choose the default object repository mode and the appropriate object repository mode for each test, you need to understand the differences between the two modes.
    In general, the object repository per-action mode is easiest to use when you are creating simple record and run tests, especially under the following conditions:

    You have only one, or very few, tests that correspond to a given application, interface, or set of objects.
    You do not expect to frequently modify test object properties.
    You generally create single-action tests.
    Conversely, the shared object repository mode is generally the preferred mode when:

    You have several tests that test elements of the same application, interface, or set of objects.
    You expect the object properties in your application to change from time to time and/or you regularly need to update or modify test object properties.
    You often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options.

    Can we Script any test case with out having Object repository? or Using Object Repository is a must?
    No. U can script with out Object repository by knowing the Window Handlers, spying and recognizing the objects logical names and properties available.

    How to execute a WinRunner Script in QTP?
    (a) TSLTest.RunTest TestPath, TestSet [, Parameters ] –> Used in QTP 6.0 used for backward compatibility Parameters : The test set within Quality Center, in which test runs are stored. Note that this argument is relevant only when working with a test in a Quality Center project. When the test is not saved in Quality Center, this parameter is ignored.
    e.g : TSLTest.RunTest “D:\test1″, “”
    (b)TSLTest.RunTestEx TestPath, RunMinimized, CloseApp [, Parameters ] TSLTest.RunTestEx “C:\WinRunner\Tests\basic_flight”, TRUE, FALSE, “MyValue” CloseApp : Indicates whether to close the WinRunner application when the WinRunner test run ends. Parameters : Up to 15 WinRunner function argument
    Why divide a test into three action calls?
    When you create a new test, it contains a call to one action. By dividing your tests into calls to multiple actions, you can design more modular and efficient tests.

    How To clear the AutoComplete?
    1 In your Internet Explorer’s menu bar, choose Tools > Internet Options > Content tab.
    2 Click AutoComplete in the Personal information area. The AutoComplete Settings dialog box opens.
    3 In the Use AutoComplete for area, clear the User names and passwords on forms option.
    4 Click OK to save your changes and close the AutoComplete Settings dialog box, then click OK again to close the Internet Options dialog box.

    What is Object Spy in QTP?
    Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
    What is the Diff between Image check-point and Bit map Check point?
    Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. QuickTest captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order to save disk Space For example, suppose you have a Web site that can display a map of a city the user specifies. The map has control keys for zooming. You can record the new map that is displayed after one click on the control key that zooms in the map. Using the bitmap checkpoint, you can check that the map zooms in correctly.
    You can create bitmap checkpoints for all supported testing environments (as long as the appropriate add-ins are loaded).
    Note: The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and color settings.

    How many ways we can parameterize data in QTP ?
    There are four types of parameters:
    Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.
    Data Table parameters enable you to create a data-driven test (or action) that runs several times using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data Table.
    Environment variable parameters enable you to use variable values from other sources during the run session. These may be values you supply, or values that QuickTest generates for you based on conditions and options you choose.
    Random number parameters enable you to insert random numbers as values in your test or component. For example, to check how your application handles small and large ticket orders, you can have QuickTest generate a random number and insert it in a number of tickets edit field.

    How do u do batch testing in WR & is it possible to do in QTP, if so explain?
    Batch Testing in WR is nothing but running the whole test set by selecting “Run Testset” from the “Execution Grid”.The same is possible with QTP also. If our test cases are automated then by selecting “Run Testset” all the test scripts can be executed. In this process the Scripts get executed one by one by keeping all the remaining scripts in “Waiting” mode.

    How to use the Object spy in QTP 8.0 version?
    There are two ways to Spy the objects in QTP
    1) Thru file toolbar
    —In the File ToolBar click on the last toolbar button (an icon showing a person with hat). 2) Tru Object repository Dialog
    —In Objectrepository dialog click on the button”object spy…”

    In the Object spy Dialog click on the button showing hand symbol. the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button.

    What is the file extension of the code file & object repository file in QTP?
    File extension of
    – Per test object rep :- filename.mtr
    – Shared Oject rep :- filename.tsr
    Code file extension id script.mts

    How to Creating an Output Value using QTP?
    1 Start QuickTest and open the Parameter test.
    2 Save the test as Output.
    3 Confirm that the Active Screen option is enabled.
    4 Select the text you want to use as an output value.
    5 Set the output value settings.
    6 Modify the table checkpoint.
    7 Save the test.
    What does it mean when a check point is in red color? what do u do?
    A red color indicates failure. Here we analyze the the cause for failure whether it is a Script Issue or Envronment Issue or a Application issue.

    What do you call the window testdirector-testlab?
    “Execution Grid”. It is place from where we Run all Manual / Automated Scripts

    How do u create new test sets in TD
    Login to TD.
    Click on “Test Lab” tab.
    Select the Desired folder under which we need to Create the Test Set. ( Test Sets can be grouped as per module.) Click on “New Test Set or Ctrl+N” Icon to create a Test Set.

    Explain the concept of object repository & how QTP recognises objects?
    Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected). we can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

    What are the properties you would use for identifying a browser & page when using descriptive programming ?
    “name” would be another property apart from “title” that we can use. OR We can also use the property “micClass”. ex: Browser(”micClass:=browser”).page(”micClass:=page”)….

    I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?
    U can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window. Try it out. All the Best.

    If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?
    If an application name is changes frequently i.e while recording it has name ?Window1? and then while running its ?Windows2? in this case how does QTP handles? QTP handles those situations using ?Regular Expressions?. …

    How does QTP identifies the object in the application?
    How does QTP identifies the object in the application? QTP identifies the object in the application by LogicalName and Class. For example: The Edit box is identified by Logical Name : PSOPTIONS_BSE_TIME20 Class: WebEdit …

    IF we use batch testing.the result shown for last action only.in that how can i get result for every action.
    You can click on the icon in the tree view to view the result of every action
    WinRunner Compared to QuickTest Pro

    Environment Coverage Comparison:

    Common environments shared by both WinRunner and QuickTest Pro:

    Web-Related Environments IE, Netscape, AOL
    JDK, Java Foundation Classes, AWT
    Symantec Visual Café
    ActiveX Controls
    ERP/CRM Oracle: Jinitiator, 11i, NCA
    Custom Client Server Windows
    C++/C
    Visual Basic
    Operating Systems Windows 98, 2000, NT, ME, XP
    Legacy 3270, 5250 Emulators
    VT100

    WinRunner Only Environments:
    Custom Client/Server PowerBuilder
    Forte
    Delphi
    Centura
    Stingray
    SmallTalk
    ERP/CRM Baan
    PeopleSoft Windows
    Siebel 5, 6 GUI Clients
    Oracle GUI Forms
    QuickTest Pro Only Environments:
    ERP/CRM SAP
    Siebel 7.x
    PeopleSoft 8.x
    .Net WinForms
    WebForms
    .Net controls
    Web Services XML, HTTP
    WSDL, SOAP
    J2EE, .Net
    Multimedia RealAudio/Video
    Flash
    Feature Comparison:

    Common features found in both WinRunner and QuickTest Pro:
    Record/Replay ODBC & Excel Connectivity
    Code Editor & Debugger Recovery Manager
    Shared Object Repository Rapid Object Import
    Numerous Checkpoints Analog
    Script & Function Libraries

    WinRunner Only Environments:
    Function Generator Database Integration
    Run Wizard TSL
    MDI

    QuickTest Pro Only Environments:
    ActiveScreen TestGuard
    Tree View ScriptFusion
    Data Table VBScript
    Function Generator*
    (coming in v7.0) Run Wizard*
    (coming in v7.0)

    How to Import data from a “.xls” file to Data table during Runtime.
    Datatable.Import “…XLS file name…”
    DataTable.ImportSheet(FileName, SheetSource, SheetDest)
    DataTable.ImportSheet “C:\name.xls” ,1 ,”name”

    How to export data present in Datatable to an “.xls” file?
    DataTable.Export “….xls file name…”

    Syntact for how to call one script from another? and Syntax to call one “Action” in another?
    RunAction ActionName, [IterationMode , IterationRange , Parameters]
    Here the actions becomes reusable on making this call to any Action.
    IterationRange String Not always required. Indicates the rows for which action iterations will be performed. Valid only when the IterationMode is rngIterations. Enter the row range (i.e. “1-7″), or enter rngAll to run iterations on all rows.
    If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction’s RetVal argument.

    How to export QTP results to an “.xls” file?
    By default it creates an “XML” file and displays the results

    How the exception handling can be done using QTP
    It can be done Using the Recovery Scenario Manager which provides a wizard that gudies you through the process of defining a recovery scenario. FYI.. The wizard could be accesed in QTP> Tools-> Recovery Scenario Manager …….

    How many types of Actions are there in QTP?
    There are three kinds of actions:
    non-reusable action—an action that can be called only in the test with which it is stored, and can be called only once. reusable action—an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
    external action—a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

    Analyzing the Checpoint results
    Standard Checpoint :By adding standard checkpoints to your tests or components, you can compare the expected values of object properties to the object’s current values during a run session. If the results do not match, the checkpoint fails.

    How to handle Run-time errors?
    On Error Resume Next : causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You can then build the error-handling routine inline within the procedure.
    Using “Err” object msgbox “Error no: ” & ” ” & Err.Number & ” ” & Err.description & ” ” & Err.Source & Err.HelpContext

    What are the different scripting languages you could use when working with QTP ?
    Visual Basic (VB),XML,JavaScript,Java,HTML

    How to handle dynamic objects in QTP?
    QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognise the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time. Check this out-
    If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object. While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails.

    The Smart Identification mechanism uses two types of properties:
    Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link’s tag was changed from to any other value, you could no longer call it the same object. Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

    Explain the keyword createobject with an example.
    Creates and returns a reference to an Automation object
    syntax: CreateObject(servername.typename [, location])
    Arguments
    servername:Required. The name of the application providing the object.
    typename : Required. The type or class of the object to create.
    location : Optional. The name of the network server where the object is to be created.

    What is a Run-Time Data Table? Where can I find and view this table?
    -In QTP, there is data table used , which is used at runtime.
    -In QTP, select the option View->Data tabke.
    -This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

    How to do the scripting. Is there any inbuilt functions in QTP as in QTP-S. Whatz the difference between them? how to handle script issues?
    Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

    What is the difference between check point and output value.
    An outPut value is a value captured during the test run and entered in the run-time but to a specified location. EX:-Location in Data Table[Global sheet / local sheet]
    Types of properties that Quick Test learns while recording?
    (a) Mandatory (b) Assistive . In addition to recording the mandatory and assistive properties specified in the Object Identification dialog box, QuickTest can also record a backup ordinal identifier for each test object. The ordinal identifier assigns the object a numerical value that indicates its order relative to other objects with an otherwise identical description (objects that have the same values for all properties specified in the mandatory and assistive property lists). This ordered value enables QuickTest to create a unique description when the mandatory and assistive properties are not sufficient to do so.

    Differences between QTP & Winrunner?
    (a) QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting.
    (b) QTP supports “.NET” application Automation not available in Winrunner
    (c) QTP has “Active Screen” support which captures the application, not available in WR.
    (d) QTP has “Data Table” to store script values , variables which WR does not have.
    (e) Using a “point and click” capability you can easily interface with objects, their definitions and create checkpoints after having recorded a script – without having to navigate back to that location in your application like you have to with WinRunner. This greatly speeds up script development.

    Few basic questions on commonly used Excel VBA functions.
    common functions are:
    Coloring the cell
    Auto fit cell
    setting navigation from link in one cell to other saving

    How does Parameterization and Data-Driving relate to each other in QTP?
    To datadrive we have to parameterize.i.e. we have to make the constant value as parameter, so that in each iteraration(cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestable, & it’s also of no use.

    What is the difference between Call to Action and Copy Action.?
    Call to Action : The changes made in Call to Action , will be reflected in the orginal action( from where the script is called).But where as in Copy Action , the changes made in the script ,will not effect the original script(Action)

    How to verify the Cursor focus of a certain field?
    Use “focus” property of “GetRoProperty” method”

    Any limitation to XML Checkpoints?
    Mercury has determined that 1.4MB is the maximum size of a XML file that QTP 6.5 can handle

    How to make arguments optional in a function?
    this is not possible as default VBS doesn’t support this. Instead you can pass a blank scring and have a default value if arguments r not required.

    How to add a text checkpoint to your test to check whether ‘welcome’ is displayed in your welcome page.
    1 Locate the page where you want to add a text checkpoint.

    2 Create a text checkpoint.
    In the Active Screen, under your page highlight the text welcome. Right-click the highlighted text and choose Insert Text Checkpoint. The Text Checkpoint Properties dialog box opens.
    When Checked Text appears in the list box, the Constant field displays the text string you highlighted. This is the text QuickTest looks for when running the test.
    Click OK to accept the default settings in this dialog box.
    QuickTest adds the text checkpoint to your test. It is displayed in the Keyword View as a checkpoint operation on your welcome page

    3 Save the test.

    How to Running and Analyzing a Test with Checkpoints?
    1 Expand the test and review your test.
    Choose View > Expand All or use the * shortcut key on your number keypad.

    2 Start running your test.
    Click Run or choose Test > Run. The Run dialog box opens. Ensure that New run results folder is selected. Accept the default results folder name. Click OK. When the test run is completed, the Test Results window opens.

    3 View the test results.
    When QuickTest finishes running the test, the Test Results window opens. The test result should be Passed, indicating that all checkpoints passed. If one or more checkpoints had failed, the test result would be Failed.

    4 View the results of the page checkpoint.
    In the Details pane, you can review the details of the page checkpoint, which lists the items checked.

    5 View the results of the table checkpoint.
    In the Details pane, you can review the details of the table checkpoint. You can also review the values of the table cells (cell values that were checked are displayed in black; cell values that were not checked are displayed in gray).

    6 View the results of the standard checkpoint.
    In the Details pane, you can review the details of the standard checkpoint, which lists the properties that were checked and their values. The checkpoint passed because the actual values of the checked properties match the expected values.

    7 View the results of the text checkpoint.
    In the Details pane, you can review the details of the text checkpoint. The checkpoint passed because the actual text matches the expected text.

    8 Close the Test Results window. Choose File > Exit.

    How to Defining a Data Table Parameter for QTP?
    1 Start QuickTest and open the Checkpoint test.
    2 Save the test as Parameter.
    3 Confirm that the Active Screen option is enabled.
    4 Confirm that the Data Table option is enabled.
    5 Select the text to parameterize.
    6 Set the parameterization properties.
    How to add a runtime parameter to a datasheet?
    DataTable.LocalSheet
    The following example uses the LocalSheet property to return the local sheet of the run-time Data Table in order to add a parameter (column) to it.
    MyParam=DataTable.LocalSheet.AddParameter(”Time”, “5:45″)
    How to change the run-time value of a property for an object?
    SetTOProperty changes the property values used to identify an object during the test run. Only properties that are included in the test object description can be set

    How to retrieve the property of an object?
    using “GetRoProperty”.

    How to open any application during Scripting?
    SystemUtil , object used to open and close applications and processes during a run session.
    (a) A SystemUtil.Run statement is automatically added to your test when you run an application from the Start menu or the Run dialog box while recording a test
    E.g : SystemUtil.Run “Notepad.exe” SystemUtil.CloseDescendentProcesses ( Closes all the processes opened by QTP )

    How to covert a String to an integer?
    CInt()—> a conversion function available.

    Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
    Inserting a call to action will only Import the columns of the Action called

    Differentiate the two Object Repository Types of QTP.
    Object repository is used to store all the objects in the application being tested.2 types of oject repositoy per action and shared. In shared repository only one centralised repository for all the tests. where as in per action.for each test a separate per action repostory is created.

    What the differences are and best practical application of each.
    Per Action: For Each Action, one Object Repository is created. Shared : One Object Repository is used by entire application

    Explain what the difference between Shared Repository and Per_Action Repository
    Shared Repository: Entire application uses one Object Repository , that similar to Global GUI Map file in WinRunner Per Action: For each Action ,one Object Repository is created, like GUI map file per test in WinRunner

    Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.
    I Used the functions for Capturing the dynamic data during runtime. Function used for Capturing Desktop, browser and pages.

    What projects have you used WinRunner on? Tell me about some of the challenges that arose and how you handled them.
    pbs :WR fails to identify the object in gui. If there is a non std window obk wr cannot recognize it ,we use GUI SPY for that to handle such situation.
    Can you do more than just capture and playback?
    I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
    -It was done by the windows scripting using the DOM(Document Object Model) of the windows.
    Summary: QuickTest Pro
    Summary:
    QuickTest Professional provides an interactive, visual environment for test development.
    Here is the description from the Mercury Interactive “How it Works” section of the QuickTest Pro web page:
    Mercury QuickTest Professional™ allows even novice testers to be productive in minutes. You can create a test script by simply pressing a Record button and using an application to perform a typical business process. Each step in the business process is automated documented with a plain-English sentence and screen shot. Users can easily modify, remove, or rearrange test steps in the Keyword View.

    QuickTest Professional can automatically introduce checkpoints to verify application properties and functionality, for example to validate output or check link validity. For each step in the Keyword View, there is an ActiveScreen showing exactly how the application under test looked at that step. You can also add several types of checkpoints for any object to verify that components behave as expected, simply by clicking on that object in the ActiveScreen.

    You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files.

    Advanced testers can view and edit their test scripts in the Expert View, which reveals the underlying industry-standard VBScript that QuickTest Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View.

    Once a tester has run a script, a TestFusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test script specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining TestFusion reports with Mercury Quality Management, you can share reports across an entire QA and development team.

    QuickTest Professional also facilitates the update process. As an application under test changes, such as when a “Login” button is renamed “Sign In,” you can make one update to the Shared Object Repository, and the update will propagate to all scripts that reference this object. You can publish test scripts to Mercury Quality Management, enabling other QA team members to reuse your test scripts, eliminating duplicative work.

    QuickTest Professional supports functional testing of all popular environments, including Windows, Web, .Net, Visual Basic, ActiveX, Java, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and Web services.

    – QuickTest Pro “How it Works” webpage from Mercury:
    http://www.mercury.com/us/products/quality-center/functional-testing/quicktest-professional/works.html

    We like QuickTest Pro and now prefer implementing it over WinRunner. When you get into advance testing scenarios, QuickTest Pro has more options and they are easier to implement compared to WinRunner in our opinion.

    Do to the similarities in concept and features, an experienced WinRunner user can easily convert to QuickTest Pro and quickly become an efficient Test Automation Engineer!

    We recommend that existing customers begin all new development with QuickTest Pro and use the built-in feature of calling WinRunner scripts from QuickTest Pro for all existing WinRunner scripts that they already have. As older scripts require updates and time permits, we recommend replacing them with QuickTest Pro scripts. Eventually you will be able to convert your test script library with all QuickTest Pro scripts.
    Pros:
    * Will be getting the initial focus on development of all new features and supported technologies.
    * Ease of use.
    * Simple interface.
    * Presents the test case as a business workflow to the tester (simpler to understand).
    * Numerous features.
    * Uses a real programming language (Microsoft’s VBScript) with numerous resources available.
    * QuickTest Pro is significantly easier for a non-technical person to adapt to and create working test cases, compared to WinRunner.
    * Data table integration better and easier to use than WinRunner.
    * Test Run Iterations/Data driving a test is easier and better implement with QuickTest.
    * Parameterization easier than WinRunner.
    * Can enhance existing QuickTest scripts without the “Application Under Test” being available; by using the ActiveScreen.
    * Can create and implement the Microsoft Object Model (Outlook objects, ADO objects, FileSystem objects, supports DOM, WSH, etc.).
    * Better object identification mechanism.
    * Numerous existing functions available for implementation – both from within QuickTest Pro and VBScript.
    * QTP supports .NET development environment (currently WinRunner 7.5 does not).
    * XML support (currently WinRunner 7.5 does not).
    * The Test Report is more robust in QuickTest compared to WinRunner.
    * Integrates with TestDirector and WinRunner (can kick off WinRunner scripts from QuickTest).
    Cons:
    * Currently there are fewer resources (consultants and expertise) available due to QTP being a newer product on the market and because there is a greater Demand than Supply, thus fewer employee/consulting resources.
    * Must know VBScript in order to program at all.
    * Must be able to program in VBScript in order to implement the real advance testing tasks and to handle very dynamic situations.
    * Need training to implement properly.
    * The Object Repository (OR) and “testing environment” (paths, folders, function libraries, OR) can be difficult to understand and implement initially.

    Explain the terms “TEST” and “ Business Component”
    Test—A collection of steps organized into one or more actions, which are used to verify that your application performs as expected. By default each test begins with a single action. Business Component—A collection of steps representing a single task in your application. Business components (also known as components) are combined into specific scenarios to build business process tests in Mercury Quality Center with Business Process Testing. A component does not contain actions, you add steps directly to a componenet.

    What is check point?
    A checkpoint checks specific values or characteristics of a page, object, or text string and enables you to identify whether or not your Web site or application is functioning correctly. A checkpoint compares the value of an element captured in your test when you recorded your test, with the value of the same element captured during the test run.

    What do you mean by iteration ?
    Each run session that uses a different set of parameterized data is called an iteration.

  74. very good answers.

    HOW TO REPLACE CHECKPOINTS IN QTP9.0?
    HOW TO CALL MULTIPLE SCRIPTS IN QTP.9.0?
    HOW MANY POSSIBILITY TO TESTS LOGIN?
    ADD NEW BUTTON IN QTP?
    EXPLAIN ABOUT PROVOKE TESTING?
    PLE HELP ME

  75. How can we use QTP to automate SmallTalk application(Actually SmallTalk comes under ‘WinRunner Only Environments’)…

    Kindly specify the reasons as to why it cant b done.

  76. hello mayank im sridhar im trying on testing since 6months im attending interviews ok but some technical interviews im unable because im nontech background student so i hance request u to send updated faqs to my mail

  77. sir,
    This is MR.B.Hemanth kumar having 3+ years of experience in software testing now i want to move in automation please send me 1+ interview questions.
    Thanking you

  78. Hi,
    i am trying to record the Sum menu item.
    while recording script is not capturing.I tried also Low Level recording and Analog recording.

    Please let me know how i have to capture the sub menu items.

  79. Hi!!!

    I would like to know with out recording window application is it possible to write script and if we write the script whether this will automaticaly stored in object repositary.could you plz send me some sample example of scripts in QTP. Thanks in advance

  80. How can we use QTP to automate SmallTalk application(Actually SmallTalk comes under ‘WinRunner Only Environments’)…

    Kindly specify the reasons as to why it cant b done.

  81. hai, i want to know, how qtp identifies the variable objects(all are said through smart identification, but i cant get), please explain with the navigations in qtp, for this descriptive programming is there, please send me the answer

  82. Hi,
    I have an application that have “Apply” button.
    When I edit something manually the butten changed from “disable” to “enable”.
    But when I run it by the QTP the button stay “disable”.
    How can I force the “apply” button to become “enable”
    Thanks
    Ofer

  83. Hi,

    using check point u can verify the propertie of that object,
    object is changing dynamically,
    if u want to know u can use “getroproperty”

  84. Hi Nazz,

    yes, without using object repository u can write the script,see below code.
    we have two edit boxes here, using descriptive programming i can write.

    set user_Name=create.descripting
    user_Name(“html”)=INPUT
    user_Name(“height”)=56
    user_Name(“text”)=USERNAME
    user_Name(“index”)=0
    browser(“XYZ”).page(“XYZ”).webedit(“user_Name”).set”ramana”

  85. These are silly questions to ask. If you know the answers to these silly questions, it only indicates that you don’t know what is the importance of the tool and its contribution to automation.

  86. Hai friends,
    I am new for this website. I am preparing interviews can u send me some more qtp and manual testing testing interview questions. This is urgent for me.

    THANK U.

  87. hii …
    can i know this field is completly for developer. i am a fresher, joined comp before month…i want to go in developer side , not with testing team….can i opt this filed?

  88. Hai Mayank,
    This is priya from atlanta. I likes you’r questions and answers. I want to tell u one thing. I liked to work but i am not that much confidens. That’s why i did’t try jobs.After seeing you’r web site i am so confidens. “THANK U VERY MUCH”.

  89. Answers please……….!

    1) Why qtp called keyword driven testing?
    2) Different types of frame works?
    3) Disadvantages of qtp?
    4) Why we go for descriptive programming?

  90. I am new into QTP area iknow the feature of recording & playback but now i should even enhacnce the script language.. need your help how to do the same. ex. if there is record to enter details i will do recording and if I execute only that data will be entered but the same script should be used everytime if anybody use that generated script. I tried but not getting idea how to do it.. need simple way of example for small application or one ofthe feature in the application.

  91. hi
    can you run script on u r test pane
    Like wise i have written
    That too i have already stored the sample1 and sample 2 files in the files folder
    then i have created object repository for the
    two files and simultaniously i have made run.
    Run is successfull.
    But later i have deleted intesionally sample1 then i have written loop like in the below but
    iam getting errors as expected ‘End If’
    whats is the reason kindly post u r answer…

    systemutil.Run(“c:\testing\files\sample1.text”)
    If Window(“sample1”).exists Then
    window(“sample1”).Activate
    Window(“sample1”).close
    Else
    systemutil.Run(“c:\testing\files\sample2.text”)
    If Window(“sample2”).exists Then
    window(“sample2”).Activate
    Window(“sample2”).close
    End If

  92. During the execution certainly we are facing win object problem and script is failing as QTP suddenly stops recognizing as Siebel object but recognize as window object.
    please how to solve this problem. any body till the solution

  93. 2-tier architecture

    In two-tier client/server architectures, the client interface is usually located in the user’s desktop environment and the database management services are in a more powerful server that services many clients. The user system interface environment and the database management server environment split the processing management duties. The database management server contains stored procedures and triggers.

  94. 3-tier architecture

    The prototypical three-tier architecture has a middle layer comprising a Transaction Processing (TP) monitor. The TP monitor employs a type of message queuing, transaction scheduling, and prioritization service where the client connects to the TP monitor—middle tier—instead of the database server. The transaction is accepted by the monitor, which queues it, and then takes responsibility for completion, thereby freeing up the client

  95. can any one please answer to my question in automated testing.when automation frame work is developed for the application ,does separate script is developed for each feature in the module in real time.how many manual test cases we can run on that script.how we follow in real time.thanks a lot

  96. can any one please answer to my question in automated testing.when automation frame work is developed for the application ,does separate script is developed for each feature in the module in real time.how many manual test cases we can run on that script.how we follow in real time.thanks a lot.

  97. thanks for you answer alex.can any one tell me in real time in an application when generally they starting using the automation tool.like when ever we get a bulid can we use automation.at what point of testing we start using the tool thanks.(urgent)

  98. veda answer is like whenever we get build from dev first we will do manual testing and then build is stable and after we do the automaton

  99. hi nagaraju,stable means do we need to execute test cases atleast ones.
    i have an interview tomorrow can any one answer to some questions.thanks all it will really be very helpful if some one answer to this questions.

    1.when ever we get a buld do we need to do smoke test is it compulsary,and how much do they spend for test.

    2.generally all the testcases are stored in which place in real time.is there tool used to store that testcases and test plan,suppose we are using test director can we store all our test cases in it, and where does entire application test cases and testplan is stored assuming that company is using test director.

    3.and when we file a bug,and it gets fixed after that do we need to do regressing testing only on that test case or any other test cases also.how the process will be there in real time.

    4.when ever a new feature is added to the application do all the test cases to be reexicuted.

    5. can we use toad, winsql in oracle database to access sql quries.

  100. i am facing a problem during run time, the scenario is like this:
    1. I have a Menu with name “Automatic” and the submenu with the name “Automatic”. Did recording and then run the script.

    While running the script it throws the error saying that ” Cannot find the “Automatic” object’s parent “IST Compliance” (class Browser). Verify that parent properties match an object currently displayed in your application.

    Please suggest me how to solve this problem.

  101. Hi

    I want to know that while executing the QTP scripts there should be only one browser open else the test scripts fail. what is the reason for that?
    can’t we code our script in such a fashion that the script can identify one of the open browsers and start executing the test cases???

    one more question is that the browser should be in maximised state.
    what is the reason for this?

  102. Hi – Amshu

    You cannot record or playback scripts on applications accessed through citrix. In order to automate: the automation tool and the application under test should be installed on the same machine.

    One possible way to automate is to install QTP on Citrix application server where you have other applications.

  103. Hi,

    I like 2 see how the vb script for QTP 8.2 looks for the java & .net add-in’s. Can anyone send me the scripting for the windows & web bases applications.

    Thanks in Advance,

    Nanda

  104. Hi Rajanikanth,

    Try this piece of code to count all the links in a page

    Dim oAnchors
    Dim oAnchor
    Dim blnFound
    i=0
    Set oAnchors =Browser(“t”).Page(“”).Object.GetElementsByTagName(“*”) ‘This will grab all of the links in the page.
    For Each oAnchor in oAnchors

    i=i+1

    next
    msgbox i

  105. Hi,
    Please let me know how we can use QTP for testing in SAP while upgrading from Sap 4.6c to ECC 6.0? Should there be a seperate QTP tester or can a functional guy do the testing?what role actually a functional guy plays while testing?

  106. helloooooo..good information on testing….can anyone say how to select multiple objects in weblist as i have many values in list…my coding is
    Browser(“name”).Page(“name”).Weblist(“html id:=name”).Select”EMP501″
    my necessity is how to select all the employees likewise EMP502,EMP503….????only one value is selected …so i need help

  107. Hi all,
    i need to know the limitations of QTP to identify dynamic objects. Suppose i want to automate IBNLIVE site{any news site where contents of the pages are changing cont.} what kind of testing we can do using QTP for such sites where page formats page contents are changing hence & then. You can reply me on sameer.cdac@gmail.com

  108. Can Oracle Addin be disabled in QTP 9.2? If so, in that case when automating Oracle Applications will the objects be identified as Java objects?

  109. Certain imp. Qs asked in Interview on Testing:

    1. What is Bug Reporting Life Cycle.
    2. What is Traceability Matrix.
    3. What is QTP.
    4. Difference between Re-testing & Regression Testing.
    5. Testing Life Cycle / Testing Process.
    6. What is the biggest risk U have come across in Testing.
    7. Tell us about your current project.
    8. What knowledge do U have in QTP.
    9. What database have U used in the project. Any knowledge on that.
    10. How do U manage if U see that U are exceeding the budget allocated for testing.

    Amit

  110. Certain Imp. Qs asked on Manual Testing:

    A Few Interview Questions on Manual Testing:

    1. What is Testing.
    2. What is Test Scenario.
    3. What is Test Bed.
    4. What are Test case techniques or methodologies.
    5. Difference between smoke testing & Sanity testing.
    6. Difference between Re-test & Regression testing.
    7. Difference between an error, defect & a bug.
    Ans. Error: error is found in the source code by the developers.(eg. Syntax error)
    Defect: When the expected result does not meet the actual result, it is a defect.
    Bug: Once a developer accepts a defect, it becomes a bug.
    8. Difference between Verification & Validation.
    9. Difference between Quality Assurance & Quality control.
    10. According to SDLC, when does the testing start.
    11. According to SDLC, when is the test engineer involved (at which stage).
    12. Explain Bug reporting Life Cycle.
    13. What is the process to do defect reporting.
    14. Which is the most critical bug you found so far.
    15. What is the format for preparing Test cases.
    16. Explain Testing process (approach) in your organization—–Software Testing Life Cycle.
    17. Tell us about your current project.
    18. Which SDLC Model are you following for your current project—V Model, Waterfall model.
    19. Explain the concept of Object repository.
    Ans. Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
    we can view or modify the test object description of any test object in the repository or to add new objects to the repository.

    Amit

  111. Hello friends

    Could someone who has hands on experience on qtp, tell me some practical question and answers asked in interview ?

    Like tell me about two most challenging scenario you faced while working on qtp ?

    How to start testing on qtp , after what percentage of manual testing do we go for automation ? Tell me about automation framework and how you implemented it in your project ?

    It will be really helpful if somebody having reak experience in qtp can give me answers for this questions.

    Thanks in advance.

    Looking forward to hear from all experienced people.

    Regards

    Arpita

  112. Hi the Questions and answers are really good and helpful.
    Could you please provide me with more information on Transactions and Dictionary concepts in QTP

  113. what is funation in qtp?i know the user defind & bulit funations..can u tell me what is funations ? & how to create funations in QTP?
    plz dont tell me Private & public funations

  114. how can you access the one row of the data in database?for eg emp table having 10 row and i have to access 5 th row of the data how?tell me the script having QTP?

  115. Hi,
    Can any one tell me what are the reusable actions in QTP and the uses of them and how to call reusable actions.

    Thanks.

  116. iam putting some unix commands it may use ful to you

    ls— lists your files
    ls -l — lists your files in ‘long format’, which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified.
    ls -a — lists all files, including the ones whose filenames begin in a dot, which you do not always want to see.
    There are many more options, for example to list files by size, by date, recursively etc.
    · more filename — shows the first part of a file, just as much as will fit on one screen. Just hit the space bar to see more or q to quit. You can use /pattern to search for a pattern.
    · emacs filename — is an editor that lets you create and edit a file. See the emacs page.
    · mv filename1 filename2 — moves a file (i.e. gives it a different name, or moves it into a different directory (see below)
    · cp filename1 filename2 — copies a file
    · rm filename — removes a file. It is wise to use the option rm -i, which will ask you for confirmation before actually deleting anything. You can make this your default by making an alias in your .cshrc file.
    · diff filename1 filename2 — compares files, and shows where they differ
    · wc filename — tells you how many lines, words, and characters there are in a file
    · chmod options filename — lets you change the read, write, and execute permissions on your files. The default is that only you can look at them and change them, but you may sometimes want to change these permissions. For example, chmod o+r filename will make the file readable for everyone, and chmod o-r filename will make it unreadable for others again. Note that for someone to be able to actually look at the file the directories it is in need to be at least executable. See help protection for more details.
    · File Compression
    o gzip filename — compresses files, so that they take up much less space. Usually text files compress to about half their original size, but it depends very much on the size of the file and the nature of the contents. There are other tools for this purpose, too (e.g. compress), but gzip usually gives the highest compression rate. Gzip produces files with the ending ‘.gz’ appended to the original filename.
    o gunzip filename — uncompresses files compressed by gzip.
    o gzcat filename — lets you look at a gzipped file without actually having to gunzip it (same as gunzip -c). You can even print it directly, using gzcat filename | lpr
    · printing
    o lpr filename — print. Use the -P option to specify the printer name if you want to use a printer other than your default printer. For example, if you want to print double-sided, use ‘lpr -Pvalkyr-d’, or if you’re at CSLI, you may want to use ‘lpr -Pcord115-d’. See ‘help printers’ for more information about printers and their locations.
    o lpq — check out the printer queue, e.g. to get the number needed for removal, or to see how many other files will be printed before yours will come out
    o lprm jobnumber — remove something from the printer queue. You can find the job number by using lpq. Theoretically you also have to specify a printer name, but this isn’t necessary as long as you use your default printer in the department.
    o genscript — converts plain text files into postscript for printing, and gives you some options for formatting. Consider making an alias like alias ecop ‘genscript -2 -r \!* | lpr -h -Pvalkyr’ to print two pages on one piece of paper.
    o dvips filename — print .dvi files (i.e. files produced by LaTeX). You can use dviselect to print only selected pages. See the LaTeX page for more information about how to save paper when printing drafts.
    Directories
    Directories, like folders on a Macintosh, are used to group files together in a hierarchical structure.
    · mkdir dirname — make a new directory
    · cd dirname — change directory. You basically ‘go’ to another directory, and you will see the files in that directory when you do ‘ls’. You always start out in your ‘home directory’, and you can get back there by typing ‘cd’ without arguments. ‘cd ..’ will get you one level up from your current position. You don’t have to walk along step by step – you can make big leaps or avoid walking around by specifying pathnames.
    · pwd — tells you where you currently are.
    Finding things
    · ff — find files anywhere on the system. This can be extremely useful if you’ve forgotten in which directory you put a file, but do remember the name. In fact, if you use ff -p you don’t even need the full name, just the beginning. This can also be useful for finding other things on the system, e.g. documentation.
    · grep string filename(s) — looks for the string in the files. This can be useful a lot of purposes, e.g. finding the right file among many, figuring out which is the right version of something, and even doing serious corpus work. grep comes in several varieties (grep, egrep, and fgrep) and has a lot of very flexible options. Check out the man pages if this sounds good to you.
    About other people
    · w — tells you who’s logged in, and what they’re doing. Especially useful: the ‘idle’ part. This allows you to see whether they’re actually sitting there typing away at their keyboards right at the moment.
    · who — tells you who’s logged on, and where they’re coming from. Useful if you’re looking for someone who’s actually physically in the same building as you, or in some other particular location.
    · finger username — gives you lots of information about that user, e.g. when they last read their mail and whether they’re logged in. Often people put other practical information, such as phone numbers and addresses, in a file called .plan. This information is also displayed by ‘finger’.
    · last -1 username — tells you when the user last logged on and off and from where. Without any options, last will give you a list of everyone’s logins.
    · talk username — lets you have a (typed) conversation with another user
    · write username — lets you exchange one-line messages with another user
    · elm — lets you send e-mail messages to people around the world (and, of course, read them). It’s not the only mailer you can use, but the one we recommend. See the elm page, and find out about the departmental mailing lists (which you can also find in /user/linguistics/helpfile).
    About your (electronic) self
    · whoami — returns your username. Sounds useless, but isn’t. You may need to find out who it is who forgot to log out somewhere, and make sure *you* have logged out.
    · finger & .plan files
    of course you can finger yourself, too. That can be useful e.g. as a quick check whether you got new mail. Try to create a useful .plan file soon. Look at other people’s .plan files for ideas. The file needs to be readable for everyone in order to be visible through ‘finger’. Do ‘chmod a+r .plan’ if necessary. You should realize that this information is accessible from anywhere in the world, not just to other people on turing.
    · passwd — lets you change your password, which you should do regularly (at least once a year). See the LRB guide and/or look at help password.
    · ps -u yourusername — lists your processes. Contains lots of information about them, including the process ID, which you need if you have to kill a process. Normally, when you have been kicked out of a dialin session or have otherwise managed to get yourself disconnected abruptly, this list will contain the processes you need to kill. Those may include the shell (tcsh or whatever you’re using), and anything you were running, for example emacs or elm. Be careful not to kill your current shell – the one with the number closer to the one of the ps command you’re currently running. But if it happens, don’t panic. Just try again 🙂 If you’re using an X-display you may have to kill some X processes before you can start them again. These will show only when you use ps -efl, because they’re root processes.
    · kill PID — kills (ends) the processes with the ID you gave. This works only for your own processes, of course. Get the ID by using ps. If the process doesn’t ‘die’ properly, use the option -9. But attempt without that option first, because it doesn’t give the process a chance to finish possibly important business before dying. You may need to kill processes for example if your modem connection was interrupted and you didn’t get logged out properly, which sometimes happens.
    · quota -v — show what your disk quota is (i.e. how much space you have to store files), how much you’re actually using, and in case you’ve exceeded your quota (which you’ll be given an automatic warning about by the system) how much time you have left to sort them out (by deleting or gzipping some, or moving them to your own computer).
    · du filename — shows the disk usage of the files and directories in filename (without argument the current directory is used). du -s gives only a total.
    · last yourusername — lists your last logins. Can be a useful memory aid for when you were where, how long you’ve been working for, and keeping track of your phonebill if you’re making a non-local phonecall for dialling in.
    Connecting to the outside world
    · nn — allows you to read news. It will first let you read the news local to turing, and then the remote news. If you want to read only the local or remote news, you can use nnl or nnr, respectively. To learn more about nn type nn, then \tty{:man}, then \tty{=.*}, then \tty{Z}, then hit the space bar to step through the manual. Or look at the man page. Or check out the hypertext nn FAQ – probably the easiest and most fun way to go.
    · rlogin hostname — lets you connect to a remote host
    · telnet hostname — also lets you connect to a remote host. Use rlogin whenever possible.
    · ftp hostname — lets you download files from a remote host which is set up as an ftp-server. This is a common method for exchanging academic papers and drafts. If you need to make a paper of yours available in this way, you can (temporarily) put a copy in /user/ftp/pub/TMP. For more permanent solutions, ask Emma. The most important commands within ftp are get for getting files from the remote machine, and put for putting them there (mget and mput let you specify more than one file at once). Sounds straightforward, but be sure not to confuse the two, especially when your physical location doesn’t correspond to the direction of the ftp connection you’re making. ftp just overwrites files with the same filename. If you’re transferring anything other than ASCII text, use binary mode.
    · lynx — lets you browse the web from an ordinary terminal. Of course you can see only the text, not the pictures. You can type any URL as an argument to the G command. When you’re doing this from any Stanford host you can leave out the .stanford.edu part of the URL when connecting to Stanford URLs. Type H at any time to learn more about lynx, and Q to exit.
    Miscellaneous tools
    · webster word — looks up the word in an electronic version of Webster’s dictionary and returns the definition(s)
    · date — shows the current date and time.
    · cal — shows a calendar of the current month. Use e.g., ‘cal 10 1995’ to get that for October 95, or ‘cal 1995’ to get the whole year.

  117. realy realy good material…c i m phd biotech….now in USA…after looking at the software market here i decided to go for testing…there is nothing much in biotech here…anybody planning to come here..come prepared with testing….highly paid and high demand area here….

    thanks for the material you all provided…i appreciate the efforts put by u all..

    thanks
    kanu

  118. In web based application how to check the text area check point in QTP descriptive method.

    Eg: In Home page afer filling all the details n click on send button then in the expected output must be the corresponding page with some text must be compared like “mail has been sent!” i.e strcomp

    Please will u provide me how to check tat text area point.

    I will be waiting for ur response
    Please send the answer to this mail faheemece9ster@gmail.com

  119. Q1] When user wants to test a pait application using QTP which type of recording mode should he use ?
    (a) Normal recording
    (b) Analog recording
    (c) Contex sensitive recording
    (d) Low level recording

    Q2] The toolbar enables you to view the details of an individual action or the entire test flow is
    (a) Testing toolbar
    (b) None of the above
    (c) Action toolbar
    (d) Test plane

    Q3] ———– retrives the current value of an item and stores a specified location?
    (a) Database values
    (b) Random values
    (c) Outpute values
    (d) Input values

    Q4] The key that is used to start / end analog recording mode?
    (a) F3
    (b)SHIFT+ALT+F3
    (c)F10
    (d)CTRL+SHIFT+F3

    Q5] HOW MANY ACTIONS YOU CAN RECORED IN THE TEST SCRIPT
    (a) 1
    (b) 256
    (c) 255
    (d) Any number

  120. Q6]with object spy we can get which properties for any object?
    (a) Test object property
    (b) Run time object property
    (c) Both (a) & (b)
    (d) None of the above

    Q7] You can use regular expression when?
    (a) depending a properly value of an object in dialog box.
    (b) parameterizing a script
    (c) Creating checkpoints with varying value
    (d) All of the above

    Q8] The list of test objects and their properties and values are stored in the ?
    (a) object reposetory
    (b) object Identification
    (c) Smart Identification
    (d) Object spy

    Q9]What is the shortcut key that is used for a standard checkpoint?
    (a) F12
    (b) F2
    (c) F10
    (d) F7

    Q10]A stndard checkpoint is inserted from
    (a) Active screen
    (b) Test pane
    (c) Insert menu
    (d) All of the above

    Q11] You will use the ——— recording mode for an object not recognized by quick test ?
    a) Low-level recording mode
    b) Normal recording mode
    c) Analog recording mode
    d) None of the above

    Q12] If a script is parametrized for there values in action 1 sheet how many times that script will execute by default ?
    a) 1
    b) 2
    c) 3
    d)0

    Q13] A checkpoint checks that a text string is displayed within a defined area in a windows application is
    a) Accessibility
    b) Text area
    c) Standard
    d) Text

    Q14] A script is recorded using analog recording mode , how the script will execute?
    a) with help of object reposetory
    b) with the help of track file
    c) both of the above
    d) none of the above

    Q15] The command used to insert the transactions in test is?
    a) Start Transaction (“Name”) ,End Transaction(“Name”)
    b) Services.Start Transaction “Name”, Services . End Transaction “Name”,
    c) Start Transactin . Services “Name”,End Transaction . Services
    d) All of the above

    Q16] In batch test process, the test list are saved in file format as,
    a) *. mtb
    b) *. mts
    c) *. mbt
    d) *. mtr

    Q17] Can we add external library files in QTP?
    a) Yes
    b) No

    Q18] The method that adds to the test while implementing synchronization is
    a) Synchronize
    b) Wait
    c) Wait property
    d) Pause

    Q19] Post – recovery test run options specifies ?
    a) How to continue the run session aftir QTP identify the event
    b) Errors while running
    c) Recovery senario during a run session
    d) trigger event

    I will be waiting for ur response
    Please send the answer to this mail aish2710@gmail.com

  121. this is rani…. i’ve done only manual testing course & having idea abt automated concepts like only winrunner. but i didnt get any offer. then i got to join in a webdsignning company for which i’ve been workinh since 1 year. & now i’m again planning to learn QTP & some other tools..
    Please suggest me what would be the best way to approach… & the right way to go for….
    As i’m always interested in testing side.

    I would be thankful if u suggest mee….

  122. Hi,
    I need QTP Script to capture/store the Expected Result and Actual Results of each Iteration of cases in the script into Quality Center’s Test Steps in Test Lab.
    For E.g.: Suppose we have a Test Script A , Stored in the Test Plan of QC. Now this Test Script has 3 iterations of data passed through an excel/Datasheet.
    Datasheet got columns called as Expected Result and Actual Results.

    Now when the script is kicked off from QC(In Test Lab), these three iteration becomes, 3 steps . We want the script to automatically store the data from Expected Result column to the expected Result of the QC’s Test Lab Steps expected Result. And data in the Actual Result column of the datasheet to the Actual Result of the QC’s Test Lab Steps
    Would appreciate if someone can guide me on this one…

  123. Hi Suneetha,
    Domain knowledge for insurance depends on which country you are looking for. Different countries have different norms, laws, etc. If you are looking for some books, I would advise, read LOMA series for US.
    Let me know if I can help in any other way.

  124. Dear Suneetha,
    Insurance works differently in differnt countries, each having diff norms, laws etc. If you want to improve ur knowledge on how insurance works in US, try to get ur hands on the LOMA series.

  125. Regression testing is performing a test sweep with certains conditions/scenarios in mind, each time something is fixed/added. The certain conditions scenarios mentioned are or may have been a cause of concern and u want to hit these points to make sure, things have not been broken because of the current fixes/changes.

    Retesting is performed once a fix is put in place for a particular defect/observation and u want to make sure the fix has been done correctly for the observation/defect.

    For eg, suppose that date of birth is not been populated correctly. This is a defect. Now once the fix is put in place, and then a tester performs a test to make sure that date of birth is correctly populated – this is an eg of “Retest”

    Now checking that the name, address, and others fields are populating correctly and have not been affected because of the fix for date of birth is an eg of regression testing.

  126. Hai Mayank ,
    pls craify my doubt ….in descriptive prog. how can we know the properties of in menu list (items)…like file:new order.. i want know the properties of for menu list (items)…i am unable to find them by using object spy ….without doing object repository how can we know them…pls clarify…my doubt….

    $atya

  127. Can any one guide me on … by using QTP

    · Writing automation test plans & strategies,
    · Converting & or writing test scripts
    · Acquiring test data
    · Test execution,
    · Result documentation & metrics gathering

    please respond back soon.

    Thanks

  128. can any body plz tel me correct ans for this question?

    Q):you have written only 150 test cases but your team lead will say that we can write 1000 test cases ? how can you judge your self ?

  129. Is there any logic or algotithm to migrate winrunner scripts to qtp scripts without using third party vendors loke Win-quick and QTP genie.

    If you ahve any logic or algorithms for thsi migration please mail to me at subbu251@gmail.com
    Thank you

    Regards
    Subbu

  130. I think keyword for analog recording mode is not that,which is given in this site.It is not Ctrl+Shift+F4, It is Shift+Alt+f3.

  131. This provides us with the QTP functionalities a beginner would concentrate on while learning.

    I am a newbee and I was able to know about QTP and its importance.

  132. HI EVERY BODEY THIS IS CHAKRAVARTHY,

    MY REQUST IS DONT REPEAT D QUESTIONS N ANSWERS.

    NEW PEOPLE WILL BE CONFUSE.

  133. how many different version are provided by QTP?
    CAN ONLY hp COMPANY providing qtp ?plz clear my doubs as soon as possible
    thxxxxxxx

  134. hi,
    this is venu.
    this site is very usful to bigeners and job sekars i mean who serching for exp jobs .this is veru very best meterial for qtp .

    1. we can easy connect from qtp to qc…
      go to files and see in files there is an option connection to Qc.. than click on that option we will get an dialog box of QC..than write on that the path of QC(example c:\programesfiles\) so than we can connect to Qc….than frm that we can report to qc..

  135. Hi Tina,

    QTP supports three types of frameworks i.e.
    1) Linear Framework
    2) Modular Framework
    3) Keyword driven Framework

    Linear FW is the individual scripts written in QTP and executing the scripts individually..

    Modualr FW is the collection of actions created as reusable in one test and calling these actions in the other test
    where we need..

    Keyword Driven FW is creating functional libraries and calling funtion name as keywords in the test using default.xls data table…

    1. QTP Also support Data Driven Framework, Library Framework, Hybrid Framework …etc..

      You can develop a new framework for QTP. It’s all about how much advanced knowledge you have on QTP and other technologies.

  136. Hi All, I am new for this website. In this website we all are getting good knowledge with our unknown friends (Thanks to Every One). I want to specify one thing here whether this website creator tested or not. I don’t know these Leave comment fields.

    Functionality problem:
    Scenario 1:
    a.Without enter any data in mandatory fields and click on submit button, then it display Error message like as “Error: please fill the required fields (name, email)”. But how user will enter their details into mandatory fields. So finally user click on Back option then user will enter required details so this in not flexible. As soon as possible please rectify this problem. (Ex: see the all site master data forms just suggestion).
    Scenario 2:
    a. Same as above point enter name and click on submit comment getting same problem.

    Note: Why I am saying here because this is very good site for Testing People.
    Thanks & Regards
    NTR.

  137. Thanks for your article by the way If you want to consider ERP system. Free Learning SAP R/3 in a step-by-step online and we provide SAP document and ABAP/4 training online everything we provide free for you. visit saptraineronline.com

  138. Hi
    i am using AMD athlon as CPU but i am facing problem while opening qtp 9.0 application , unable to open qtp. please suggest on this.

  139. questions asked from wipro………………
    1)wat are the variable used in qtp?
    2)wat is frame work?
    3)wat is BPT? hw will u do?
    4)how advanatges of descriptive pgmg over the OR?
    5)wat iz s extension for object repositry? only for or?

  140. I’m not sure where you’re getting your info, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for excellent info I was looking for this info for
    my mission.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s