View Single Post
  #2  
Old 09-30-2004, 05:35 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
You can look at the LASTSTEP_STATUS which will be set to a non-zero code when the steps failed even if Ignore fail is set to True.

See this sample step for an example (See the vbld_StepDone event script code):

<step action='Run Script' type='0'>
<Language>VBScript</Language>
<Script>x = 1 / 0</Script>
<ignorefail type='11'>-1</ignorefail>
<indent type='3'>1</indent>
<name>Fail Step (viewing status in StepDone)</name>
<script><![CDATA[
Function vbld_StepDone()
Builder.LogMessage Application.ExpandMacros("%LASTSTEP_STATUS%")
End Function
]]></script>
</step>
Reply With Quote