Prerequisites for Maven-based projects

For Maven-based projects you must install the OpenText Functional Testing for Developers JARs in the Maven repository (your organization's or local).

Install the OpenText Functional Testing for Developers JARs in the Maven repository

Make sure that you install the JAR files using the POM files that we supply. This ensures that the GAV and all dependencies for each OpenText Functional Testing for Developers JAR are defined correctly. Otherwise, when you run your tests, second-level-dependency files will be missing, and you will see NoClassDefFoundError messages, indicating missing files such as com/hp/lft/common/logging/Logger.

Follow these instructions to install the OpenText Functional Testing for Developers JARs. For a list of files names to install, as well as examples, see the sections below.

  • To install the JARs to your organization's repository, run the following command:

    mvn deploy:deploy-file

    -DpomFile=<path-to-pom>

    -Dfile=<path-to-file>

    -DrepositoryId=<id-to-map-on-server-section-of-settings.xml>

    -Durl=<url-of-the-repository-to-deploy>

  • To install the JARs to your local repository, run the following command:

    mvn install:install-file

    -Dfile=<path-to-file>

    -DpomFile=<path-to-pomfile>

Back to top

JAR and POM list

The path to the JARs and POMs is:

  • Windows: <Installdir>\SDK\Maven
  • Linux/Mac: <Installdir>/sdk/Maven/
JAR POM
com.hp.lft.common-2024.4.0.jar

com.hp.lft.common-2024.4.0-pom.xml

com.hp.lft.report-2024.4.0.jar

com.hp.lft.report-2024.4.0-pom.xml

com.hp.lft.reportbuilder-2024.4.0.jar

com.hp.lft.reportbuilder-2024.4.0-pom.xml

com.hp.lft.sdk-2024.4.0.jar

com.hp.lft.sdk-2024.4.0-pom.xml

com.hp.lft.unittesting-2024.4.0.jar

com.hp.lft.unittesting-2024.4.0-pom.xml

com.hp.lft.verifications-2024.4.0.jar

com.hp.lft.verifications-2024.4.0-pom.xml

Back to top

Examples

The following examples shows how to install the OpenText Functional Testing for Developers JARs in your local Maven repository. Run the following commands from <Installdir>\SDK\Maven (on Windows) or <Installdir>/sdk/Maven/ (on Linux/Mac).

  • Install all OpenText Functional Testing for Developers JARs to local M2 repository

    mvn install:install-file -Dfile=com.hp.lft.common-2024.4.0.jar -DpomFile=com.hp.lft.common-2024.4.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.report-2024.4.0.jar -DpomFile=com.hp.lft.report-2024.4.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.reportbuilder-2024.4.0.jar -DpomFile=com.hp.lft.reportbuilder-2024.4.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.sdk-2024.4.0.jar -DpomFile=com.hp.lft.sdk-2024.4.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.unittesting-2024.4.0.jar -DpomFile=com.hp.lft.unittesting-2024.4.0-pom.xml
    mvn install:install-file -Dfile=com.hp.lft.verifications-2024.4.0.jar -DpomFile=com.hp.lft.verifications-2024.4.0-pom.xml
  • Install the JavaDoc JARs

    mvn install:install-file -Dfile=com.hp.lft.sdk-2024.4.0-javadoc.jar  -DgroupId=com.hp.lft -DartifactId=sdk -Dversion=2024.4.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.report-2024.4.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=report -Dversion=2024.4.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.unittesting-2024.4.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=unittesting -Dversion=2024.4.0 -Dpackaging=jar -Dclassifier=javadoc
    mvn install:install-file -Dfile=com.hp.lft.verifications-2024.4.0-javadoc.jar -DgroupId=com.hp.lft -DartifactId=verifications -Dversion=2024.4.0 -Dpackaging=jar -Dclassifier=javadoc
    

Back to top