HP ALM
HP ALM Administration: Create Domain, Project & User
In order to work with ALM, you need to Create Domain Create Project Create Users In practice, these...
Step 1) Navigate to the ALM landing page (http://localhost:8181/qcbin/) and select 'Tools' as shown below.
Step 2) The Add-in page and 'HP ALM connectivity' link should be clicked.
Step 3) Click 'Download HP ALM Connectivity' link and the exe file would be downloaded in the specified location.
Step 4) Right click the downloaded file and 'Run as Administrator'.
Step 5) There won't be any installation wizard that the user has to go through if UFT is preinstalled. User only receives the installation status as shown below.
Step 1) Open UFT and you will notice the presence of ALM as one of the menus as shown below.
Step 2) Navigate the ALM menu and select ALM connection.
Step 3) ALM connection dialog opens.
Step 4) Upon successful authentication, the ALM files would be downloaded as we are establishing connection between ALM and UFT for the very first time.
Step 5) The ALM connection dialog waits for the user to select the domain and project.
Step 6) The ALM connection dialog displays the status.
Note: The Idea behind this chapter is to understand ALM and UFT integration and NOT to learn how to write UFT scripts.
Step 1) First step is to save the Main Driver Script into ALM from UFT. Navigate to 'File' Menu and choose 'New Test' as shown below.
Step 2) The New Test Dialog opens.
Step 3) The 'Select Location' Dialog opens up.
Step 4) The 'Select Location' Dialog opens up with the subfolders of 'Functional' Folder.
Step 5) The 'New Test' Dialog is displayed back to the user
Step 6) Now let us verify if the test has created successfully by logging into ALM.
Navigate to 'Test Plan' Module.
Step 7)Now start developing the Script in UFT and save the script which can be accessed in ALM by selecting 'Test Script' Tab of the created test.
Step 8) Next step is to save the associated function library files under '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 out of which one contains all functions related to the application and one which contains function which will help the users to generate the output text result file.
Step 9) We need to save the associated library files in ALM under 'test Resources'.
Step 10) The created test resource will be displayed to the user as shown below.
Step 11) Now we need to upload the .vbs onto the created test resource.
Step 12) The upload file dialog opens up.
Step 13) Upon uploading successfully, ALM displays the status to the user. Click 'OK'.
Step 14) The uploaded test resource can be viewed using 'Resource Viewer'.
Step 15) Repeat the steps 8 to 14 to upload one other function file associated with the test. After uploading the 'generateresult.vbs', the resource viewer would be displayed as shown below.
Step 16) Now we need to upload the relevant 'Object Repository' files under 'test resources' module, similar to how we have uploaded function libraries.
Step 17) The Test resource is created as shown below. Now user needs to upload the repository file.
Step 18) Now upload the shared object repository file.
Step 19) Upon uploading successfully, ALM displays the status to the user. Click 'OK'.
Step 20) The test resource can be viewed right from ALM as shown below.
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 tests cases. The designed Test data is shown as below. Now we need to upload the same in ALM.
Step 22) Create a new resource with name 'TestData' and select the type as 'test Resource' and select 'OK'
Step 23) As explained from step 17 to 19,uploadthe test data Excel file and uponsuccessful upload the Created 'test data' would be displayed as shown below.
Step 1) We have all the associated files loaded into ALM, we have to ensure that the automation script picks up the library file, OR and data file from ALM. Let us understand how to associate function libraries to the test script dynamically from ALM.
Step 2) The Object Repository also has to be picked up from 'Test Resources' Tab of ALM. Let us see how to load the Object repository dynamically during runtime.
Step 3) The Test Data has to be imported into the 'Global' Sheet of UFT. To perform the same we should ensure that we have the following piece of code before making an attempt to access the parameters mentioned in the data table.
Step 4) We Should ensure that we allow other HP products to interact with UFT. To perform the same, goto 'Tools' -> 'Options' as shown below.
Step 5) The Options Dialog opens up.
Step 1) Create a test suite in 'Test Lab' Module for execution. Let us create a 'New Folder' for automated test suite.
Step 2) New Folder would be created as shown below:
Step 3) Now we need to create a test set under the created folder.
Step 4) Like manual tests, after creating the test set, the test instances need to be added from Test Plan tree.
Step 5) The added test would be displayed as shown below.
Step 5) The automatic test runner dialog opens up. Let us understand all the available features within this window.
Click 'Run' to trigger the test.
Step 6) 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.
Step 1) The execution grid is displayed back to the user upon closing the 'Automatic Runner' dialog.
Step 2) The inbuilt UFT test report will be shown to the user.
Step 3) The detailed results can be accessed using 'Test Runs' module. Like manual tests, the detailed result displays all the information.
Step 4) The test also generates a text result file which can 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 the same perform the following:
Step 5) The text result file is opened in notepad. The result file will be displayed as shown below.
Download the UFT automation script used in this tutorial
Video on QTP integration with Quality Center
Notes:-
In order to work with ALM, you need to Create Domain Create Project Create Users In practice, these...
Once the test design is completed, test execution will take place with the help of Test Lab...
What is HP ALM? HP ALM (Application Life Cycle Management) is a web based tool that helps...
What is ALM? ALM is a process of specification, design, development, and testing of a software...
Management Tab helps users to organize and track releases and cycles. A release has a definite...
A Defect is logged during the test execution, when expected result and actual result don't match...