QTP/UFT Interview Questions (2024) | TechGeekNext


QTP/UFT Interview Questions (2024)

  1. What is QTP?
  2. What is UFT?
  3. What are the differences between Selenium and QTP/UFT?
  4. What is Recording in QTP/UFT?
  5. What are types of recording modes available in QTP?
  6. What is synchronization point in QTP/UFT?
  7. What is Object Repository in QTP/UFT?
  8. What is parameterization in QTP/UFT?
  9. What is smart identification in UFT?
  10. What is Environment Variable in QTP/UFT?
  11. What are the different types of QTP/UFT environment variables?
  12. What is Checkpoint in QTP/UFT?
  13. What are the types of checkpoints in Micro Focus UFT/QTP?
  14. How to use Checkpoints in QTP/UFT?
  15. How to use Functions in QTP/UFT?
  16. Why Transactions is used in QTP/UFT?
  17. How to use Transactions in QTP/UFT?
  18. What is object spy in QTP/UTF?
  19. What does the GetROProperty do in QTP/UFT?
  20. What does the GetTOProperty method do in QTP/UFT?
  21. What is SetSecure in QTP/UFT?
  22. How to launch application in QTP/HP UFT?
  23. How do we create a constraint in QTP?

Q: What is QTP?
Ans:

QuickTest Professional (QTP) is a product of Hewlett Packard (HP). When script development has been completed, this technology enables testers to execute automated functional testing without monitoring. HP QTP uses Visual Basic Scripting (VBScript) to automate applications.

Q: What is UFT?
Ans:

QTP, now known as UFT, is a tool designed to do automated functional testing without interrupting the system.

Microfocus renamed QTP to UFT (Unified Functional Testing). The tool's primary applications are functional, regression, and service testing. Testers can utilize UFT to automate user behaviors on a web or client-based computer program, as well as test and uncover faults that may appear when such actions are performed.

Q: What are the differences between Selenium and QTP/UFT?
Ans:

QTP can be used to test on browser, desktop, and client-server applications. However, Selenium is only used to test web apps. QTP UFT only supports code written in VB script. Selenium, on the other hand, supports a wide range of languages, including PHP, Java, Ruby, Python, and others.

Take a look at our Suggested Posts :

Q: What is Recording in QTP/UFT?
Ans:

Recording a test includes recording the user actions of the application under test so that UFT can automatically produce scripts that can be played back.

Q: What are types of recording modes available in QTP?
Ans:

  1. Normal Recording
    This is the default recording mode, and it records all of the actions taken while testing an application.
  2. Analog Recording
    This method captures both keyboard and mouse activities in relation to the display or application window.
  3. Low-Level Recording
    This records an object's precise coordinates regardless of whether UFT recognizes it or not. It doesn't capture mouse actions because it only records coordinates.
  4. UFT's insight recording
    This feature captures actions based on how they appear rather than their inherent characteristics.

Q: What is synchronization point in QTP/UFT?
Ans:

The time interface between the tool and application under test is known as the synchronization point. The synchronization point feature allows you to set the amount of time that should pass between two test script phases.

Q: What is Object Repository in QTP/UFT?
Ans:

With the help of the object repository, QTP/UFT can identify various objects and take appropriate action. By default, the objects and their properties are recorded when a user records a test. QTP cannot play back the scripts if it does not comprehend objects and their properties.

Q: How to use WaitProperty in QTP/UFT?
Ans:

WaitProperty allows us to synchronize the test run based on a particular object attribute, unlike the Exist method. If we want UFT to wait up to 30 seconds for the string "Ready" to display in the "Status" text control, for instance, you could assert: "Wait up to 30 seconds."

Q: What is parameterization in QTP/UFT?
Ans:

