Fog Creek Software
Discussion Board




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)?

Why is it so hard to find even one?

Thanks,
Matt

Matt
Wednesday, January 02, 2002

because Visual Basic does such a good job of it. It has an object viewer, parameter validation, etc.

In fact if you don't want to pay for VB, almost everybody has Word or Excel which has VBA built in which is just as good for testing COM objects.

Joel Spolsky
Wednesday, January 02, 2002

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?

Matt
Wednesday, January 02, 2002

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
Friday, January 04, 2002

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 

Kevin
Monday, January 07, 2002

*  Recent Topics

*  Fog Creek Home