3.25.5. Using a configuration file
Prev | 3.25. Using the test executor for testing from the command line | Next

### 3.25.5. Using a configuration file

1. You can also enter test executor parameters in an XML configuration file.

   | The workspace parameter (-data) cannot currently be entered in the configuration file for the test executor, it must be entered directly into the command line interface.

2. This saves you typing in the same details each time you start a test.

3. To enter the configuration file path, enter the following command:

   -c <path to file>

   For example: -c ”<pathToQADocs>/config1.xml”

4. You can also overwrite parameters contained in the configuration file by entering another parameter directly into the interface.

5. For example, if your configuration file contains the Test Suite ”Suite1”, but you enter -testsuite ''Suite2'' in the command line interface, the Test Suite called ”Suite2” will be started, not ”Suite1”.

6. To create an XML file:

   1. Open a text editor of your choice.

   2. Enter the desired parameters as shown in the examples in the installation:

      InstallationDirectory/examples/scripts

   3. Save the file as an XML file.

   4. This file will be used when you enter the ”-c <path to file>” parameter.

      | The no-run, quiet mode, no screenshot, no screenshots in reports and -data (for the workspace) parameters can only be entered in the command line interface. They cannot be entered in the configuration file.

      | Java Virtual Machine parameters can only be entered in the command line interface. They cannot be entered in the configuration file.