We can connect to QC from QTP through QTP File options or direct Icon on QTP window.
Go to your QTP File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to which you want to connect.
Note:Check the Option to Auto connect to QC with each QTP session , in order to avoid entering these details again & again.
Source: http://www.geekinterview.com/question_details/81672
Step 1 : Navigate to ALM home page and click on "Tools" from the list of links.
Step 2 : Click on "More HP ALM Addins" Link from the addins page as shown below.
Step 3 : In the Addins page, select "Addins for HP applications" and choose "Quick Test Professional". In case of "Unified Functional testing" (UFT), choose the options appropriately and install the addins. The Installation is similar to HP-MS Office Addins.
Step 4 : Establish a connection between QTP and QC by Navigating to "File" >> "ALM/QC Connection".
Step 5 : HP ALM Connection dialog opens. Enter the Server URL as shown in the below example.
Step 6 : Once the URL is correct, the credientials dialog opens. Tester has to connect to the relevant project area.
Step 7 : Once ALM Connection is successful, we need to save the Driver Script in Quality Center. Select ALM/QC Plan as shown below.
Step 8 : Once the test is saved, we can see the in ALM where the test type is shown as "Quick Test".
Step 9 : Upon Navigating to "Test Script" Tab which appears only if the test type is of "Quick Test", The script shown in QTP screen would be displayed in Quality Center as well.
Step 9 : The other necessary component that is required for script execution is Library files which can be placed under "Test Resources" Folder.
Step 10 : The Function Library file can be added by creating a new resource of type ".qfl" or ".vbs" .
Step 11 : The Added library file can be accessed in quality Center using resource Viewer.
Step 12 : If there are more library files, the same is added by creating a new resource of type ".qfl" or ".vbs".
Step 13 : Once again, Added library file can be accessed in quality Center using resource Viewer.
Step 14 : The Next dependant component for any script execution is "Object Repository" which is again placed under "Resources" section.
Step 15 : The added Object Repository and its properties can be viewed using "Resource Viewer".
Step 16: The Datatable, parameterized data setup also be placed in Quality Center under "Test Resouces" section.
Step 17 : The added data Table can be viewed using in "Resource Viewer".
Step 18 : The Datatable should now also be mapped to the test settings so that they can be picked while execution. The same can be done using "Settings" of "File" Menu.
Step 19 : The Test Settings dialog opens. Navigate to Resources Tab and select the Datatable that we added in Step 16.
Step 20 : Now we can access those test resources that are uploaded in Quality Center in QTP script as shown below. The Libraries files and Object Repositories are binded dynamically.
Step 21 : Now, we should allow QTP to interact with other Hp Products. This will allow QTP to interact with Quality Center. Goto "Tools" >> "Options"
Step 22 : Now, enable "Allow other HP products to run tests and components" as shown below.
Step 23 : The Next Step is to add the test in "Test Lab" and execute the test. The Procedure to Add tests into Test Lab remains the same as that of manual tests.
Step 24 : Upon Clicking on "Run", the automatic runner opens and enable "Run all tests locally" and hit "Run".
Step 25 : Once execution is complete, the test result is displayed on the the same "Automatic Runner" dialog.
Step 26 : In Test Lab QTP report is loaded automatically. User can click on "Launch report" to get to know about more details of the execution.
Go to your QTP File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to which you want to connect.
Note:Check the Option to Auto connect to QC with each QTP session , in order to avoid entering these details again & again.
Source: http://www.geekinterview.com/question_details/81672
-----------
Connect UFT to ALM:
http://www.guru99.com/hp-alm-integrate-uft.html
QTP and QC:
source: http://www.tutorialspoint.com/qc/qtp_qc_integration.htm
QTP-QC Integration:
In this section, we are going to learn how to integrate QTP and QC. By Integrating, the QTP automation scripts can be executed right from Quality Center. For establishing a connection, first step is to install the required Addins. We will understand how to integrate by taking a sample QTP script and execute it from QC.Step 1 : Navigate to ALM home page and click on "Tools" from the list of links.
Step 2 : Click on "More HP ALM Addins" Link from the addins page as shown below.
Step 3 : In the Addins page, select "Addins for HP applications" and choose "Quick Test Professional". In case of "Unified Functional testing" (UFT), choose the options appropriately and install the addins. The Installation is similar to HP-MS Office Addins.
Step 4 : Establish a connection between QTP and QC by Navigating to "File" >> "ALM/QC Connection".
Step 5 : HP ALM Connection dialog opens. Enter the Server URL as shown in the below example.
Step 6 : Once the URL is correct, the credientials dialog opens. Tester has to connect to the relevant project area.
Step 7 : Once ALM Connection is successful, we need to save the Driver Script in Quality Center. Select ALM/QC Plan as shown below.
Step 8 : Once the test is saved, we can see the in ALM where the test type is shown as "Quick Test".
Step 9 : Upon Navigating to "Test Script" Tab which appears only if the test type is of "Quick Test", The script shown in QTP screen would be displayed in Quality Center as well.
Step 9 : The other necessary component that is required for script execution is Library files which can be placed under "Test Resources" Folder.
Step 10 : The Function Library file can be added by creating a new resource of type ".qfl" or ".vbs" .
Step 11 : The Added library file can be accessed in quality Center using resource Viewer.
Step 12 : If there are more library files, the same is added by creating a new resource of type ".qfl" or ".vbs".
Step 13 : Once again, Added library file can be accessed in quality Center using resource Viewer.
Step 14 : The Next dependant component for any script execution is "Object Repository" which is again placed under "Resources" section.
Step 15 : The added Object Repository and its properties can be viewed using "Resource Viewer".
Step 16: The Datatable, parameterized data setup also be placed in Quality Center under "Test Resouces" section.
Step 17 : The added data Table can be viewed using in "Resource Viewer".
Step 18 : The Datatable should now also be mapped to the test settings so that they can be picked while execution. The same can be done using "Settings" of "File" Menu.
Step 19 : The Test Settings dialog opens. Navigate to Resources Tab and select the Datatable that we added in Step 16.
Step 20 : Now we can access those test resources that are uploaded in Quality Center in QTP script as shown below. The Libraries files and Object Repositories are binded dynamically.
Step 21 : Now, we should allow QTP to interact with other Hp Products. This will allow QTP to interact with Quality Center. Goto "Tools" >> "Options"
Step 22 : Now, enable "Allow other HP products to run tests and components" as shown below.
Step 23 : The Next Step is to add the test in "Test Lab" and execute the test. The Procedure to Add tests into Test Lab remains the same as that of manual tests.
Step 24 : Upon Clicking on "Run", the automatic runner opens and enable "Run all tests locally" and hit "Run".
Step 25 : Once execution is complete, the test result is displayed on the the same "Automatic Runner" dialog.
Step 26 : In Test Lab QTP report is loaded automatically. User can click on "Launch report" to get to know about more details of the execution.
I have faced the issue while loading Datatable because it is not the same way how you load library files and object repository in ALM.
ReplyDeleteTo load the DataTables, you first need to add resource and then go to the resource view to upload file the Excel file in the ALM. Make sure the Resource name and Excel file name matches, to avoid confusion.
Another I have faced is with the Add in: Please find below steps I followed to successfully connect ALM to UFT(in a high level)
ReplyDelete1. Write script in UFT.
2. Using ALM in the menu bar in UFT, connect to the ALM project.
3. Save the Test Scripts, Reposiotry, Data tables and Libraries as mentioned above and in the comments.
4. Go to tools->options and then gui test runs to select "allow other HP tools to run the script" option
Even after doing all these I was not able to run the scripts from ALM: The issues I faced are:
1. ALM add in should be installed along with UFT(not the one we get in ALM addins page) --- I re-Installed UFT so I was able to see saved UFT scripts in ALM
2. Getting time slot error???
When I run QTP script from ALM, I am getting the error as:
ReplyDelete"You cannot run the test as you do not have sufficient permission to create or update the performance testing timeslot. For more information, contact administrator". How to fix it?
#PermissionError: I have found the fix(from TestingServices).
ReplyDeleteSee I was running the scripts from Training_handson project in ALM and Test set type was "functional".
As per HP team, since the test set was of type "functional" one cannot run the scripts in Training_Handson project. If one needs to run the scripts in Training_Handson project, test set type has to be selected as "default". Because of test set type mismatch, I was getting permission error.
And if you wanted to run the test sets of any type, you should have own project in ALM.
Support team email says: If you want to use ALM Functional test feature, you can only do it from your own QC project, that is added to UFT remote hosts.
Note 1: Looks HP does not want the users of Training_Handson project to use UFT that are installed in remote. That might lead to lots of traffic.
My next question what does Test set type "functional" mean and how is it different from 'default" type?