How can I use the command line to extract results to a text file?
An example of how to use the command line to extract results to a text file is shown below.
partner -opt "options.opt" -proj "test.vtp" –q -resextract -r "script.t"
In this example the results file will be extracted to the default directory of the project used because the -resextract call on the command line does not accept a parameter. This text file will also be defaulted to have the same name as the script file (e.g. script.txt).
If you want to define a specific file name and/or directory for this text file you need to use the ResExtract() function within your SilkTest script as described below:
- Add a blank text file to store your results (eg: results.txt) in the desired directory
- Add the following line to the end of your "GetParams.t" script file:
- ResExtract ("\results1.txt")
- Close Silk Test and run the command line prompt again. The results will then go to the blank "results.txt" file.