ecrespo
13 years agoOccasional Contributor
COM API testing - No GUI - .NET
I would like to test a COM API without GUI using TestComplete, is this possible?
All the objects needed to test the Windows application are contained in a .tlb file, which is registered when the Application is installed in the system.
I was looking into using external DLLs, but it seems rather cumbersome in this case if I have to redefine/register all the new custom types (structures) to use TestComplete.
Originally, some of the testing was done by writing exel macros in VBA and once the library was loaded into the references, the program could be launched simply as:
Set SCApp = New (MyLibraryName).Application
Then all the Application objects, properties, and methods were accessible. For example, to create a point with coordinates xcoor, ycoor, zcoord
Dim SCModel as (MyLibraryName).Model
Dim xcoor As Variant, ycoor As Variant, zcoor As Variant
Set SCModel = SCApp.Document.Model
...
SCModel.Points.AddAutoGlobal xcoor, ycoor, zcoor
All the objects needed to test the Windows application are contained in a .tlb file, which is registered when the Application is installed in the system.
I was looking into using external DLLs, but it seems rather cumbersome in this case if I have to redefine/register all the new custom types (structures) to use TestComplete.
Originally, some of the testing was done by writing exel macros in VBA and once the library was loaded into the references, the program could be launched simply as:
Set SCApp = New (MyLibraryName).Application
Then all the Application objects, properties, and methods were accessible. For example, to create a point with coordinates xcoor, ycoor, zcoord
Dim SCModel as (MyLibraryName).Model
Dim xcoor As Variant, ycoor As Variant, zcoor As Variant
Set SCModel = SCApp.Document.Model
...
SCModel.Points.AddAutoGlobal xcoor, ycoor, zcoor