Micro Focus Unified Functional Testing (UFT) previously known as QTP (Quick Test Professional). We will discuss QTP Interview Questions here. This software provides functional and regression test automation for applications and environments. The operating system is Windows, and the license is proprietary which uses Visual Basic Scripting Edition to manipulate and control all applications. QTP allows user to test all three layers, i.e.:-
- The Interface
- The Service Layer
- The Database Layer
The first release of this was in 2001, which was 5.5, and the latest came on 17 November 2020. ALM manages activities from requirements through testing, development, etc. The software works with QTP and other software to find functional defects.
QTP Interview Questions
- Give yourself a rating on this software.
This question is to test your confidence and how much you know about the subject in your opinion. This can also be a testing factor for them, so answer it honestly. Do not give yourself extra credits or fewer credits. If you take extra credits, they might judge you on your skills afterward, and giving yourself fewer credits may give them the impression that you are not good in the software and may even half-mindedly move further. So be sure to give accurate points to yourself.
- Let’s move on to the technical things. Can you tell us some of the environments supported by QTP?
The technical questions should be answered precisely and to the point. You shouldn’t try to mold the answer. The environments supported by QTP are Active X, Delphi, Java, .Net, Visual Basic, Web Services, Stingray, Oracle, PeopleSoft, Terminal Emulator, Powerbuilder, SAP.
- Can you tell something about action split and its uses?
The action is split into 2 daughters or daughter-parent nested actions. When you do a split action in the test:
- A copy is made.
- Have the same local repositories containing all objects in the original repository.
- Adding objects in the split action only adds them to the local object repository.
The purpose is to only make changes in the other action rather than the whole of the original repository.
- How can you implement the JAVA tree?
The basic steps to implement the Java tree are:
- Select Java Add.
- Launch the QTP.
- Record the operations.
- If issues occur:
- Select tools
- Object Identifications
- Changes in Assistive and Mandatory properties
- How are objects identified in QTP?
Their properties identify GUI objects. The GUI object repository will store peculiar properties which are identified by the QTP while recording. To uniquely identify the object, it compares the properties with on-screen properties, also known as Run-Time Objects.
- Tell us about the types of recording modes and usage.
There are three types of recordings supported by QTP:
- Normal Mode/Contextual Mode – It takes advantage of the test object model and is the default mode. Objects are recognized regardless of their position on- screen. Most automation activities are done on this.
- Low-Level Recording Mode – Helpful in testing hashmaps since it records the exact coordinate of your cursor viz x and y coordinate. Normally useful for objects not identified by contextual mode.
- Analog Mode – The exact movements of the input devices like keyboard and mouse are recorded about the screen. Mostly used for creative purposes like drawing, trapping signature, drop operations, etc.
- Define virtual objects?
Some objects behave as standard objects but are unrecognizable by the QTP. These are known as virtual objects, which can be used by mapping them to a standard class like a button or a checkbox. During the running session, it is emulated by QTP as per the user’s action. The virtual object is seen as a standard one at the time of test result. For example:-
Suppose you record a page containing a bitmap triggered by the user click, which contains more hyperlink areas corresponding to different pages. During the test record, the coordinates of the click are matched, and the destination page opens.
A virtual object is defined for an area that includes coordinates and mapping to the button class, which QTP enables at the required coordinate click. QTP clicks an object given by an area in the bitmap, and the correct destination web page is opened at the time of running a test record.
- Can you please explain the logical name?
When the QTP creates an object in the repository, it gives it a unique name to identify it from other objects in an application. The name is known as a logical name. The description in the object repository is mapped to the object name in the script, which is done with the help of this.
Example:- Browser(“Browser”).Page(“RPK99”) where RPK99 is the logical name.
- Define descriptive programming.
The object is typically recorded in the Object repository for QTP to perform actions. Sometimes we do not store the object and property value in the Object repository and mention the property value pair directly in the script using descriptive programming. The main idea behind it is to recognize the dynamic objects and not to skip repositories.
- What is the extension of the code file?
Code file extension is script.mts.
- Why can’t we directly go for ordinal identifiers if they alone can make an object unique?
This question can be easily explained by two different situations:
- For the situation in which the objects overlap each other, location-based object recognition will fail.
- The time of execution of the script will increase if only index-based recognition is used.
Hence the usage of mandatory and assistive properties becomes important.
- What is a step generator?
It is used to add test steps in the script. Using this the tests are added without being recorded actually.
- Give an example of Createobject with a definition.
It generates and returns references to an automation object.
Servername: – Application name providing the object.
Type name: – class or type of object to be created
Location: – Network server name where the object is to be created.
Example: – Set TR=CreateObject(“Google.Application”)
- Is recording an application running on a remote machine possible?
The recording is possible if you access the application on a local browser, not via remoter. If the problem continues, you might want to go for installing QTP on the device.
- State one difference and one similarity between Bitmap Checkpoint and Image Checkpoint?
Bitmap does a pixel to pixel check of an image or part, whereas Image Checkpoint compares image properties like destination URL, alt text, etc. Image checkpoint also does pixel to pixel comparison.
- What is the QTP Testing process?
There are six main phases of the QTP testing process. The steps are as follows:
- Creating a plan: This is the first step, which includes identifying test data, test steps, and the expected result. For the QTP tests, you also note the environment and system configurations required.
- Record a session: On your AUT, you execute the test steps one by one, and the QTP records VB script statements respectively.
- Enhancing the test: In this stage, there is the insertion of checkpoints, output values, programming logics like if-else, loops to increase the logic of your test script.
- Replay and Debug: After the last stage, you rerun the script and debug if necessary.
- Run your tests: In this stage, you will actually execute the test script.
- Analyzing: After the actual execution, a Fusion report is generated, which helps analyze the results.
- Reporting: Incidents identified should be reported. For failed tests in QTP, defects are automatically raised if you are using the Quality Centre.
- Give the names of different types of test frameworks.
The types of automation test frameworks are:
- The Data-Driven testing framework.
- The Keyword- Driven/ Table- driven testing framework
- The test Library architecture framework
- Linear Scripting- Playback & record
Set of properties:
Every class of object QTP learns or stores are under a predetermined set of properties. It has three aspects that are:
- Mandatory: QTP always stores the list of properties for every class. This can also be called an object description. To identify the object uniquely, the description is checked in conjunction with the parent object.
- Assistive: A set of non-mandatory properties is added to the description. One of the mandatory properties is not enough to identify the objects uniquely.
- Ordinal Identifier: A unique ordinal identifier is added by QTP like the location or source code if the assistive properties cannot uniquely define the object. They are generally of three types:
- Index: Based on the order of appearance in the code.
- Location: Location in dialog or screen or page
- Creation Time: For the browser objects, this is used. Suppose two objects have similar properties in a browser. The first created is used.
QTP has various features for users and is a good software for running scripts or getting test results. It can also be used for various other purposes due to its flexibility and user-friendly behavior. It has a versatile nature since it gives many different environments and testing techniques to work from. It also gives all that you need in testing software alongside quick updates and debugs.
Also read What is User Testing?