Highlighted
Absent Member.
Absent Member.
181 views

Getting compliation error while adding TDAPIOLELIB.dll and using QCResourcefolder factory in UFT API

After adding a reference to API script OTA Com Type Library to connect QC from API test scripts , giving errors (Could not load type 'TDAPIOLELib.ITDConnection11' from assembly 'Interop.TDAPIOLELib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.)

We would like to develop some custom activites of Resource Download from QC and while using TDAPIOLELIb.dll its giving compilation errors as its not recognizing QCResourceFolderFactory  and TDConnection etc.,

Please let me know.

 

Tags (1)
0 Likes
4 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Hello,

 

This should be a known problem and you may find the detailed information about it from here:

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM00506593

 

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.

If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation

 

Regards,

Jackie Yang

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi there,

This is a known interoperability issue related to the .Net framework version used by UFT (4.0).

Alternatively, you can use "TDConnecctionClass" class instead of "TDConnection" class:

TDConnectionClass qcConn = new TDConnectionClass();

More Details:
  • Use "Interop.TDAPIOLELib.dll" NET assembly reference, instead of "OTA" COM reference:
    1. Go to test's "Solution Explorer > References"
    2. Remove any/all TDAPIOLELib references listed (right click on item, and select "Remove/Delete")
    3. Right click on "Solution Explorer > References", then select "Add references"
    4. Access ".NET Assembly Browser" tab
    5. Locate/Select: <UFT>\bin\Interop.TDAPIOLELib.dll

Regards,

Alvaro.

0 Likes
Highlighted
Absent Member.
Absent Member.

Hi Alvaro,

I have used TDConnecctionClass , but when using this getting compliation errors for QCResourceFolderFactory. How to mitigate this. 

0 Likes
Highlighted
Absent Member.
Absent Member.

I dont have permission to check this link. How can i get this info?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.