Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can I use the command line to extract results to a text file?

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.

Command line:
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:

  1. Add a blank text file to store your results (eg: results.txt) in the desired directory
  2. Add the following line to the end of your "GetParams.t" script file:
    • ResExtract ("\results1.txt")
  3. Close Silk Test and run the command line prompt again. The results will then go to the blank "results.txt" file.

Old KB# 23546

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:36
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.