Home / Manual Testing QTP

UFT Interview Questions

Rating: 5.0Blog-star
Views: 7010
by Ravindra Savaram
Last modified: June 19th 2021

QTP, currently known as UFT (Unified Functional Testing), provides functional and regression test automation for software applications and environments. It has a good demand in the market because of its graphical interface and support for keyword and scripting interfaces. Besides, it is very powerful in test data management, test execution report generation, and object repository. Given these advantages, having QTP knowledge will certainly provide you an edge in landing a suitable job in software testing.

Here, we have compiled a bunch of 40 UFT Interview questions to help you perform better in the job interviews.

Happy reading!

Do you want to build your career and become successful in this domain? Then Enroll In "UFT Training" this course will help you to achieve excellence In this domain.

We have categorized UFT Interview Questions into 2 levels they are:

Levels of UFT Interview Questions

Top 10 Frequently Asked UTF Interview Questions

  1. What is QTP?
  2. What is the Keyword view?
  3. What is the Step Generator in QTP?
  4. What Synchronization Point is used in QTP?
  5. How do you open a read-only Shared Object Repository in QTP?
  6. What are the different environment variables in QTP?
  7. What are the different properties of ADODB?
  8. Which two frameworks are the parts of a combination in the Hybrid Framework?
  9. Which are the different types of frameworks in QTP?
  10. What is the default recording mode in QTP?

UFT Interview Questions for Freshers

1. What is QTP?

QTP (Quick Test Professional) is an automated functional testing tool. Using this tool, the testers can carry out automated regression testing to detect any errors or defects in the applications. The tool also compares the actual outcome with the expected result.

2. What is the most important skill required to become an expert in QTP?

To become a QTP expert, one needs to have the logic-building ability.

3. What are some of the advantages of the QTP tool?

Some of the advantages of the QTP tool include:

  • Ease of use and navigation
  • Validation of results
  • Report generation
  • Integration with Quality Center test management tool

4. How do you execute multiple QTP scripts automatically?

We can execute multiple QTP scripts automatically using the Batch Runner tool.

5. What is the Keyword view?

The Keyword view represents the test in a table form, which contains data, comments, and items, etc.

6. What are the different phases of an automation testing process?

These phases include - feasibility analysis of test automation, selection of a tool, selection of a suitable framework, creation of proof of concept, development of automation framework, development and execution of test script, and analysis of results.

7. What is an Expert view?

The Expert view is generally used by advanced users. It displays the test data as actual lines of code.

8. What are some of the Excel VBA functions commonly used?

These include Autofit cel and Coloring cell, etc.

9. What is the Step Generator in QTP?

The Step Generator is an inbuilt function in QTP, which generates a script as the appropriate steps are entered.

10. Without using both the record and system utility script, how can you open a notepad window?

This can be done by specifying the path of the notepad (location of the note.exe) on the “Windows Applications” Tab, which is in the “Record and Run Settings” window.

11. What is the purpose of OR (Object Repository) In QTP?

In QTP, the Object Repository contains text fields, radio buttons, images, texts, edit boxes, combo boxes, and lists, etc. With this Object Repository, QTP identifies the objects and acts on them.

12. What is Analog mode? What is its functionality?

The Analog mode is a recording mode in QTP. It records the moments of the mouse and keyboard.

13. Which are the three types of actions in QTP?

The three types of actions are non-reusable action, reusable action, and external-reusable action.

14. How do data tables help the testers? Which are the different types of data tables?

The data tables help in creating data-driven test cases, which are used to execute an action multiple times. These types of data tables include local data tables and global data tables.

15. What Synchronization Point is used in QTP?

In a test script, the Synchronization Point defines the delay time between two steps.

[ Related Article:- UFT Tutorial ]

16. Which recording mode records the X and Y coordinates of a mouse operation?

The low-level recording mode records the X and Y coordinates.

17. Which are the properties used by smart identification in QTP?

The smart identification uses two types of properties including Base Filter Properties and Optional Filter Properties.

18. When is the smart identification mechanism used?

The smart identification mechanism is used when QTP is not able to identify any object matching the object description. It is also used in a scenario where there is more than one object that matches the recognized object description.

19. Which are the possible error types a tester may encounter in QTP?

Possible error types include syntax errors, logical errors, and run-time errors.

20. How do you open a read-only Shared Object Repository in QTP?

We can open a read-only Shared Object Repository by selecting the “Enable Editing” option on “Object Repository Manager”.

UFT Interview Questions for Experienced

21. How do you handle a situation in which unexpected errors occur during the execution of a script?

In such a situation, we need to use Recovery Scenarios. Once the Recovery Scenario is used, the tests will be recovered, and also the script execution will be continued.

22. What are the different environment variables in QTP?

The environment variables in QTP are Built-in Environment Variables (Read-Only), User Defined Internal Variables (Read-Only), and User Defined External Variables (Read / Write).

23. How do you modularize the script in QTP?

We can modularize the script by adding library files to the QTP script.

24. What for the SetSecure method is used in QTP?

The SetSecure method is used to securely set the text in the password boxes.

25. What do you do if a standard window object is not recognized by QTP in an application that is undergoing a test?

In this situation, we need to define the object Virtual Object (VO). This helps in the simulation of user actions in the virtual object.

26. QTP doesn’t have any inbuilt support to connect to databases. Then, how can you connect to a database?

We can connect to databases using ADODB objects of VB Script.

27. What are the different properties of ADODB?

The properties of ADODB include ADODB. Connection, ADODB. Command, ADODB.Fields, and ADODB.Recordset. 

28. How are the descriptions of the objects created in QTP?

The descriptions of the objects are created using Descriptive Programming. 

29.  How can the QTP itself be automated?

It can be automated using the HP-QTP’s COM interface.

30. What does the Automation Object Model consist of? What purpose does it serve?

Automation Object Model consists of objects, methods, and properties. Using the Automation Object Model, we can control the configuration settings and also execute the scripts.

31. Shared Object Repository and Per-Action Object Repository are the two types of repositories in QTP? What is the default one between these two? What is the extension of it?

The default object repository is Per-Action Object Repository. The extension of it is ".mtr”.

32. Which two frameworks are the parts of a combination in the Hybrid Framework?

The combination of the two frameworks in the Hybrid Framework is Keyword Framework and Data-driven Framework.

33. How do you divide an action in QTP?

We can divide an action in QTP by using Action Split.

34. Why do you use Object Spy in QTP?

We can use Object Spy to find the properties, their values, and also the associated methods of an object.

35. Which are the different types of frameworks in QTP?

The types of frameworks in QTP include

  • Linear Scripting
  • Test Library Architecture Framework
  • Data-Driven Testing Framework
  • Keyword-Driven Framework
  • Hybrid Framework

36. What do you do to check broken links in an application?

By incorporating Page Checkpoint in the application pages, we can check broken links. It enables us to view the sum of valid and invalid links on a page.

37. Which method in QTP gets the property values of a run-time object?

The GetRoProperty method fetches the property values.

38. What is an XML checkpoint in QTP?

An XML checkpoint checks the content of the .xml documents in web pages and frames.

39. What are the advantages of a Data-driven Framework?

The advantages of Data-driven Frameworks include the generation of less code and development of test data, etc.

40. What is the default recording mode in QTP?

The default recording mode is the Normal recording mode.

About Author

author
NameRavindra Savaram
Author Bio

 

Ravindra Savaram is a Content Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.