How to integrate UFT(QTP) with ALM (Quality Center)

โšก Smart Summary

Integrating UFT (QTP) with ALM (Quality Center) lets you drive functional automation scripts from a central test management platform. This resource explains the full roadmap: installing the connectivity add-in, connecting UFT to ALM, saving scripts and resources, configuring UFT settings, executing, and analyzing results.

  • ๐Ÿ”Œ Add-in Installation: Download and install HP ALM Connectivity so UFT can communicate with ALM.
  • ๐Ÿค Connect UFT and ALM: Use the ALM menu in UFT to log in to the server, domain, and project.
  • ๐Ÿ’พ Save Scripts: Store the driver script, function libraries, object repository, and data table in ALM.
  • โš™๏ธ UFT Settings: Load resources dynamically and allow other HP products to run tests.
  • โ–ถ๏ธ Execute and Analyze: Run the test set from Test Lab and review the UFT report and result files.

How to integrate HP UFT with HP ALM

  • ALM allows integration with other HP products such as HP UFT and HP LoadRunner.
  • HP UFT is a functional automation tool that supports automation of both Windows-based and web-based applications. It also supports multiple technologies such as .NET, Java, Siebel, SAP, etc.
  • In this section, we will understand how to drive UFT scripts from ALM. It consists of various configurations and steps.
  • The prerequisite for this module is that both ALM and UFT must have been installed.

Following is the roadmap one needs to follow in order to run UFT tests using ALM:

integrate UFT(QTP) with ALM

Part A โ€“ Add-in Installation

Step 1) Navigate to the ALM landing page (http://localhost:8181/qcbin/) and select ‘Tools’ as shown below.

Add-in Installation

Step 2) The Add-in page opens, and the ‘HP ALM Connectivity’ link should be clicked.

Add-in Installation

Step 3) Click the ‘Download HP ALM Connectivity’ link, and the exe file will be downloaded to the specified location.

Add-in Installation

Step 4) Right-click the downloaded file and select ‘Run as Administrator’.

Add-in Installation

Step 5) There will not be any installation wizard that the user has to go through if UFT is preinstalled. The user only receives the installation status as shown below.

Add-in Installation

Part B โ€“ Connecting UFT and ALM

Step 1) Open UFT and you will notice the presence of ALM as one of the menus as shown below.

Connecting UFT and ALM

Step 2) Navigate the ALM menu and select ALM Connection.

Connecting UFT and ALM

Step 3) The ALM connection dialog opens.

  1. Enter the ALM server URL.
  2. Enter the UserName.
  3. Enter the Password and click ‘Connect’.

Connecting UFT and ALM

Step 4) Upon successful authentication, the ALM files will be downloaded, as we are establishing a connection between ALM and UFT for the very first time.

Connecting UFT and ALM

Step 5) The ALM connection dialog waits for the user to select the domain and project.

  1. Select Domain.
  2. Select the project.
  3. Click ‘Login’.

Connecting UFT and ALM

Step 6) The ALM connection dialog displays the status.

  1. Connected to the Server, and lists the details about the server address and user name.
  2. Connected to the project, and lists the details about the project.
  3. Click ‘Close’.

Connecting UFT and ALM

Part C โ€“ Saving Script into ALM

  • Let us understand the various components that are required for executing a UFT script.
  • Main Driver Script โ€“ The entry point for any UFT script, which has a .mts extension.
  • Library โ€“ The relevant script/function files, which can be of extension (.vbs) or (.qfl).
  • Object Repository โ€“ It is usually a Shared Object Repository by nature and has a .tsr extension.
  • DataTable โ€“ Used for parameterizing the tests. Usually an Excel file.

Note: The idea behind this chapter is to understand ALM and UFT integration and NOT to learn how to write UFT scripts.

Saving Script into ALM

Step 1) The first step is to save the Main Driver Script into ALM from UFT. Navigate to the ‘File’ menu and choose ‘New Test’ as shown below.

Saving Script into ALM

Step 2) The New Test dialog opens.

  1. Select the type of test.
  2. Enter the Name of Test.
  3. We need to choose the location as ALM (by default it would display the UFT installed location). Click on the ‘Browse’ button.

Saving Script into ALM

Step 3) The ‘Select Location’ dialog opens up.

  1. Choose the ‘ALM Test Plan’ tab.
  2. Double-click the ‘Functional‘ folder to open its subfolders.

Saving Script into ALM

