Calling DLL Objects from TestComplete
I am currently trying to call an object from a DLL but not sure how best to do it in TestComplete. There is a DLL that our development team has produced (CompassAPI.dll) which is a COM object. I would like to load this DLL and call objects/functions from this DLL.
I believe this is what I need:
However, I am struggling to follow the tutorial - not sure if I need to do all the steps in the tutorial for my case.
Here is a quick test that I want to do (as described in the API guide):
'Create the API session Set pCProphAPISession = New ProphAPISession 'Call the logon method to start an API session Call ProphAPISession.Logon("User")
How can I load the DLL in TestComplete and start calling the objects as above? I am currently trying to write equivalent DelphiScript but in fact, any scripting language should be fine.
I also read about accessing COM objects in TestComplete but I have no idea about ProgID or CLSID:
https://support.smartbear.com/testcomplete/docs/scripting/working-with/com-objects.html
Any help or pointers to get me started would be much appreciated. Thanks.