[qmtest] Saving output from a resource setup/cleanup

Mark Mitchell mark at codesourcery.com
Wed Jul 27 21:00:40 UTC 2005


Craig, Dave wrote:
> Is there a way to obtain the output from a resource setup/cleanup
> script?  I've hacked a new resource that inherits from both Resource and
> ExecTest that saves and presents its output for just the setup script in
> QMTest 2.2.  Is there something else that is less of hack that anyone
> else has found?

In general, I've been wondering whether it should be possible to create 
a resource using a test class; the semantics in that case, would be that 
the Run() function is used, but there is no cleanup function.  Then, all 
test classes would be instantly usable as resource classes.

(I don't think it really makes sense to go in the other direction; if 
the resource class has a cleanup method then presumably its doing 
something important, and we can't just ignore it.  You could run the 
cleanup immediately, I guess.)

Do people think this is a good idea?

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



More information about the qmtest mailing list