Step 4) The ‘Select Location’ dialog opens up with the subfolders of the ‘Functional‘ folder.

  1. Double-click the ‘Automation‘ folder.
  2. Click ‘Select’.

Saving Script into ALM

Step 5) The ‘New Test’ dialog is displayed back to the user.

  1. With the selected test location pointing to ALM.
  2. Click ‘Create’.

Saving Script into ALM

Step 6) Now let us verify if the test has been created successfully by logging into ALM. Navigate to the ‘Test Plan’ module.

  • You will notice that the test script ‘Guru99_Bank_Auto’ is created under the ‘Automation’ folder.
  • Under the details tab, we can also find that the test type is locked down as ‘QUICKTEST_TEST’, which means it is a UFT script.

Saving Script into ALM

Step 7) Now start developing the script in UFT and save the script, which can be accessed in ALM by selecting the ‘Test Script’ tab of the created test.

Saving Script into ALM

Step 8) The next step is to save the associated function library files under the ‘test resources’ module of ALM, which would be picked up automatically during execution.

For this script, we have two function libraries associated with the created test script, one of which contains all functions related to the application and one which contains functions that will help the users to generate the output text result file.

Saving Script into ALM

Step 9) We need to save the associated library files in ALM under ‘test Resources’.

  • Click the ‘New Resource’ button.
  • The ‘New Resource’ dialog opens up.
  • Enter the Name of the Function Library.
  • Select the type as ‘Function Library’.
  • Click ‘OK’.

Saving Script into ALM

Step 10) The created test resource will be displayed to the user as shown below.

Saving Script into ALM

Step 11) Now we need to upload the .vbs onto the created test resource.

  • Click ‘Resource Viewer’.
  • Click ‘Upload File’.

Saving Script into ALM

Step 12) The upload file dialog opens up.

  • Select the path where the .vbs file is located.
  • Select the file that has to be uploaded.
  • Click ‘Open’.

Saving Script into ALM

Step 13) Upon uploading successfully, ALM displays the status to the user. Click ‘OK’.

Saving Script into ALM

Step 14) The uploaded test resource can be viewed using ‘Resource Viewer’.

Saving Script into ALM

Step 15) Repeat steps 8 to 14 to upload the other function file associated with the test. After uploading the ‘generateresult.vbs’, the resource viewer would be displayed as shown below.

Saving Script into ALM

Step 16) Now we need to upload the relevant ‘Object Repository’ files under the ‘test resources’ module, similar to how we uploaded function libraries.

  1. Click the ‘New Resource’ module.
  2. The ‘New Resource’ window opens up.
  3. Enter the Name of the test resource.
  4. Select the type of the file as ‘Object Repository’.
  5. Click ‘OK’.

Saving Script into ALM

Step 17) The test resource is created as shown below. Now the user needs to upload the repository file.

  • Click the ‘Resource Viewer’ tab.
  • Click the ‘Upload File’ button.

Saving Script into ALM

Step 18) Now upload the shared object repository file.

  • Select the file where it has been stored.
  • Click the ‘Open’ button.

Saving Script into ALM

Step 19) Upon uploading successfully, ALM displays the status to the user. Click ‘OK’.

Saving Script into ALM

Step 20) The test resource can be viewed right from ALM as shown below.

Saving Script into ALM

Step 21) The last test resource that we need to upload is the ‘Test Data’ sheet, which contains the parameterized test.

For demo purposes, we have automated 4 test cases. The designed test data is shown below. Now we need to upload the same in ALM.

Saving Script into ALM

Step 22) Create a new resource with the name ‘TestData’, select the type as ‘test Resource’, and select ‘OK’.

Saving Script into ALM

Step 23) As explained from steps 17 to 19, upload the test data Excel file, and upon successful upload, the created ‘test data’ would be displayed as shown below.

Saving Script into ALM

Part D โ€“ Settings in UFT

Step 1) We have all the associated files loaded into ALM; we have to ensure that the automation script picks up the library file, object repository, and data file from ALM. Let us understand how to associate function libraries to the test script dynamically from ALM.

Settings in UFT

Step 2) The Object Repository also has to be picked up from the ‘Test Resources’ tab of ALM. Let us see how to load the object repository dynamically during runtime.

Settings in UFT

Step 3) The Test Data has to be imported into the ‘Global’ sheet of UFT. To perform this, we should ensure that we have the following piece of code before making an attempt to access the parameters mentioned in the data table.

Settings in UFT

Step 4) We should ensure that we allow other HP products to interact with UFT. To perform this, go to ‘Tools’ -> ‘Options’ as shown below.

