Create a conditional step in an Alchemy test

Posted 5 months ago by David

Post a topic
Answered
David Rumley
David Admin

What do I mean by conditional step?  Consider this pseudocode:


Pure sequential execution:

  1. Execute Step 1 Navigate to somewhere
  2. Execute Step 2 Resize browser


Conditional Execution:

  1. IF Execute Step 1 navigate to somewhere is successful
    1. THEN
    2. Execute Step 2 Resize browser

Hopefully that gives you the idea.  There are 2 ways to accomplish this in an Alchemy test.  


OPTION 1 (use menu)

  1. select the checkbox to the left of step 2
  2. choose "Convert to Conditional" from the menu

Option 2 (drag-and-drop step)

  1. see video (drag step up and over to the right)




Also see full use case video at: Conditional Video



1 Votes

Mason Lopez

Mason posted 4 months ago Best Answer

Also note that in the example above, if the Navigate step fails, the test will fail...UNLESS the user clicks the Navigate step's eyeball, and then changes the Error Threshold to "Warn and continue".

1 Votes


2 Comments

Sorted by
Bob Dog

Bob posted 4 months ago

For OPTION 1, the user can also select multiple sequential steps, then use "Convert to Conditional" from the menu, and all the selected steps will be included in the "IF".  The thing to remember is that the step just previous to the group of selected step(s) will be the step that makes the decision whether or not to execute the conditional steps that the user has selected.  Hope that makes sense...

0 Votes

Mason Lopez

Mason posted 4 months ago Answer

Also note that in the example above, if the Navigate step fails, the test will fail...UNLESS the user clicks the Navigate step's eyeball, and then changes the Error Threshold to "Warn and continue".

1 Votes

Login or Sign up to post a comment

© Orasi Software, Inc. | All Rights Reserved.