Alm Uft
Alm Uft
Alm Uft
(Quality Center)
In this section we will understand how to drive UFT scripts from ALM.
It consists of various configurations and steps.
Prerequisite for this module is that both ALM and UFT must have been
installed.
Following is the roadmap one needs to follow in oder to run UFT tests using
ALM
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 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.
2.
3.
Step 5) The ALM connection dialog waits for the user to select the domain
and project.
1.
Select Domain
2.
3.
Click 'Login'
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'
Main Driver Script The Entry point for any UFT Script that has .mts
extension.
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.
2.
3.
We need to choose the location as ALM (by default it would display the
UFT installed location). Click on 'Browse' Button.
2.
2.
Click 'Select'.
2.
Click 'Create'.
Step 6) Now let us verify if the test has created successfully by logging into
ALM.
Navigate to 'Test Plan' Module.
You will notice that the test script 'Guru99_Bank_Auto' is created under
'Automation' folder.
Under details tab, we can also find that the test type is locked down as
'QUICKTEST_TEST' which means it is an UFT script.
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 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.
1.
2.
3.
4.
5.
Click 'OK'
Step 17) The Test resource is created as shown below. Now user needs to
upload the 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 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 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 automatic test runner dialog opens up. Let us understand all the
available features within this window.
Enable Log Creates an execution log file during the test run. To view
the execution log after text execution, Select 'View Execution' from
'Run' menu of the same dialog.
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 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.