| || |
testing COM components
My goal is to build a test application in visual basic to test com components written in c++(ATL COM). They do not have any user interface.
I'm looking for inputs on how to make this really generic so that it can be used for any kind of C++ component.
Is there a way to determine in VB the interfaces which will be exposed, like reading the type library etc. If APIs help, I'm willing to try those too.
Also looking forward to ideas on how you have gone about testing COM components without UI - esp. on a different env. Is building a customized app to suit one's need the best way to go? What are the other options?
What's the best tool for load testing C++ COM components?
Re: testing COM components
Take a look on xprogramming.com. They have some test running stuff in their download area. I made a test case harness using VB and later discovered that they have made one also.
What you need to do is write an app that calls a list of classes that implement the following interface
Startup - set the report handler, and stuff
Run - run the test caase
Shutdocun - free any variables
For Each oTestCase In colTestCases
oTestCase.Startup oReport, oDatabase, ...