3.31.4 Using a configuration file

  1. You can also enter test executor parameters in an XML configuration file.
    \includegraphics[height=2cm]{lightbulb} The workspace parameter 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 ''C:/My Documents/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 example:
      <configuration>
          <project>ExampleProject</project>
          <version>1.0</version>
          <autconfig>local configuration</autconfig>
                 OR
          <autid>Adder</autid>
          <dbscheme>embedded</dbscheme>
          <dbuser>sa</dbuser>
          <dbpw></dbpw>
          <server>localhost</server>
          <port>60000</port>
          <language>EN_US</language>
          <testsuite>Suite1</testsuite>
                  OR
          <testjob>Job1</testjob>        
          <datadir>C:/Program Files/guidancer/data</datadir>
          <resultdir>C:/Program Files/guidancer/results</resultdir>
      </configuration>
      
    3. Save the file as an XML file.
    4. This file will be used when you enter the "-c <path to file>" parameter.
      \includegraphics[height=2cm]{lightbulb} The no-run and quiet mode parameters can only be entered in the command line interface. They cannot be entered in the configuration file.
      \includegraphics[height=2cm]{lightbulb} Java Virtual Machine parameters can only be entered in the command line interface. They cannot be entered in the configuration file.
  7. A template configuration file was installed with Jubula . It can be found under:
    InstallationDirectory/examples/scripts



Copyright BREDEX GmbH 2012. Made available under the Eclipse Public License v1.0.