Editing a configuration file for HCL OneTest API

After you generate an XML configuration file, you might need to change it if the target computer is different from the generated configuration. For example, the libraries and their locations in the configuration file do not match the libraries and their locations on the target computer.

About this task

To edit a configuration file, follow these steps:

Procedure

  1. After you generate a configuration file for HCL OneTest API (see related links at the end of the page), you can apply it to another computer. If the configuration for the target computer must be modified, you must edit the configuration file manually.
  2. Open the configuration file in a text editor and modify its contents as required.

    The provider-type is defined in the provider element. Specific providers (displayName) and their default library locations (base) are defined in the pathSet element. Specific libraries for each provider are defined in the pathElement element by using the location (for the path) and name (for the specific file) attributes.

    The environment that is described by the configuration file (that is, the libraries and their locations) must be valid on the target computer. In other words, ensure that the files in the configuration exist in the proper locations on the target computer.

    Note: If the library file location is on a mapped network drive, you might get errors while running tests in a project. To prevent this, ensure that the files are available on a local drive that can be accessed by HCL OneTest API and its Agent.