QTP Interview Question and Answers
In order to get high great manual and Automated testing training Orange TechnoMind would be the smart choice for you to choose and when it comes to a software testing training in Chennai
, it is the proper place to be. It has a strong team of testing experts to take challenges and deliver the excellent training.Thus QTP training in Chennai
has become essential for those who want to pursue their career in software testing and make them fit well into the technical expertise criteria for the job.
1.What is UFT or QTP?
HP UFT (UNIFIED FUNCTIONAL TESTING) is a functional and regression automation testing tool for automating software applications and environments
UFT unifies/integrates two automation tools as a single tool.
UFT = HP QTP ( Quick Test Professional) + HP ST ( Service Test)
2.What are the different types object Repositories in QTP?
QTP Supports 2 types of Object Repository
1. Shared Object Repository(Global object repository)- The extension is ".mtr"
2. Per-Action Object Repository(default object repository also called a Local object repository)- The extension is ".tsr"
3.What’s the difference among local and shared object Repository in QTP?
Local item Repository is related to precise action. Even as Shared object repository is independent of action. We are able to associate the shared object repository to current test.
4.In Which environments does QTP comfortably work?
5.Does QTP run in any environment?
No, QTP works only in the windows environment.
6.List out Technologies supported by QTP?
Web, Java (Core and Advanced),.Net, WPF, SAP, Oracle, Siebel, PeopleSoft, Delphi, Power Builder, Stingray 1, Terminal Emulator, Flex, Web Services, Windows Mobile, Visual Age Smalltalk, Silverlight and mainframe terminal emulator
7.Name some of the types of applications you can run Test Automation on?
Test automation can be run on Windows applications, Web applications, .Net Applications, Java applications etc.
8.Provide an explanation for the purpose of object spy?
The use of the object spy pointing hand mechanism, you could view the supported properties and strategies of any object in an open application.
9.What's a virtual object?
You could teach QuickTest to understand any area of your application as an object by means of defining it as a virtual object. Virtual objects enable you to create and run tests on objects that aren't normally identified via QuickTest.
10.What's the need of virtual objects?
Your software might also include objects that behave like standard objects however aren't identified by using QuickTest. You could outline those objects as digital objects and map them to standard classes, inclusive of a button or a check box.
11.List out the recording modes available in QTP?
Normal or Default Recording: Irrespective of the object area QTP identifies it on the display screen.
Analog Recording Mode: In case if the exact mouse motion in important to take any action, then this mode is used.
Low-level Recording: The objects that cannot be recognized easily are recorded through this selection. In case if the object area changes within the software then this mode is used.
12.Which recording mode needs more memory?
Low-level and Analog recording modes need more memory.
13.What is Insight Recording?
It is a recording option which recognizes controls based on their appearance, and not their native properties
14.Is it viable to switch between recording modes during a test creation?
Yes, within the middle of recording, we will switch to Analog/Low-stage mode, finish the venture required and move again to normal recording. The switch to Analog mode is available most effective at some point of recording and not throughout editing
15.What is the Active screen?
Active display gives a picture of your application because it seemed whilst you accomplished a sure step at some stage in the recording session.
16.What is the way to merge 2 shared object repositories in QTP?
To merge 2 shared object repositories in QTP, you have to open object repository manager tool and then pick out merge tool in tools menu.
17.What is the way to locate the length of string in QTP?
You could discover the length of the string the use of one vb script feature called len.
18.What is the distinction between QTP and Selenium?
QTP isn't always open source tool even as Selenium is open source tool.
19.How does QTP become aware of objects in the application?
QTP identifies the object inside the software by using Logical name and class.
20.Explain the check points in QTP?
In QTP, Checkpoint is used to verify the software under test. It can introduce a checkpoint to affirm as to whether or not a particular object, textual content or a bitmap is present inside the automation run. At some stage in a test execution, a checkpoint verifies that the behaviour or state of the real application is consistent with the predicted software or not.
21.What is Automation Object Model in QTP?
Like we use QTP for automating the testing of our applications, we are able to use the automation object model of QTP to automate its very own operations as well. With the help of objects, methods, and properties exposed by means of the automation object model of QTP at the side of standard programming elements like loops and conditional statements, we are able to write applications that may configure QTP alternatives and run tests or components rather than performing these operations manually the usage of the QTP interface.
Automation programs are in particular beneficial for performing the identical tasks several times or on multiple checks or additives, or fast configuring QTP in line with the desires for a selected surroundings or software.
Most of the dialog boxes in QTP have a corresponding automation item. Most of the options in dialog boxes may be set retrieved using the corresponding object belongings, and most of the menu commands and other operations have corresponding automation methods.
22.What is a Recovery Scenario?
Recovery scenario offers you an option to take a few actions for recovering from a deadly error inside the test. Such issues are pretty common mainly when the tests are made to run unattended. In the sort of case the test procedure halts until the user perform a few desired recovery operation.
Recovery scenarios are useful when it's far hard to are expecting at which step the errors can come or whilst we are confident that the mistake will no longer come within the QTP script, while it is able to be everywhere outside the QTP Script.
23.What are the different types of Actions in QTP?
QTP uses following three kinds of actions
a) Non-reusable action - can be called only in the test with which it is stored, and can be called only once.
b) Reusable action - can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
c) External action - is a reusable action which is stored with another test. External actions are read-only in the calling test, but we can choose to use a local, editable copy of the Data Table information for the external action.
24.What are the extraordinary varieties of actions in QTP?
QTP uses following 3 varieties of actions
a) Non-reusable action - may be known as simplest inside the test with which it's miles stored, and can be called only once.
b) Reusable action - may be known as multiple times with the aid of the check with which it is saved (the nearby check) in addition to by other checks.
c) external action - is a reusable movement which is saved with every other test. external moves are examine-most effective in the calling test, however we are able to choose to apply a local, editable copy of the data table information for the outside action.
25.How many kinds of Checkpoints are available in QTP
1) Standard Checkpoint - It is used for checking the properties of an object.
2) Table Checkpoint - It is used for checking the properties of a table.
3) Image Checkpoint - It is used for checking the properties of an image.
4) Bitmap Checkpoint - It is used for comparing an area of the application beneath check pixel-by-pixel with the screen as seen at record-time.
5) Database Checkpoint – It is used for automating the back-end testing.
6) Text Checkpoint - It is used for checking that a section of text is found between two other sections of text.
7) Text Area Checkpoint - It is used for checking the properties of Text Area.
8) Page Checkpoint - It is used for checking the properties of a web page.
9) Accessibility Checkpoint - It is used for checking the accessibility of an application.
10) XML Checkpoint
26.What is the difference between a Checkpoint and Output value?
Checkpoint only checks for the precise attribute of an object in AUT while Output value can output those attributes value to a column in data table.
27.What are various forms of properties whilst the use of object identity in QTP?
QTP uses 3 varieties of properties when identifying a object
1. Mandatory properties - usually examine those properties for the object
2. Assistive properties - analyze in case mandatory properties are not enough to identify the object uniquely
3. Ordinal identifiers - learn in case both mandatory and assistive properties aren't capable of apprehend the objects effectively
28.What is Descriptive Programming?
Descriptive Programming is an alternate way of writing test instances without having objects in object repository. In Descriptive programming objects are identified with the aid of describing all of the identity properties
Descriptive programming may be executed in two approaches
1. Using object description
2. Using String description
29.What are the principle stages of testing with QTP?
Testing with QuickTest involves the following main stages:
2) Creating Tests
3) Running Tests
4) Analysing Results
30.What are Permissions Required to Run QTP?
You ought to have the following file system permissions:
1) Complete read and write permissions for all the files and folders beneath the folder in which QTP is installed
2) Full read and write permissions to the Temp folder
3) Read permissions to the Windows folder and to the System folder
You need to have the following registry key permissions:
1) Complete read and write permissions to all the keys below HKEY_CURRENT_USER\Software\Mercury Interactive
2) Read and Query Value permissions to all the HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT keys
31.What's the usage of Ordinal Identifiers in QTP
An ordinal identifier assigns a numerical value to a test object that shows its order or location relative to different objects with an otherwise same description (objects that have the same values for all properties).
This ordered value gives a backup mechanism that permits QTP to create a unique description to understand an object while the defined properties are not enough to accomplish that. you could specify the ordinal identifier for test objects in the nearby object repository using the object Repository window or object properties dialog box, and for test objects within the shared object repository the use of the object Repository manager.
32.What are the numerous varieties of ordinal identifiers used by QTP to identify an object?
1) Index property: indicates the order in which the object appears in the application code relative to other objects with an otherwise identical description.
2) Area property: shows the order in which the object seems inside the parent window, frame, or dialog box relative to other objects with an otherwise identical description.
3) Creation Time property: (For Browser object only) suggests the order in which the browser turned into opened relative to other open browsers with an in any other case same description.
33.What is using Template tests in QTP?
Template tests serve as the basis for all QTP tests created in best centre. A template test is a QTP test that consists of default test settings. Further to default test settings, a template test also can comprise any feedback or steps you want to consist of with all new QTP tests created in quality centre
34.How to manage Java tree in QTP?
You'll need to select and load the Java add-in. Then you could record and work on a Java Tree object just like you will with another object.
35.What are the advantages of a Hybrid framework?
The hybrid framework is not anything but a aggregate of frameworks that make you arrive at a solution to your testing desires by taking what works high-quality for your scenario. the apparent benefit is the flexibility. it may be tailored to satisfy any testing project’s need.