Passing an Error to Final Builder from a script

Hello,

I am using VBScript to automate some tests and I'd like to be able to tell Final Builder when something has failed a test inside one of these scripts.  I have my script set to return an error code:

wscript.quit(2)

but Final Builder is not recognizing this as an error.  Any help would be greatly appreciated.

~Evelyn

How are you running the script? If you are using the Execute process then it should receive the returncode… if you add this code to the after action script event :

msgbox Action.ReturnCode

What do you see. Another option would be to run the script from within FinalBuilder using the Run Script action. Bear in mind that only some WScript methods are implemented… so WScript.Quit will not work, however you have full access to FinalBuilder variables in the script so you can set a FinalBuilder variable to the error code.

HTH