Resource creation

Lewis, Pat H. Pat_Lewis at Invesco.com
Thu Aug 28 20:42:05 UTC 2003


I am having problems with creating resources when using the GUI.  If I have
a test that relies on a resource, when I run the test the first time,
everything works as expected.  The resource is created and destroyed
properly.  However, on the second (and subsequent) 'Run', it appears that
the SetUp method of the resource is not called.  However, the CleanUp method
is called on each subsequent run.

I have a really simple resource to demonstrate the problem.

----
import qm

class StupidResource(qm.test.resource.Resource):
    "A resource to verify that I am not crazy."

    def SetUp(self, context, result):
        print 'Setting up StupidResource'

    def CleanUp(self, result):
        print 'Cleaning up StupidResource'
----

When a test uses this resource, running the test multiple times only prints
the 'Setting up StupidResource' once.

Any ideas or suggestions?  Am I missing something really obvious?  Thank
you.

-- 
Patrick Lewis				INVESCO Institutional
502-561-3295				502-587-5790 fax



More information about the qmtest mailing list