We can select many values at runtime using to parameterization. It requires less time and work. We can use the same information for multiple input boxes by using Data Drivers. (HP UFT offers a feature called Data Drivers that displays all the constants that are parameterized in a single window.

Q: What is smart identification in UFT?
Ans:

Environment variables are dynamic "properties" that can hold values on a computer and can then be linked to by one or more Windows software programs.

Variables in the environment are dynamic and changeable. Programs can make use of a variety of environment variables to obtain data about their computing environment.

Q: What is Environment Variable in QTP/UFT?
Ans:

QTP Fabric is an utility for storing and retrieving data from many databases in one or more QTP DBMS(s) using a single Cypher query.

Q: What are the different types of QTP/UFT environment variables?
Ans:

The variables that can be utilized across all tests are known as environment variables. Environment variables come in two different categories.

  1. Built-in variables
  2. User-defined variables
    • Internal
    • External

Q: What is Checkpoint in QTP/UFT?
Ans:

A checkpoint is a point of verification where the present value of a property of an object is compared to the value that is expected. A PASS status is generated if the current value and the predicted value match, otherwise an FAIL status.

Q: What are the types of checkpoints in Micro Focus UFT/QTP?
Ans:

Below are some of the types of checkpoints.

  1. Standard checkpoints: It contrasts the object's present values during a run session with the expected values of object characteristics recorded during recording.
  2. Page Checkpoint: A Page Checkpoint is a Standard Checkpoint designed specifically for a web page. It is applied to count all of the links and photos on a website. Page checkpoints can be used to measure load time, or the amount of time it takes a web page to load.
  3. Database checkpoints create a query quickly and store database values as they should be. The identical query is repeated at runtime, and the expected and actual values are evaluated.
  4. We can dynamically examine the contents of table (grid) cells in Table Checkpoint as they occur in your environment. Additional table attributes like row height and cell width can be checked. Database Checkpoint and Table Checkpoint are equivalent.
  5. A user can check the bitmap of an image or an entire web page with the use of Bitmap Checkpoint. It compares the real and anticipated visuals pixel for pixel.

Q: How to use Checkpoints in QTP/UFT?
Ans:

At any time throughout the recording session of our Test, checkpoints can be added. We can choose the necessary checkpoint that like to add by going to "Design -> Checkpoints -> Existing Checkpoint".

Q: How to use Functions in QTP/UFT?
Ans:

To use a function from a library in your test, just adhere to these straightforward procedures.

  1. In HP QTP, to build a new function library. File -> New -> Function Library should be selected. In QTP, it appears as a new tab. The single file can include definitions for many functions.
  2. Bind the test to the library. To access the Associate Function Library, select File -> Settings -> Resources -> Select Add -> Select the file for the function library -> Select "OK".
  3. Now call the function in your test script.

Q: Why Transactions is used in QTP/UFT?
Ans:

UFT transactions can be used to estimate how long it takes to run a segment or a set of steps of any test.

Q: How to use Transactions in QTP/UFT?
Ans:

  1. Select the proper location in QTP where we wish to begin the transaction.
  2. Insert Start Transaction is the option.
  3. The Start Transaction Dialog Box appears.
  4. Provide the transaction a meaningful name.
  5. The test now includes a start transaction statement.
  6. Choose the state where we wish the transaction to end.
  7. Insert -> End Transaction
  8. Dialog Box for ending a Transaction will open. It starts with a list of all accessible transactions.
  9. Click the Ok button. A final transaction statement is included.
  10. Now execute the test.
  11. At last, end transaction statement will provide all the details regarding time taken for that test.

Q: What is object spy in QTP/UTF?
Ans:

Object spy is used to find an object's properties, related values for those properties, and associated methods. We can even utilize Object Spy to add objects to the Object repository as of UFT 12.5.

Q: What does the GetROProperty do in QTP/UFT?
Ans:

The built-in UFT function GetROProperty is used to obtain an object's run-time value from the object in the application.
Syntax:

object.GetROProperty (Property Name)

Q: What does the GetTOProperty method do in QTP/UFT?
Ans:

The value from the test object's description is returned by GetTOProperty. GetROProperty retrieves the object's current property value while the test is running. Only those properties whose values are included in the test object description can be retrieved using the GetTOProperty function.

Q: What is SetSecure in QTP/UFT?
Ans:

In order to set encrypted data in text fields, QTP offers the SetSecure function. SetSecure method decrypts the encrypted password first, then sets the original decrypted value in a password field, in contrast to the standard Set method, which sets the plain text in a text field.

Q: How to launch application in QTP/HP UFT?
Ans:

SystemUtil.Run is a built-in UFT command that enables users to launch an app or file. To launch a browser with a given URL , an application, or to open any file or path use the SystemUtil.Run command.

SystemUtil.Run ( Path, FileName, Operation, Parameters )








Recommendation for Top Popular Post :