• No products in the cart.

Top 24 Manual Testing & QTP Interview Question & Answers updated 2022

1.What is the Diff between Image check-point and Bitmap Checkpoint?

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).The results of bitmap checkpoints may be affected by factors such as operating system, screen resolution, and colorsettingsa.

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

Related Courses: Performance Testing

Related Courses: CCNA

3.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 the Run Test set from the Execution Grid. The same is possible with QTP also. If our test cases are automated then by selecting the 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.

4. If I give you a thousand tests to execute in 2 days what do you do?

Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.

5.What does it mean when a checkpoint is in red color? What do you do?

A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or an Application issue.

6.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 hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.

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

Codefile extension is.vbs and object repository is.tsr

8.Explain the concept of object repository & how QTP recognizes objects?

Object Repository: It 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 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 the object’s location on the page or in the source code.

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

Develop your skills with >> Tibco BW  >>   Tibco iProcess Administration >>  Tibco CIM (MDM)

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

For eg: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 COM will be one among those interfaces. Create object creates a handle to the instance of the specified object so that the program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).

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

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

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

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

15.What is keyword view and Expert view in QTP?

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

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

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

There are two ways to Spy the objects in QTP: 1.through 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 the Object repository dialog click on the button object spy. In the Object spy Dialog, click on the button showing the hand symbol. The pointer now changes into a hand symbol and we have to point out the object to spy on the state of the object if at all the object is not visible. or if window is minimized then, hold the Ctrl button and activate the required window to and release the Ctrl button.

18.What is the use of Text output value in QTP?

Output values enable the user to view the values that the application talks about 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.

19.How to handle the exceptions using the 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 a 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

20.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 into a single step with Auto-documentation technology. Enables thorough validation of applications through a full complement of checkpoints.

21.If an application name changes frequently i.e while recording it has name, in this case how does QTP handles?

QTP handles those situations using “Regular Expressions”.

22.How does QTP identify the object in the application?

QTP identifies the object in the application by LogicalName and Class. For example: The Edit box is identified by 1.Logical Name : PSOPTIONS_BSE_TIME20 2.Class: WebEdit

23.In how many ways we can add checkpoints to an application using QTP?

We can add checkpoints while recording the application or we can add after recording is completed using the Active screen (Note: To perform the second one The Active screen must be enabled while recording).

24.Explain the checkpoints in QTP?

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.


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

© ZxAcademy - 2022. All rights reserved.