cleaning up after failure

Ask general questions here.
bsing
Posts: 81
Joined: Tue Feb 07, 2012 5:25 am

cleaning up after failure

Post by bsing » Tue Aug 14, 2012 1:00 am

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.

zator
Posts: 53
Joined: Wed Jul 04, 2012 1:44 pm
Location: Kraków, POLAND

Re: cleaning up after failure

Post by zator » Tue Aug 14, 2012 7:45 am

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ł

bsing
Posts: 81
Joined: Tue Feb 07, 2012 5:25 am

Re: cleaning up after failure

Post by bsing » Thu Aug 16, 2012 12:04 am

Perfect! ... thankyou.