Page 1 of 1

Conditional execution of recorded steps

Posted: Fri Jul 13, 2012 7:49 am
by Christoph
Hi,

Is it possible, and if yes, how, to only execute recordes steps depending on a condition in one of the steps? I know I can convert the steps into a single user code and then handle everything there with code. But with this approach I loose the easy recorder interface to add, delete, reorder actions. I think it is easier to understand what'g going on when looking at the steps in the recorder than reading code.

This is the scenario:
- Take elements from the repository and create a recording (or take an actual recording and clean it up)
- In one of the steps I'd like to check a condition and if not met skip the remaining steps in the recording.

Christoph

Re: Conditional execution of recorded steps

Posted: Fri Jul 13, 2012 2:48 pm
by Support Team
Hello Christoph,

You can try to use the Error behavior setting 'Continue with parent' to skip the actual test case if a failure occurs. The test will then continue with the next test case. Unfortunately you can only realize conditions in the UserCode.

Regards,
Bernhard
Ranorex Support Team