I am trying to execute a script via the command line, and return back the exit code, so i will know if the script was a success or not? I assumed the exit code for a success would be 0, but it dosn't seem to be the case. Does anyone know the success exit code for silktest.
That's not really an option, see what I am doing is creating a empty script with an empty testcase called "Compile" and the function of this script is tell us that the automation can compile, so then we then can fire off our unit test's against the framework. I am using Visual Build to automate this and i'm trying to using the exit code to tell me if the script has compiled with success of not. but even if i have an error, i still get the same exit code back.
If you compile, and run a simple function that saves a flag to a file, that will tell you if it worked. If the code does not compile, the function will not run, the file will not be created, and you know that the compile failed.
This can be done by simply calling .t file from the command line to execute it. SilkTest compiles the code before running anything.
I don't think the SilkTest error codes are advanced enough to say if the compiled worked or not.