Quality Center - QC-QTP 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.

QTP QC 1

Step 2 − Click on "More HP ALM Addins" Link from the addins page as shown below.

QTP QC 2

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.

QTP QC 3

Step 4 − Establish a connection between QTP and QC by Navigating to "File" >> "ALM/QC Connection".

QTP QC 2

Step 5 − HP ALM Connection dialog opens. Enter the Server URL as shown in the below example.

QTP QC 3

Step 6 − Once the URL is correct, the credentials dialog opens. Tester has to connect to the relevant project area.

QTP QC 4

Step 7 − Once ALM Connection is successful, we need to save the Driver Script in Quality Center. Select ALM/QC Plan as shown below.

QTP QC 5

Step 8 − Once the test is saved, we can see the in ALM where the test type is shown as "Quick Test".

QTP QC 6

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.

QTP QC 7

Step 10 − The other necessary component that is required for script execution is Library files which can be placed under "Test Resources" Folder.

QTP QC 8

Step 11 − The Function Library file can be added by creating a new resource of type ".qfl" or ".vbs".

QTP QC 9

Step 12 − The Added library file can be accessed in quality Center using resource Viewer.

QTP QC 11

Step 13 − If there are more library files, the same is added by creating a new resource of type ".qfl" or ".vbs".

QTP QC 10

Step 14 − Once again, Added library file can be accessed in quality Center using resource Viewer.

QTP QC 12

Step 15 − The Next dependent component for any script execution is "Object Repository" which is again placed under "Resources" section

QTP QC 13

Step 16 − The added Object Repository and its properties can be viewed using "Resource Viewer".

QTP QC 14

Step 17 − The Datatable, parameterized data setup also be placed in Quality Center under "Test Resources" section.

QTP QC 16

Step 18 − The added data Table can be viewed using in "Resource Viewer"

QTP QC 17

Step 19 − 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.

QTP QC 15

Step 20 − The Test Settings dialog opens. Navigate to Resources Tab and select the Datatable that we added in Step 16.

QTP QC 24

Step 21 − 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 bound dynamically.

QTP QC 23

Step 22 − Now, we should allow QTP to interact with other HP Products. This will allow QTP to interact with Quality Center. Go to "Tools" >> "Options"

QTP QC 18

Step 23 − Now, enable "Allow other HP products to run tests and components" as shown below.

QTP QC 19

Step 24 − 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.

QTP QC 20

Step 25 − Upon clicking on "Run", the automatic runner opens and enable "Run all tests locally" and hit "Run".

QTP QC 21

Step 26 − Once execution is complete, the test result is displayed on the same "Automatic Runner" dialog.

QTP QC 22

Step 27 − In Test Lab QTP report is loaded automatically. User can click on "Launch report" to get to know about more details of the execution.

QTP QC 23
Advertisements