[qmtest] resource extension classes

Mark Mitchell mark at codesourcery.com
Wed Jan 19 20:38:56 UTC 2005


J.T. Conklin wrote:
> jtc at acorntoolworks.com (J.T. Conklin) writes:
> 
>>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.
> 
> 
> OK, I'm an idiot.
> 
> I assumed that I could use the resource class name directly from the
> edit test pane, but you must create a resource *.qma file to wrap it
> first.  Once I created the resource, it showed up in the edit test 
> pane.

OK, good; that makes sense.  Resources are objects.  I don't remember if 
the GUI has a "Create Resource" choice; if it does, you should have been 
able to create it from the GUI, just as you would create a test.  If it 
doesn't, it would be good if you'd file a bug in our online tracking system.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the qmtest mailing list