Automated COM Object Testing
In theory, shouldn't there be a plethora of automated COM object "unit testers" available that automatically consume objects and their TLBs; present the user w/ simple UI display all methods, params and propers to allow them to write "scripts" to test improtant business processes (which are just conglomerates of objects/methods/props)?
because Visual Basic does such a good job of it. It has an object viewer, parameter validation, etc.
Absolutely, VB is a god-send for writing up test harnesses for all objects we create. But even after awhile, writing those test harnesses become mundane. Couldn't there be something automated (a generic test harness; object non-specific), easily distributable to a Q/A staff and simple enough to run/save scripts ... I think 'RationalRobot' (or something to that affect) is what I'm alluding to but something a lil' more accessible (cheap) and freely available?
If you writing the same VB code over and over then just write a META program to take your COM object and dynamically write the code for the VB app to test it. The .frm files in VB are just text files so they are easily constructed.
Michael H. Pryor
Empirix has a product called FirstAct that does COM object testing. It reads the type library and can synthesize data for the methods. http://www.empirix.com
Fog Creek Home