Saturday, 28 September 2013

QTP Top 10 Interview Question and Answers

Leave a Comment
Here this article is about QTP Top 10 Interview Question and Answers which are very useful for the seekers in the future when you attend interview regarding QTP. These Question and answers are explained in a brief way and in a simple manner where the readers can understand easily without any difficulties. After reading these please share your testimonial with us. All the best





Introduction to QTP

QTP stands for Quick Test Professional.  Quick Test is a graphical interface record-playback automation tool.  QTP is Mercury Interactive Functional Testing Tool.  It is able to work with any web, java or windows client application.  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. 



1) What are the types of object Repositories in QTP?

Ans: There are two types of Repositories. They are:
1) Shared Object Repository
2) Per Action Object Repository
Per Action Object Repository is used by default. The extension for Per-Action repository is ".mtr”.
Shared Object Repository is preferable while dealing with dynamic objects which are called in multiple tests. The extension is ".tsr"



2) Define action split and what is the purpose of using this in QTP?

Ans: Action split is to divide an existing action into two parts. The purpose is to divide actions based on their functionality to improve code re use.



3) How can we hold Java tree in QTP?

Ans: First we have to select Java Add In and launch QTP. Next, record operations on the Java Tree. If you face an issue while recording, you can select Tools > Object Identification > Java, tree object and make changes in mandatory and assistive properties to facilitate classification.



4) Mention how QTP identifies object?

Ans: QTP identifies any GUI Object based on its consequent properties.  QTP will identify and store uncharacteristic properties in the object repository of the GUI object. At run time, QTP will compare the stored property values with the on-screen properties, to uniquely identify the GUI object.



5) Mention the types of recording modes in QTP?

Ans: Three types of recording modes are there in QTP. Namely:
  •  Normal mode (also called Contextual)
  •  Low-level recording mode
  • Analog mode




6) Explain the logical name of the object?

Ans: Logical name is a name given by QTP while creating an object in the repository to uniquely identify it from other objects in the application. This name would be used by the QTP to map the object name in script with its corresponding description in the object repository.
 Ex: Browser ("Browser").Page ("Guru99") Here Guru99 is the logical name of the object.



7) Define Object Spy?

Ans: Object Spy helps in influential the run and test time object properties & methods of the application under test. We can access object spy directly from the toolbar or from the Object Repository Dialog Box. It is very useful during graphic Programming.



8) What is the code file extension of QTP?

Ans: Code file extension is script.mts



9) Define Step Generator?

Ans: Step Generator enables us to Add Test Steps in your script. Using step generator you can add steps to your script without actually recording it.



10) Define Test Fusion Report?

Ans: Test Fusion Report, displays all aspects of a test run and is prepared in a Tree format. It gives complete details of each step executed for all iterations. It also gives Run-time data table, Screen shots and movie of the test run if opted.

0 comments:

Post a Comment