Page 1 of 1

Conditional test steps without user code

Posted: Tue Apr 14, 2015 10:13 am
by andrei_t
Is there a way to run specific test steps only when a variable meets a defined condition?
Case in point, we currently employ a data binding with a variable for the different browsers. The SETUP starts the browser and then we have catch-all steps to deal with the ssl certificate messages for all browsers which naturally wasted a lot of time because only 1-2 steps are actually executed (in each test case).

Re: Conditional test steps without user code

Posted: Tue Apr 14, 2015 11:22 am
by odklizec
Hi,

Basically, there is no way to conditionally execute test steps without using user code. Is there any particular reason why you want to avoid user code? It should be relative easy to create user code to do what you want.

Do you have all steps in one recording? Any chance you could share the project or at least show us the recording in question?

Re: Conditional test steps without user code

Posted: Tue Apr 14, 2015 2:20 pm
by andrei_t
The only reason is to keep things as simple and tool-assisted as possible. I would imagine that such a feature (namely an expression needs to be true for a step to be executed) should be rather simple to implement and would help the readability of the test cases greatly.

Anyway, thanks for the quick reply, I guess we will have to resort to user code then.