Table of contents
1.
Introduction
2.
What is Unified Functional Testing (UFT)?
2.1.
UFT Interview Questions for Freshers
2.2.
1. What are the different types of UFT test assets and their extensions:
2.3.
2. What are the terminologies supported by UFT?
2.4.
3. Which recording mode needs more memory?
2.5.
4. Does QTP run in any environment?
2.6.
5. Why do we use breakpoints in QTP?
2.7.
6. What are the advantages of Test Automation?
2.8.
7. How can you close the second opened browser?
2.9.
8. What are the disadvantages of QTP?
2.10.
9. Difference between Keyword View and Expert View.
2.11.
10. What are the features of  Unified Functional Testing (UFT)?
2.12.
11. What is the object spy?
2.13.
12. Explain the logical name of the object.
2.14.
13. In QTP, clarify what the .qrs file is.
2.15.
14. What is QTP’s model for test creation?
2.16.
15. What are the different kinds of Test steps?
2.17.
16. How will you handle the Java tree in QTP?
2.18.
17. Distinction between a Bitmap Checkpoint and an Image Checkpoint?
2.19.
8. Explain how QTP identifies objects.
2.20.
19. What is an Object Repository?
2.21.
20. What are checkpoints in the context of UFT, and can you explain the different types of checkpoints available in UFT?
3.
UFT Interview Questions for Experienced
3.1.
21. What are the different Recording modes, and how do they work?
3.2.
22. What are the two types of repositories available? Explain them.
3.3.
23. What is descriptive programming?
3.4.
24. What is Smart Identification?
3.5.
25. What is a Procedure or Subroutine in VB Script?
3.6.
26. Differentiate the kind of test cases that can be computerized and which can't be robotized.
3.7.
27. What are the differences between Selenium and HP UFT?
3.8.
28. What is an Optional advance in QTP? How can you add an optional step in QTP?
3.9.
29. How to add synchronization points in QTP?\
3.10.
30. How do you execute multiple QTP scripts simultaneously?
4.
UFT MCQ Questions
4.1.
1. What does UFT stand for in the context of automation testing?
4.2.
2. Which language is primarily used for scripting in UFT?
4.3.
3. UFT is primarily used for testing which type of applications?
4.4.
4. Which object repository types are supported by UFT?
4.5.
5. What is the purpose of checkpoints in UFT?
4.6.
6. Which of the following UFT add-ins is used for automating web-based applications?
4.7.
7. What feature of UFT allows you to run the same test with different sets of data?
4.8.
8. Which of the following is true about the keyword view in UFT?
4.9.
9. How do you handle dynamic objects in UFT?
4.10.
10. Which file format does UFT use to save object repositories?
5.
Conclusion
Last Updated: Mar 25, 2025
Easy

UFT Interview Questions

Author soham Medewar
1 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

The computerization of functional and relapse tests for programming applications and situations is provided by QTP, also known as UFT (Unified Functional Testing). Given its graphical user interface and support for keyboard and scripting interfaces, it has a respectable amount of commercial interest. 

It is amazing in the execution of test information, test execution reports, and article repositories. Knowing QTP would undoubtedly offer you an advantage in finding a respectable job in software testing. You may go through the list of frequently requested UFT interview questions on this page.

What is Unified Functional Testing (UFT)?

Unified Functional Testing (UFT) is an automated functional testing tool developed by Micro Focus, previously known as QuickTest Professional (QTP). UFT helps testers execute automated tests on both web-based and desktop applications. It supports various programming languages such as VBScript and provides a user-friendly interface for creating and managing tests.

UFT offers features like:

  • Cross-platform testing: It can test web, desktop, and mobile applications.
  • Object identification: UFT uses a robust object repository to identify and interact with elements within an application.
  • Data-driven testing: It allows testing the same application with multiple data sets, increasing test coverage.
  • Integration: UFT can integrate with other tools such as ALM (Application Lifecycle Management) for end-to-end test management.

UFT Interview Questions for Freshers

1. What are the different types of UFT test assets and their extensions:

Test AssetExtension
Test File.mts
Shared Object Repository.tsr
Recovery Scenario.qrs
Function Library.qfl
Results.xml
Local Object Repository.mtr
Test Batch Runner.mtb

 

2. What are the terminologies supported by UFT?

Web, WPF, SAP, Java (Core and Advanced), Oracle, Siebel, .Net, Delphi, Power Builder, PeopleSoft, Terminal Emulator, Stingray 1, Web Services, Windows Mobile, Flex, VisualAge Smalltalk, Silverlight, and mainframe terminal emulator are some examples of technologies.

 

3. Which recording mode needs more memory?

Analog and Low-level Recording modes require more memory.

 

4. Does QTP run in any environment?

QTP runs only on a Windows environment.

 

5. Why do we use breakpoints in QTP?

This is done so that your test can be stopped midway through its execution. It is typically used to monitor the state of your program or to comprehend how a specific feature operates at a specific runtime stage.

 

6. What are the advantages of Test Automation?

advantages of test automation
  • Time - It yields fast results.
  • Not using a manual
  • Cost-effective
  • Not susceptible to human mistakes.

 

7. How can you close the second opened browser?

The "creation time" field may be used to determine which browser instance was launched first. Simply said, this is a counter for each instance of a browser that is started. It starts off as 0 for the first one and increases from that point on. You may use the following code to shut the second open browser:

Browser(“creationtime:=1”).Close

 

8. What are the disadvantages of QTP?

  • Huge tests in QTP now use a lot of memory and increase CPU use as of QTP version 10.
  • The resulting folder gets large because QTP keeps outputs in an HTML file (rather than a text file).

 

9. Difference between Keyword View and Expert View.

A symbol-based view called the Keyword View shows test steps in a tabular format. As a result, the test steps' documentation is produced. Each test step in the Keyword view has an associated VB Script articulation that is provided by Expert View.

10. What are the features of  Unified Functional Testing (UFT)?

Unified Functional Testing (UFT), formerly known as HP QuickTest Professional (QTP), is a comprehensive automated testing solution developed by Micro Focus. It offers a wide range of features to support functional and regression testing of software applications. Some of the key features of UFT include:

  • Keyword-Driven Testing: UFT allows testers to create automated test scripts using a keyword-driven approach, where actions are represented by keywords or commands.
  • Record and Playback: Testers can record user interactions with the application under test and generate automated test scripts based on these interactions. These recorded scripts can be replayed to perform regression testing.
  • Object Recognition: UFT uses a robust object recognition mechanism to identify and interact with various UI elements of the application, such as buttons, text fields, dropdowns, etc. This helps in creating stable and reliable test scripts.
  • Data-Driven Testing: UFT supports data-driven testing by allowing testers to parameterize test scripts and supply test data from external sources like Excel spreadsheets, databases, or flat files. This enables the execution of the same test case with multiple sets of data.

11. What is the object spy?

Choosing the run and test time object attributes and procedures for the application under test is made easier with the help of Object Spy. Object Spy may be accessed directly from the toolbar or the Object Repository Dialog Box. When using descriptive programming is beneficial.

 

12. Explain the logical name of the object.

A logical name is one that QTP gives an item when it creates it in the repository to help users distinguish it from other items in the application. The QTP would use this name to create a content strategy for the item name and its associated depiction in the article repository.

 

13. In QTP, clarify what the .qrs file is.

The "Quicktest Recovery Scenario" extension stands for it. Recovery scenario managers allow us to handle unique situations during test execution. When creating a recovery situation in QTP, you should save it as a .qrs file. There might be several circumstances described in a .qrs file.

 

14. What is QTP’s model for test creation?

  • Identify testing requirements, define the testing environment, review your applications, and make plans for action
  • Create repositories, either local or shared
  • Make function libraries explicit
  • Create test procedures - Include steps and checkpoints
  • Data-driven testing
  • Start the tests

 

15. What are the different kinds of Test steps?

The 5 categories of steps are shown below:

  • Examined Item (Acts on a TO)
  • Functions 
  • Utility (Steps to control run session. For example, Reporter.report)
  • Comment
  • Programming Logic

 

16. How will you handle the Java tree in QTP?

You will first choose Java Add-In and start QTP. Recording Java Tree actions is the next stage. If you encounter a problem when recording, you may choose Tools > Object Identification > Java, tree object, and modify the required and helpful parameters to facilitate identification.

 

17. Distinction between a Bitmap Checkpoint and an Image Checkpoint?

An image or a portion of a photograph is pixel-to-pixel correlated in a Bitmap-defined area. While Image Checkpoint does pixel-to-pixel correlation, it prioritizes image attributes like alt text, destination URL, and so on.

 

8. Explain how QTP identifies objects.

Any GUI object is recognized by QTP based on its relevant characteristics. In the object repository of the GUI object, QTP will detect and save unusual attributes (as specified in the Object Identification settings) when recording. In order to identify a GUI item specifically during runtime, QTP will compare the stored property values with the on-screen properties.

 

19. What is an Object Repository?

All the items in a test are stored in OR, which is similar to a warehouse. The list of objects that QTP discovered throughout the recording process, together with the class to which each one belongs, is stored in OR.

In addition to naming the item for the sake of identification in our test based on its most distinguishing feature, it contains a series of attributes that individually identify the object (description).

 

20. What are checkpoints in the context of UFT, and can you explain the different types of checkpoints available in UFT?

Checkpoints in UFT (Unified Functional Testing) are validation points used to verify expected behavior in applications during automated testing. UFT provides various types of checkpoints to validate different aspects of the application's functionality. The main types of checkpoints in UFT are:

  • Standard Checkpoints: These checkpoints compare the current value of a property or attribute of an object in the application against an expected value. Standard checkpoints can be used to validate text, images, database values, and more.
  • Text Checkpoints: Text checkpoints verify the text content displayed on a web page, window, or dialog box in the application. They compare the actual text with the expected text specified during test creation.
  • Text Area Checkpoints: Similar to text checkpoints, text area checkpoints validate the text content within a specified area or region of the application, such as a text box or text area.
  • Bitmap Checkpoints: Bitmap checkpoints compare the graphical representation (screenshot) of a specific area or object in the application against an expected image. They are useful for validating the appearance and layout of graphical elements.
  • Database Checkpoints: Database checkpoints verify the data retrieved from a database query or operation. They compare the actual database values with the expected values specified in the checkpoint.

UFT Interview Questions for Experienced

21. What are the different Recording modes, and how do they work?

Three recording modes are offered by QTP:

  • Normal Recording Mode: The normal mode is always the default recording setting. To understand and interact with the AUT, this technique makes use of the concept of Runtime and Test Objects Objects.
  • Analog Recording Mode: The user's precise mouse and keyboard movements in reference to the screen or the AUT window are recorded while using the analog recording mode. This approach does not allow for the editing of the recorded steps. The process of trying to obtain a signature is one situation in which this kind of recording may be employed.
  • Low-Level recording mode: Regardless of whether QTP identifies the particular Object or Operation, this mode captures the coordinates in the application where the operation is carried out.

 

22. What are the two types of repositories available? Explain them.

The two types of repositories that are offered are local and shared.

By default, each action has its own local repository that contains all the objects that are needed. As an alternative, the tester might have a central repository for all of their operations, allowing them to share the objects it contains. A shared OR is the name of the shared repository.

 

23. What is descriptive programming?

A thing's properties should typically be listed in the object repository so that QTP may conduct operations on it. When using descriptive programming, you don't keep the object and its property estimates in the Object repository, but rather, you directly see the property estimation pair in the content. The idea behind descriptive programming is to identify dynamic things while not avoiding the article repository.

 

24. What is Smart Identification?

If the recorded depiction does not enable QTP to identify a specific item, then QTP uses the "smart ID" technique. It makes use of the additional attributes that come with the object to differentiate it:

Base Filter Properties: The grouping of parameters that cannot be altered without altering the article type.

Optional filter properties: Additional features that help identify the item significantly are optional filter properties.

 

25. What is a Procedure or Subroutine in VB Script?

A sub procedure is a series of Sub and End Sub statements enclosing VB Script explanations that carry out actions without restoring a value. A submethod can take parameters (constants, factors, or articulations that are passed by a calling strategy). If a Sub technique doesn't have any supporting evidence, its Sub-assertion should have an empty set of parentheses ( ).

 

26. Differentiate the kind of test cases that can be computerized and which can't be robotized.

  • The Test Cases that need human impedance cannot be automated.
  • The most current Test Cases are not automated. In any case, they must be carried out physically once.
  • Robotizing tests that need to run repeatedly is a good idea.
  • Robots are used to automate tests that need to be run with various informational setups.
  • Text instances that depend on constantly changing requirements cannot be automated.

 

27. What are the differences between Selenium and HP UFT?

HP UFT vs Selenium
  • UFT is not an open-source tool, unlike Selenium. Selenium doesn't require a license to be used; however, UFT does.
  • While Selenium programming should be feasible with JAVA, Perl, .net, PHP, and other languages, UFT only supports VB scripting.
  • We could evaluate centralized and Windows-based computer programs by using UFT. Selenium, however, is only used to test web applications.
  • UFT testing is significantly more costly than Selenium testing.
  • Selenium Scripts are more difficult to utilize than UFT contents.

 

28. What is an Optional advance in QTP? How can you add an optional step in QTP?

When running a test, if a dialogue box cannot be opened, QTP doesn't truly end the trial. It completes all progressions marked as "optional" and continues running the exam. Naturally, QTP checks as optional advancements that open certain dialogue boxes. Right-click the term and choose "optional Step" to specify an optional advance. The next stage would add the symbol for the optional step. Add an optional step to the beginning of the VBScript statement in the expert view to add an optional advance.

 

29. How to add synchronization points in QTP?\

In QTP, there are four different ways to add synchronization points.

  • Wait statement: The execution of this statement will be stopped for x seconds until the specified object appears.
  • Wait property: This method will wait until an object's property assumes a specific value.
  • Exist statement: This statement will hold off executing until the object is made available.
  • Sync approach: The code will wait till the browser page has loaded entirely. This technique is employed while testing web applications.


30. How do you execute multiple QTP scripts simultaneously?

To execute multiple QTP (QuickTest Professional, now known as UFT) scripts simultaneously, you can use the UFT's parallel execution feature. Here's how you can do it:

  1. Set Up Multiple Test Machines: Ensure you have multiple test machines available where you want to execute the scripts simultaneously. Each test machine should have UFT installed along with the necessary licenses and configurations.
  2. Divide Test Scripts: Divide your test scripts into separate batches or groups based on your requirements. Each batch should contain scripts that can be executed concurrently without dependencies or conflicts.
  3. Configure Test Execution Settings: In UFT, configure the test execution settings to enable parallel execution. You can specify the number of concurrent instances or threads to run the test scripts simultaneously.
  4. Distribute Test Execution: Distribute the test script batches across the available test machines. You can use a test management tool, batch files, or custom scripts to distribute and trigger the execution of the test scripts on different machines simultaneously.
  5. Monitor Execution: Monitor the execution progress of the test scripts on each test machine to ensure they are running smoothly and without errors. Use logging and reporting mechanisms to track the execution results and identify any issues or failures.

UFT MCQ Questions

1. What does UFT stand for in the context of automation testing?

A) Unified Functional Tool

B) Universal Functional Testing

C) Unified Functional Testing

D) Universal Framework Testing

Answer: C) Unified Functional Testing

2. Which language is primarily used for scripting in UFT?

A) Java

B) Python

C) VBScript

D) C#

Answer: C) VBScript

3. UFT is primarily used for testing which type of applications?

A) Web Applications

B) Desktop Applications

C) Mobile Applications

D) All of the above

Answer: D) All of the above

4. Which object repository types are supported by UFT?

A) Local Object Repository

B) Shared Object Repository

C) Both Local and Shared

D) None of the above

Answer: C) Both Local and Shared

5. What is the purpose of checkpoints in UFT?

A) To check the CPU usage

B) To compare expected and actual results

C) To handle pop-up windows

D) To restart the test

Answer: B) To compare expected and actual results

6. Which of the following UFT add-ins is used for automating web-based applications?

A) Java

B) Web

C) Oracle

D) .NET

Answer: B) Web

7. What feature of UFT allows you to run the same test with different sets of data?

A) Debugging

B) Data-Driven Testing

C) Synchronization

D) Descriptive Programming

Answer: B) Data-Driven Testing

8. Which of the following is true about the keyword view in UFT?

A) It shows the code written in VBScript

B) It allows recording actions on the application

C) It displays actions in a tabular format

D) It is used to create checkpoints

Answer: C) It displays actions in a tabular format

9. How do you handle dynamic objects in UFT?

A) Using Object Spy

B) Using Descriptive Programming

C) Using Checkpoints

D) Using Output Values

Answer: B) Using Descriptive Programming

10. Which file format does UFT use to save object repositories?

A) .xml

B) .tsr

C) .doc

D) .xlsx

Answer: B) .tsr

Conclusion

In this article, we walked through all the important UFT Interview Questions. UFT remains a crucial tool in the automation testing landscape, providing robust functionality for both web and desktop applications. Mastery of UFT is essential for automation testers, as it enables efficient test creation, execution, and reporting.

Recommended Reading:

Live masterclass