Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
UFT Interview Questions for Freshers  
2.
1. What are the different types of UFT test assets and their extensions:
3.
2. What are the terminologies supported by UFT?
4.
3. Which recording mode needs more memory?
5.
4. Does QTP run in any environment?
6.
5. Why do we use breakpoints in QTP?
7.
6. What are the advantages of Test Automation?
8.
7. How can you close the second opened browser?
9.
8. What are the disadvantages of QTP?
10.
9. Difference between Keyword View and Expert View.
11.
10. What are the features of  Unified Functional Testing (UFT)?
UFT Interview Questions for Intermediate
1.
1. What is the object spy?
2.
2. Explain the logical name of the object?
3.
3. In QTP, clarify what the .qrs file is?
4.
4. What is QTP’s model for test creation?
5.
5. What are the different kinds of Test steps?
6.
6. How will you handle the Java tree in QTP?
7.
7. Distinction between Bitmap Checkpoint and Image Checkpoint?
8.
8. Explain how QTP identifies objects?
9.
9. What is an Object Repository?
10.
10. What are checkpoints in the context of UFT, and can you explain the different types of checkpoints available in UFT?
UFT Interview Questions for Experienced  
1.
1. What are the different Recording modes, and how do they work?
2.
2. What are the two types of repositories available? Explain them.
3.
3. What is descriptive programming?
4.
4. What is Smart Identification?
5.
5. What is a Procedure or Subroutine in VB Script?
6.
6. Differentiate the kind of test cases that can be computerized and which can't be robotized.
7.
7. What are the differences between Selenium and HP UFT?
8.
8. What is an Optional advance in QTP? How can you add an optional step in QTP?
9.
9. How to add synchronization points in QTP?\
10.
10. How do you execute multiple QTP scripts simultaneously?
Conclusion
Last Updated: Mar 27, 2024
Easy

Top UFT (QTP) Interview Questions and Answers (2024)

Author soham Medewar
1 upvote

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 absolutely amazing in the execution of test information, test execution report, and article repository. Having knowledge of 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.

Read more, Html interview questions And Operating System Interview Questions

UFT Interview Questions for Freshers  

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

Test Asset Extension
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?

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

UFT Interview Questions for Intermediate

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

 

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

 

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

 

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

 

5. What are the different kinds of Test steps?

The 5 categories of steps are shown below:

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

 

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

 

7. Distinction between Bitmap Checkpoint and 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.

 

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

 

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

Must Read Maven Interview Questions

UFT Interview Questions for Experienced  

1. 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.
  • Analogue 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 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.

 

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

 

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

 

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

 

5. 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 which 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 ( ).

 

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

 

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

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

 

8. 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 successfully 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.

 

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


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

Read about Batch Operating System here.

Conclusion

In this article, we walked through all the important UFT Interview Questions, from basic to experienced. That's it from the article. I hope you all find it useful.

Recommended Reading:

If you find it useful, do upvote UFT Interview Questions also, refer to interview questions in domains like OOPS interview questionsSQL interview questions, Excel Interview Questions, JPA Interview QuestionsSQL Query Interview Questions, Embedded C Interview Questions, and many more. Nevertheless, you may consider our paid courses to give your career an edge over others!

Happy Learning!

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp
Live masterclass