Creating a Command Line Import Configuration File

To permanently store settings, you can create a command line import configuration file. Most import parameters can be stored in this file. Several parameters such as Username, Password, DSN, and Filename must be specified on the command line.

  1. Create an .INI file to hold all of the optional import parameters (for example, STimport.ini).
  2. Save the file to the location of your choice.
  3. Copy the following list of import parameters and paste into the configuration file:
    [SilkTestImport]
    Execute=
    ImportFile=
    AllVersions=
    ReportResult=
    SilentMode=
    Projects=
    System=
    ProjectAssetResolveConflict=
    SystemAssetResolveConflict=
  4. Set the value of each import parameter. The values do not need to be enclosed in quotes. If the value is not set or the parameter is omitted from the file, the default value is used. Parameter values are not case-sensitive.
  5. Save the file.
  6. To access the file from the command line, include the Filename (f) parameter and the location of the file. For example:
    C:\>STWImport.exe -u Admin -p admin -d YourDBName -f "C:\STimport.ini"
    Note: The configuration file header [SilkTestImport] must appear at the top of the file, however, you can change the order of the parameters. If you need to comment out a parameter, place a backslash ( \ ) character in front of the parameter name. Parameters specified in the configuration file override any identical parameters specified on the command line with one exception. If the Projects or System parameter is specified both in the configuration file and on the command line, the values for each are used.