Create LeanFT tests in ALM

Set up your LeanFT project

In LeanFT:

  1. Create a LeanFT project containing one or more test methods. For details, see Create a LeanFT testing project.

    These test methods can be defined in a single .cs or .java file, or in multiple files within your project.

  2. Compile the DLL or export the JAR.

Create LeanFT tests in ALM

Each test method in your LeanFT project that you want to run in ALM must be mapped to an ALM LEANFT-TEST test.

This can be done in one of the following ways:

Manually create LEANFT-TEST tests in ALM Create a LEANFT-TEST test in ALM for each test method in your LeanFT test script.
Import LeanFT tests into ALM

Using a tool, you can create LEANFT-TEST test for multiple test methods simultaneously.

Recommended if you want to migrate a large number of test methods to ALM.

Manually create LEANFT-TEST tests in ALM

Note: These instructions assume a basic knowledge of creating tests in HPE ALM.

  1. In the ALM Test Plan module, create a test, selecting the LEANFT-TEST test type.

  2. In the test plan tree, select the LEANFT-TEST test you just created.
  3. In the test's Test Script tab, define your test. Provide values for required fields, as follows:


    Select the framework you are using.

    JAR/DLL Path

    The path of the .jar or .dll file containing your test.

    Specify either a full file path or a path relative to that specified in the <TestAssetsDir> element of the LFTRemoteAgent.exe.config file.

    Fully Qualified Class Name

    The fully qualified name of your class, including the namespace (NUnit/MSTest) or package (JUnit/TestNG).

    Syntax: <package/namespace name>.<classname>

    Test Method Name

    The name of the LeanFT test method that your ALM test will run.


  4. Repeat for each test method that you want to include in your ALM test plan.

Import LeanFT tests into ALM

Use the LeanFT Test Export tool to export your test methods. Then, on the ALM side, use the LeanFT Test Import tool to import the test methods into ALM LEANFT-TEST tests.

  1. From the command line, run the export tool relevant to your testing framework. These are located in the <LeanFT installation>\Tools\TestExportTool folder.

    The export tool generates an XML file with the same name and in the same location as the DLL or JAR you provided.

    Example: C:\LeanFT\MyJUnitTests.xml.

  2. In ALM, in the Test Plan module, run the ALM import tool:

    1. Select Tests > Import LeanFT Tests.

    2. Select the XML file generated with the export tool in LeanFT and click Open.
    3. Select the test methods to import and click Import.


      A LEANFT-TEST test is created for each selected test method, with all required fields defined.

Back to top

Next steps: