| || |
Changes to OTA API in 9.0 for login
I raised the following with Mercury support last week but not response so far. I just wondered if anyone else had experienced the changes to the OTA API in QC9.0 and knew how to retrieve the Domain and Project lists after authentication. Pre 9.0 these properties were available as soon as you connected. Now you have to authenticate first, but I still havent been able to access them.
Cannot get DomainList in QC 9.0 OTA API
Attempting to retrieve the DomainList property of the TDConnection object results in the error 'Failed to get Domain List'.
This always worked fine on versions of TD/QC prior to 9.0. I have tried both the new API functions and setting the backwards compatibility flag BACKWARD_SUPPORT_ALL_DOMAINS_PROJECTS as per the ReadMe.
I need to be able to retrieve the DomainList and ProjectsList properties.
Sample code that shows the problem below:
set tdc = CreateObject("TDAPIOLE80.TDConnection.1")
tdc.Login "admin", "password"
msgbox "Connected and logged in"
msgbox tdc.DomainName ' this is fine
msgbox tdc.DomainsList.Count ' error occurs here
Re: Changes to OTA API in 9.0 for login
Use VisibleDomains and VisibleProjects, they work a bit better...
No real reason to change implementation of these but ...