Settings in UFT

Step 5) The Options dialog opens up.

  • Select the ‘GUI Testing‘ tab.
  • Select ‘Test Runs’.
  • Enable ‘Allow other HP products to run tests and components’.
  • Click ‘OK’.

Settings in UFT

Part E โ€“ Executing Scripts in ALM

Step 1) Create a test suite in the ‘Test Lab’ module for execution. Let us create a ‘New Folder’ for the automated test suite.

  • Select the ‘Test Lab’ module.
  • Select the folder under which we would like to create the new folder.
  • Click on the New Folder icon.
  • Enter the name of the folder.
  • Click OK.

Executing Scripts in ALM

Step 2) The New Folder would be created as shown below:

Executing Scripts in ALM

Step 3) Now we need to create a test set under the created folder.

  • Select the folder.
  • Click the ‘New Test Set’ button.
  • Enter the Name of the Test Set.
  • Click ‘OK’.

Executing Scripts in ALM

Step 4) Like manual tests, after creating the test set, the test instances need to be added from the Test Plan tree.

  • Select the created test set.
  • Click the ‘Select Tests’ button. The Test Plan tree opens up.
  • Select the test.
  • Click the ‘<=’ button.

Executing Scripts in ALM

Step 5) The added test would be displayed as shown below.

  • The added test displays the type of test as ‘QUICKTEST_TEST’ automatically.
  • Click the ‘Run’ button to trigger the execution.

Executing Scripts in ALM

Step 6) The Automatic Test Runner dialog opens up. Let us understand all the available features within this window.

  • Run all โ€“ Allows us to execute the test set completely.
  • Run โ€“ Allows us to execute only the selected test instance.
  • Run all tests Locally โ€“ The test would be kicked off on the local host. If unchecked, the user has the capability to enter the host name on which the tests have to be executed.
  • Enable Log โ€“ Creates an execution log file during the test run. To view the execution log after test execution, select ‘View Execution‘ from the ‘Run‘ menu of the same dialog.

Click ‘Run’ to trigger the test.

Executing Scripts in ALM

Step 7) UFT will be launched in the background while the script is being executed. The run status will be displayed once the test execution is completed as shown below. Close the window.

Executing Scripts in ALM

Part F โ€“ Analyzing the Results

Step 1) The execution grid is displayed back to the user upon closing the ‘Automatic Runner’ dialog.

  • With the test execution status updated.
  • The inbuilt UFT test report can be accessed by clicking the ‘Launch Report’ button.

Analyzing the Results

Step 2) The inbuilt UFT test report will be shown to the user.

Analyzing the Results

Step 3) The detailed results can be accessed using the ‘Test Runs’ module. Like manual tests, the detailed result displays all the information.

Analyzing the Results

Step 4) The test also generates a text result file, which can be accessed from the attachments section. The text file is generated by the script (test framework), which is NOT the inbuilt report of UFT. To access it, perform the following:

  • Select the ‘Run ID’.
  • The ‘Run details’ dialog opens up.
  • Go to the ‘Attachments’ section.
  • A result file will be available for the users to download. Double-click on the text file.

Analyzing the Results

Step 5) The text result file is opened in Notepad. The result file will be displayed as shown below.

Analyzing the Results

Download the UFT automation script used in this tutorial

Video on QTP integration with Quality Center:

Click here if the video is not accessible.

Notes:

  • Quality Center provides many features like copying test steps, emailing scripts for review, adding attachments, etc., to facilitate faster development of test cases.
  • You can create a script in automation tools like QTP and LoadRunner, and then upload and store them in Quality Center.
  • You can also directly convert a Manual Test Script in Quality Center into an Automated Script.

Click here if the video is not accessible

FAQs

AI enhances test automation through self-healing object locators, failure prediction, and smart test prioritization. This reduces the maintenance of UFT scripts that are integrated with ALM and helps teams focus on high-risk areas.

No. AI augments test authoring and result analysis, but ALM still centralizes test assets, execution, and reporting, while UFT drives the functional scripts. The integration remains the backbone of the workflow.

UFT is a functional test automation tool that runs scripts against applications. ALM, or Quality Center, is a test management platform that stores, schedules, executes, and reports on those tests in one place.

QUICKTEST_TEST is the test type ALM assigns to a UFT (formerly QuickTest) script. It identifies the test as an automated UFT test rather than a manual one, so ALM runs it through UFT.

Summarize this post with: