Adding Camel component JAR files through Library Manager

Before you can test the technology supported by a Camel component in HCL OneTest API, you must add the Camel component JAR files through Library Manager so that HCL OneTest API can interact with the technology endpoints supported by the Camel component.

Before you begin

You must have completed the tasks in Prerequisites for testing the technology endpoints supported by Camel.

You must have completed reading about Library Manager and the tasks that you can perform, if you are not already familiar with Library Manager. See Working with Library Manager.

About this task

You must download the required JAR files, Camel core libraries, and supporting third-party libraries of the Camel component to your local folder, and then add the JAR files to Library Manager.

You can use build tools such as Maven or Gradle to download all the required dependencies for the Camel component following the Apache Camel documentation.

The task for testing the technology of the Camel-FTP component is described as a specific example. If you are using Maven to download all the JAR files of the Camel-FTP component and the Camel core libraries, you can build the pom.xml file as follows:

<dependency>
    <groupId>org.apache.camel</groupId>
        <artifactId>camel-core</artifactId>
            <version>3.14.2</version>
</dependency>
<dependency>
    <groupId>org.apache.camel</groupId>
        <artifactId>camel-ftp</artifactId>
            <version>3.14.2</version>
</dependency>

Procedure

  1. Download JAR files for the Camel component to a folder on your computer.
    The JAR files required for the Camel-FTP component are as follows:
    • camel-ftp-3.14.2.jar
    • commons-net-3.6.jar
  2. Start the Library Manager in any of the following methods:
    • In Microsoft Windows, you can start Library Manager from the HCL OneTest program group (default is HCL OneTest > Library Manager (set-up)).

    • Click the LibConfig.exe file in the installation directory of HCL OneTest API.

      For example, the installation directory path can be C:\Program Files\HCL\HCLProducts\API

  3. Select Camel as the application.
  4. Click Add in the Provider panel to add the provider of the application JAR files.
  5. Enter a name in the Rename Provider dialog.
  6. Select the provider by clicking the check box.
  7. Click Add in the Settings panel.

    The Select Files To Add window is displayed.

  8. Open the folder on your computer where you downloaded the files.
  9. Select the JAR files, and then click Add Files.
    The JAR files that you added are displayed in the Resource column in the Settings panel.
    Note: The JAR files are installed in the directory displayed in the Installation Directory field after you click OK.
  10. Click OK to install the application JAR files and close Library Manager.

Results

The Camel component JAR files are installed in the default installation directory of HCL OneTest API. The installed JAR files enable HCL OneTest API to interact with the technology endpoints supported by the Camel component.

What to do next

  • If HCL OneTest API is already running, you must restart HCL OneTest API.
  • If HCL OneTest API is not running, you must start HCL OneTest API.