Friday, March 28, 2008

Mercury QuickTest Professional 8.0 Shortcut Key Reference Card

Command Press

File Menu

New Test CTRL + N

Open Test CTRL + SHIFT + N

Business Component > New CTRL + SHIFT + O

Business Component > Open CTRL + SHIFT + E

Business Component > Edit

Template

CTRL + O

Save CTRL + S

Export to Zip File CTRL + ALT + S

Import from Zip File CTRL + ALT + O

Print CTRL + P

Edit Menu

Cut CTRL + X (EV only)

Copy CTRL + C

Paste CTRL + V

Delete DEL

Undo Ctrl + Z (EV only)

Redo CTRL + Y (EV only)

Rename Action F2

Find CTRL + F (EV only)

Replace CTRL + H (EV only)

Go To CTRL + G (EV only)

Bookmarks CTRL + B (EV only)

Complete Word CTRL + SPACE (EV only)

Argument Info CTRL + SHIFT + SPACE (EV only)

Apply “With” To Script CTRL + W (EV only)

Remove “With” Statements CTRL + SHIFT + W (EV only)

Insert Menu

Checkpoint > Standard

Checkpoint

F12

Output Value > Standard Output

Value

CTRL + F12

Step > Step Generator F7

New Step F8 (KV only)

New Step After Block SHIFT + F8 (KV only)

Key: KV = Keyword View

EV = Expert View

Test or

Component Menu

Record F3

Run F5

Stop F4

Analog Recording CTRL + SHIFT + F4

Low Level Recording CTRL + SHIFT + F3

Step

Menu

Object Properties CTRL + ENTER

Value Configuration Options CTRL + F11 on a value (KV only)

Debug Menu

Pause PAUSE

Step Into F11

Step Over F10

Step Out SHIFT + F11

Insert/Remove Breakpoint F9

Clear All Breakpoints CTRL + SHIFT + F9

Data Table Options

Edit > Cut CTRL + X

Edit > Copy CTRL + C

Edit > Paste CTRL + V

Edit > Clear > Contents CTRL + DEL

Edit > Insert CTRL + I

Edit > Delete CTRL + K

Edit > Fill Right CTRL + R

Edit > Fill Down CTRL + D

Edit > Find CTRL + F

Edit > Replace CTRL + H

Data > Recalc F9

Insert Multi-line Value CTRL + F2 while editing cell

Activate next/previous sheet CTRL + PAGEUP/

CTRL + PAGEDOWN

General Options

View Keyword View/Expert View CTRL + TAB

Open context menu for step or

Data Table cell

SHIFT + F10

or Application key ( )

Expand all branches * [on numeric keypad] (KV only)

Expand branch + [on numeric keypad] (KV only)

Collapse branch - [on numeric keypad] (KV only)

Object Repositories types, which & when to use?

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.

Differences between QTP & Winrunner?

  • QTP is object bases Scripting ( VBS) where Winrunner is TSL (C based) Scripting.
  • QTP supports ".NET" application Automation not available in Winrunner.
  • QTP has "Active Screen" support which captures the application, not available in WR.
  • QTP has "Data Table" to store script values , variables which WR does not have.
  • 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.

What are the types of Object Repository’s 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.

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 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.

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.

Basic questions for QTP

1.What are the Features & Benefits of Quick Test Professional (QTP)?
Operators stand-alone, or integrated into Mercury Business process Testing and Mercury Quality Center.Introduces next generation “Zero-configuration” Keybord Driven testing technologies in QTP 8.0 -allowing for fast test creation, easier.

2.Differences between QTP 6.5 and QTP 8.2 what are extra features in 8.2?
Multimedia Add-In Is not available In QTP 6.5. parameterization Is the extra Feature In QTP 8.2 compared to QTP 6.5.

3.How to handle the exceptions using recovery scenario manager In QTP?
There are 4 trigger events during which a recovery scenario should be activated. They are A pop up window appears in an opened application during the test run. A property of an object changes its state or value.

4.What is the use If Text output value in QTP?
Output values enable to view the values that the application takes during run time.When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values an object in runtime.

5.How to use Object Spy In QTP 8.0?
To view the Run time objects and Test Objects properties and Methods of an object.

6.What Is the extension of the object repository files In QTP?
Two types of Object repository, they are shared repository (extension.tsr) and Action repository (extension.mtr).

7.Explain the concept of object repository & how to QTP recognizes objects?
With QTP 8.2, the available QTP plus, setup. It provides Repositories Merge Utility. The Object Repository Merge Utility enables user to merge Object repository files Into a single Object repository file to recognizes a object using properties.

8.What are the properties you would use for identifying a browse & page when using descriptive programming?
For Browser we will have to use title, html id property to identify the browser and web page.

9.What the scripting language you use when you r working with QTP?
QTP supports VB scripting language.

10.Give me an example where you have used a Common Interface In your QTP?
Common Interface appears In the scenario of front end and backend foreign. If you are 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 Common interface will be one among those interfaces.

11.Few basic questions on commonly used Excel VBA Functions?
Common functions are: creatinf a sheets and assigning vales to sheets and coloring the cell Auto fit cell setting navigation form link In one cell to other saving.

12.Explain the keyboard create object with an example?
Create object: creates and returns a reference to an dynamic object.
Ex: Ser Excel Sheet = Create object (”Excel.Sheet”).

13. Explain In brief about the QTP AUTOMATION Object model?
To pre configure test setting before executing the QTP test.

14. How to handle dynamic object In QTP?
User GETRO property will handle the run time objects.

15.Where can I find the runtime date table?
In the result window shows a runtime data table. It includes the table shaped icon that display the run time data table - a table that shows the values used to run a test containing data table parameters or the data table output vales retrieved from a test while application execution time.

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…)

you have a Curriculum: please Add !

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

i have some quatins in QTP if any persone knows answers please help me thaks

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?

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?

Interview Questions of QTP

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

QTP

1. How can I add an action (external action) programmatically?
2. How can I call an external action, which is not added external action of an action.
3. What is meant by Source Control?
4. How and what kind of VB functions do u use in QTP?
5. How can u describe the basic flow of automation with conditional and programmatic logic?
6. How can I implement error handling in QTP,
7. How to recall a function in QTP
8. Give one example where you have used Regular expression?
9. How can I implement error handling in QTP?
10. How to select particular value from the combo box in the current page which is entered in the previous page edit box after parameterization?
11. If you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?
12. When there is a task that gets repeated in multiple scripts, what do you do in QTP?
13. What is the descriptive programming?
14. What is the use of descriptive programming?
15. How to instruct QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of execution due to an error (for example Object not found)?
16. How you write scripts in QTP? What's the main process in QTP? How do you run scripts in QTP? Please anyone can answer my questions.......
17. What is descriptive programming?
18. How to add run-time parameter to a datasheet?
19. How to load the *.vbs or test generating script in a new machine?
20. How can you write a script without using a GUI in QTP?

QTP interview 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.