Integrate LeanFT and BPT

If you are working with BPT, you can add LeanFT business components to flows and business process tests.

For details on creating flows and business process tests, see the ALM Help Center.

Note: LeanFT business components cannot be mixed with other types of business components in flows and business process tests.

Create business process tests that include LeanFT business components

After you have written your LeanFT test, you can set up a corresponding business process test in ALM containing your test methods by creating business components in ALM's Business Components module and using them in a business process test

This can be done in one of the following ways:

Manually create business components Create a business component in ALM for each test method in your LeanFT test script.
Import LeanFT test methods into business components in ALM

Using a tool, you can create business components for multiple test methods simultaneously.

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

Manually create business components

When defining business components manually:

  1. In ALM, create a new business component, or select an existing one.

  2. Add a LeanFT automation:

    Note: Each LeanFT business component represents a single test method inside a LeanFT test class.

    In the Automation tab, click Add Automation, and select LeanFT automation subtype.

  3. In the Automation tab, define your business component. Provide values for the required fields as follows:

    Framework  

    Select the framework you are using.

    JAR/DLL Path

    The path of the .dll or .jar file containing your test, depending on the framework. You can specify either a full file path or a relative path.

    Fully Qualified Class Name

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

    Test Method Name

    The name of the test method that your business component will run.
  4. Example:  

Import LeanFT test methods into business components in ALM

The export/import procedure is identical for business components as for LEANFT-TEST tests.

  1. In LeanFT:

    1. In your test project, compile the DLL or export the JAR.

    2. Run the export tool command line utility relevant to your testing framework, as described in Import LeanFT tests into ALM.

  2. In ALM:

    1. In the Business Components module, select ComponentsImport LeanFT Components.

    2. Select the XML file generated with the LeanFT export tool, and click Open.

    3. Select the test methods to import to business components, and click Import.

      Example:  

    A new business component is created in ALM for each selected test method, with all required fields defined.

Back to top

Data driving business components

Just as in any LeanFT test, you can expand the scope of your business components by creating content using defined input values. In addition, for business components, you can define output parameters as well.

Input parameters

Define input values the same way as you would for LeanFT tests. For details, see Data-drive your ALM tests.

Output parameters

Define output parameters for business components per your framework as follows:

Back to top

Next steps: