Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: General run error. tdc.InitConnectionEx sQCUrl

$
0
0

Hi PunatiSubbaRao,

 

I tried below code by applying few cosmetic changes and it is working fine.

 

I suspect URL provided in sQCURL is not correct.

 

sQCUrl = "http://almdev/qcbin"
sUsername = "MY_USER_ID"
sPassword = "DUMMY_PASSWORD"
sQCDomain = "MY_DOMAIN_NAME"
sQCProject = "MY_PROJECT_NAME"
Set tdc = CreateObject("TDApiOle80.TDConnection")   'tdc Object set successfully, and i can see sub objects availability
tdc.InitConnectionEx sQCUrl 
'at above line I am getting General run error
MsgBox "Initiated the ALM connection"
tdc.Login sUsername, sPassword          'QC Authentication
If (tdc.LoggedIn <> True) Then
 MsgBox "User " & sUsername & " Authentication to ALM is Fail"  
End If

tdc.Connect sQCDomain, sQCProject       'QC Project Login
MsgBox "Connected to the project"
If (tdc.Connected <> True) Then
 MsgBox "ALM Project Failed to Connect to " & sQCProject
End If

If tdc.Connected Then : tdc.Disconnect
If tdc.LoggedIn Then : tdc.Logout

 On the client machine from where you are executing this code.

 

 If you have QC install the below addins again and execute the program it should work fine.

 

QC.png

 

if you have ALM install the below two by running the files as administrator.

 

ALM.png

 

Let me know if you are still facing the same issue.

 

Regards,

Srihari

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>