PDA

View Full Version : Execute Failure Step


keyboardmonkey
05-27-2003, 10:34 AM
I need to execute my failure step from JScript. I noticed in a previous thread that I should use
throw "Failure"
I keep getting the following message when I use it:
(Exception thrown and not caught)
I do have a failure step called "Failure".

Thanks

pjaquiery
05-27-2003, 03:49 PM
throw "Failure" raises an exception that is handled by the processing in the "Failure Steps" tab. I suspect that it doesn't matter what the text or object is that is thrown and that the failure processing is generic, it handles any failure during "Project Step" processing.

Assuming that to be the case, you can use any text you like for the throw and can then determine from the log where or why the throw happened. Note also that the steps in the "Failure Steps" processing can use %FAILSTEP_NAME% to determine where the failure happened.