Page 1 of 1

cleaning up after failure

Posted: Tue Aug 14, 2012 1:00 am
by bsing
Hi there,

I have a recording module that checks that all the Access Keys on a form work correctly. If one fails the execution jumps to the next test case which is fine. However I need to cleanup the state of my test (close the form) in order for the next test case to run smoothly. Is there a way that when an error is detected it can jump to a another recording module to cleanup the form? (e.g like a try / catch). I could do this in code, but am using recording modules.

Re: cleaning up after failure

Posted: Tue Aug 14, 2012 7:45 am
by zator
Hi,

I think that you should mark closing form recording with "teardown" region. You can read about this here:
http://www.ranorex.com/support/user-gui ... suite.html ->Setup and Teardown Regions

Paweł

Re: cleaning up after failure

Posted: Thu Aug 16, 2012 12:04 am
by bsing
Perfect! ... thankyou.