[qmtest] writing composite tests
Stefan Seefeld
seefeld at sympatico.ca
Mon Sep 8 18:59:40 UTC 2003
Mark Mitchell wrote:
> But, why do you have to change the Run interface? The Run method in the
> composite class could simply pass its result parameter down to the
> contained test classes. Wouldn't that work?
yes, sure. Then I'd write
def Run(self, context, result):
self.a.Run(context, result)
if result.GetOutcome() == result.FAIL:
return
self.b.Run(context, result)
which is a bit more verbose than just
def Run(self, context, result):
return self.a.Run(context, result) and self.b.Run(context, result)
Regards,
Stefan
More information about the qmtest
mailing list