I'm capturing the data from the session.Storage and I would like to fail the step if the data for the item that I am returning is null. Is there a way to make the step fail within the custom action?
Answer by Victor F. ·
Hello Michael, You can make it so if it finds the validation or object it will skip a particular action(s).
This is done by doing custom code script.steps[index].actions[index].type = 'do not execute';
The index's start at 0, so for step 2 it would be 1.
Answer by Michael P. ·
I've found the way to fail the step but I now have a support ticket to see if I can mark the step as failed and continue with the other steps as they are not dependent of the failed step and then I don't have to create multiple scripts just to test the individual pieces that load with this site.