How to Work with LeanFT Automation
This task describes methods for automating components with LeanFT implementation.
Note:
-
This task is part of a higher-level task. For details see Working with Business Process Testing.
-
For a sample workflow of using Business Process Testing and keyword GUI automation together, see Working with Unified Functional Testing.
Manually Add LeanFT Automation to a Component
-
Prerequisites
-
Make sure LeanFT is installed.
-
To be able to debug or run automated LeanFT components, or view test results, make sure that LeanFT 12.53 or later is installed.
-
-
Select a component
In the Business Components module window, select a component in the component tree.
-
Add LeanFT implementation
In the Automation tab, click and select LeanFT.
Enter the implementation details, and then the following LeanFT details.
-
Parameterize components
To expand the scope of your LeanFT business components, use variable input and output parameter values components. For details, see How to Create Parameters.
-
Results
-
The LeanFT automation of the component is complete.
-
The icon for the component changes from the manual icon to the LeanFT icon. For icon details, see Business Process Testing Icons.
-
Tests and flows that contain fully automated LeanFT components can run in an automatic runner without pausing for user input.
-
To run business process tests, add the components to a business process tests.
-
Add the tests to a test set and run as you would any other test.
-
The tests run on the LeanFT machine.
-
When you run a LeanFT test from the Test Lab module, the LeanFT HTML report is stored in ALM.
-
-
For details, see Tests with LeanFT Automation.
-
Automatically Import LeanFT Automation to a Component
The import tool enables you to automatically create tests or components for every test method defined in a LeanFT NUnit or JUnit project, including setting up the relevant parameters.
-
Prerequisites
-
On your LeanFT computer:
-
Create a LeanFT NUnit or JUnit project containing one or more test methods. These test methods can be defined in a single .cs or .java file or in multiple files within the project.
The test methods can include Business Process Testing input or output parameters. For more details on data driving your ALM tests and components, see the Lean Functional Testing Help Center
-
Compile the DLL or export the JAR.
-
Run the relevant export tool command line utility, found in the <LeanFT installation>\Tools\TestExportTool folder.
-
-
-
Import
In the Business Process Testing Business Components module in ALM, run the import:
-
Right-click the folder where you want to add your components and click Import LeanFT Components .
-
In the Import LeanFT Components browse dialog box, select the XML file generated with the export utility in LeanFT and click Open.
The Import LeanFT Components dialog box displays the tests it found in the XML file.
-
Select the components to import and click Import. Then click Close.
Tip: You can also click Export to File.
The import automatically creates new components with LeanFT automation in the selected folder. All required fields are automatically set in the Automation tab, and all input and output parameters are defined in the corresponding Parameters tab.
-