The partner command can be used to run SilkTest scripts from the command line. However, the command returns immediately and does not wait for the the script to complete execution. So, how to know when the script is completed?
I want to write a batch file that calls this silktest script. Depending on whether the script passes or fails, I want to do something in the batch file. But how can the batch file know when the script execution is complete?
The other question is how can the batch file know the result of the SilkTest execution? Did it pass or did it fail? Is there a cleaner way than writing the script result to a text file (using -resextract option) and reading/parsing that file? Does partner command return a value?
Maybe you could structure the testcase such that it uses do except. You could write out to a file if the test fails. Then you could check the results file and see if the test passed or not. So it might look something like this.
WriteToFile(hFILE, "Wrong Page Name")
I don't currently have SilkTest installed but you can implement something in TestCaseExit() or ScriptExit to determine if there were any failures. There are some SilkTest built in functions to do this. Then write the value to a text file or however you wish to handle it.
As far as knowing when a script is done, you can poll for the existance of the .jou file in your results directory. Or you could also go the ScriptExit or TestPlanExit route and execute something there.
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.