Blog to understand automation concepts in QTP, Selenium Webdriver and Manual Testing concepts

How to integrate QTP 11 with Quality Center/ALM

HP ALM 11 or Quality Center is used as a test management tool in which we can store tests, function Libraries, test data, object repository, recovery scenario and much more. Below are some of the features in QTP required to connect to Quality Center and various options in QTP regarding QTP-QC Integration

Integration between QC and QTP

QTP can connect to a project stored in ALM through VBScript Code or through QTP IDE as explained below:

Through Code

Below code creates a connection to QC. This will validate if a connection to QC already exists and in case not connected than connects to the required project in QC

Public Functionfunc_ConnectQCQTP(QCurl,Domain,ProjectName,UserName,Password)

Set qtApp = CreateObject("QuickTest.Application") 

If  qtApp.launched <> True then 

    qtApp.Launch 

End If

qtApp.Visible = "true"

If Not qtApp.TDConnection.IsConnected Then

   qtApp.TDConnection.Connect QCurl,Domain,ProjectName,UserName,Password,False

End If

Set qtApp = nothing

End Function


Through QTP Interface


Go to File>ALM/QC Connection as shown below and create the connection.

Connecting to QC from QTP



Connecting to QC from QTP

User is allowed options to reconnect to the QC Server, and authenticate on start up and login to project automatically once QTP is launched.

Version Control in QC


In case of test stored in QC,version controlling the test script is very useful,so that test can be open by one user at a time and previous versions of test are available and can revert to previous version in case of issues. In case of version control, a test will open in read only mode and changes in script can be done only post checking out the script, and once changes are incorporated, changes should be checked in.




 Ignoring QC browser

In case of descriptive programming, there can be issues in object identification in case of QC browser if not ignored. QC Browser can be ignored making following settings:
Go to tools>Options>Web and select checkbox to ignore QC browser as shown below






Execution of Test from Quality Center Test Set


Below settings is required to run tests from Quality Center Test Set in QTP.

8 comments:

  1. Replies
    1. I wish there were a like button. lol

      Delete
    2. Thanks, your comments are more than like for me

      Delete
  2. Sir , what do we mean by 'Qcurl' here. Can you please elaborate?

    ReplyDelete
  3. Hi Vinay,

    By QCurl is the url of QC server we need to connect to.

    ReplyDelete
  4. It would give clear picture on qc-qtp integration for the beginners....
    Thank a lot....

    ReplyDelete
  5. Nice post.Thank you so much for sharing this.We providing Best QTP & QC Online Training.for more visit QTP&QC Online Training

    ReplyDelete