resource extension classes

J.T. Conklin jtc at acorntoolworks.com
Tue Jan 18 02:10:47 UTC 2005


I'm writing a unit test suite for our distributed system.  Until now,
each component has been tested individually, but now I'll be testing
components that interact together.  We're using CORBA as our middle-
ware layer, so things like initializing the CORBA Naming Service seem
like good fits for QMTest's resource extension class.

I've never used resource classes before, so to get my feet wet I wrote
one that inherited from "Resource" with null SetUp() and CleanUp()
methods.  I was able to register it without problems, but it doesn't
show up in the Resource drop down when I try to add/edit tests.  The
temporary.TempDirectoryResource that "qmtest extensions" says is
present isn't listed either.

Assuming I can get past listing the resource, does anyone have advise
they could share on how resources should spawn executables on SetUp()
and reap them on CleanUp()?  Is there any QMTest or Python classes to
assist?

Many thanks,

    --jtc

Details:
        QMtest 2.2
        Python 2.3.4
        NetBSD/amd64 2.0

-- 
J.T. Conklin



More information about the qmtest mailing list