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
User is allowed options to reconnect to the QC Server, and authenticate on start up and login to project automatically once QTP is launched.
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.
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.
good........
ReplyDeleteI wish there were a like button. lol
DeleteThanks, your comments are more than like for me
DeleteSir , what do we mean by 'Qcurl' here. Can you please elaborate?
ReplyDeleteHi Vinay,
ReplyDeleteBy QCurl is the url of QC server we need to connect to.
It would give clear picture on qc-qtp integration for the beginners....
ReplyDeleteThank a lot....
Thanks Rajan for appreciating.
DeleteNice post.Thank you so much for sharing this.We providing Best QTP & QC Online Training.for more visit QTP&QC Online Training
ReplyDelete