Featured

Showing posts with label Quality Center. Show all posts
Showing posts with label Quality Center. Show all posts

0 Upload file in QC thru QTP


''// This function will upload any file into QC as attachment.

filepath="C:\Auto\Results\results_xyz_02.xls"

Public function z_attachtoQC(filepath)
                 Set nowTest = QCUtil.CurrentTestSet
                 Set attachmentPath = nowTest.Attachments
                 Set nowAttachment = attachmentPath.AddItem(Null)

                 'Replace with the path to your file:

                 nowAttachment.FileName = filepath
                 nowAttachment.Type = 1
                 nowAttachment.Post()

End Function

Read more

0 Cannot get RemoteAgent's ClassID for test type

' Cannot get RemoteAgent's ClassID for test type ' shown in QC when trying to run a QTP test.



Solutions :

Install QTP addin for QC from the QC help->Addin page. Take care to install the appropriate addin based on correct version of QTP.

In QTP, Tools -> Options -> Run
Check the checkbox for “Allow other HP prodoucts to run the test and components"

Restart the machine before trying.
Read more

0 OTA - Reading Name and Address from QC thru vbscript


This function retrives the user and address from QC thru OTA.

Public Function GetProjectUsersList()
    Dim td
    Dim custUsers As CustomizationUsers
    Dim USR As CustomizationUser
    Dim UList As List

        qcLoginID = ""
        qcPassword = ""
        qcUrl = ""
        qcDomain = ""
        qcProject = ""

            Set tdc = CreateObject("TDApiOle80.TDConnection")
            tdc.InitConnectionEx qcUrl
            tdc.Login qcLoginID, qcPassword
            tdc.Connect qcDomain, qcProject

           Set custUsers = tdc.Customization.users
            Set UList = custUsers.users          

            For Each USR In UList
                 MsgBox USR.Name + " : " + USR.Address
            Next USR
End Function
Read more

2 Connecting to QC Site Admin Api - SAClient.SaApi



Using VBScript:

Dim objSAClient, resp
Set objSAClient = CreateObject("SAClient.SaApi.9")
'you have to know which is the correct reference to the SiteAdmin

'then login as admin:
objSAClient.login "http://ipaddress/sabin", qcuser, qcpassword



NOTE:
If you want to know what is the reference for the SAAPI you have to go to the regedit, "HKEY_CLASSES_ROOT\SaClient.SAapi\CurrVer" and see what is the current version and use it.

For QC 9.2 : 
 The URL in the format http://[:]/sabin.

For QC 10.0 : 

 The URL in the format http://[:]/qcbin.
 
Read more

0 QC-Business Components fail to run

Failed :
Initialize_Script: You do not have permissions to run business components on this machine. You can change this option in your testing tool's Options dialog box.










Goto QTP Menu Tools>Options and do as below

Read more
  • Recent Posts

     
    © QTPCode | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
    Powered by Blogger