Create and import UFT Developer tests
This task describes how to create and import UFT Developer tests.
UFT Developer tests Overview
UFT Developer is a powerful and lightweight functional testing solution built specifically for continuous testing and continuous integration. By supporting the most common AUT technologies and integrating with standard IDEs, UFT Developer brings a new level of productivity and collaboration to your Agile and DevOps testing teams.
Within ALM, UFT Developer tests and components using Business Process Testing is supported. You can create UFT Developer tests in ALM and use all the standard ALM tracking and traceability features to manage them.
You can import tests and components from UFT Developer and also initiate runs of UFT Developer tests and components from within ALM.
From within ALM, you can create UFT Developer tests or business components automatically by importing test methods defined in your NUnit or JUnit project.
Alternatively, you can create each UFT Developer test or business component manually within ALM.
Create a UFT Developer test manually
You can create UFT Developer tests manually within ALM.
To create and configure a UFT Developer test:
-
See Create tests to create a test and make sure the Type field is set to LEANFT-TEST.
-
In the Test Script tab of the UFT Developer test, provide the following information:
Field
Description
Framework JUnit or NUnit.
DLL Path The path of the .dll file containing your test. You can specify either a full file path or a relative path. Fully Qualified Class Name The full name of your class including the namespace (NUnit) or package (JUnit).
Test Method Name The name of the test method that this ALM test will run. -
Click Save to save the settings.
Import a test from UFT Developer
The import tool enables you to automatically create tests or components for every test method defined in a UFT Developer NUnit or JUnit project, including setting up the relevant parameters.
Prerequisite:
On your UFT Developer computer:
-
Create a UFT Developer 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 ALM input or output parameters. For more details on data driving your ALM tests, see the UFT Developer Help Center.
-
Compile the DLL or export the JAR.
-
Run the relevant export tool command line utility, found in the <UFT Developer installation>\Tools\TestExportTool folder.
To import a test from UFT Developer:
In the ALM Test Plan module, do the following to run the import:
-
Right-click the folder where you want to add your tests and click Import UFT Developer Tests .
-
In the Import UFT Developer Tests browse dialog box, select the XML file generated with the export utility in UFT Developer.
The Import UFT Developer Tests dialog box displays the tests it found in the XML file.
-
Select the test methods to import and click Import. Then click Close.
Tip: You can also click Export to File.
For each test method, the tool automatically creates a new UFT Developer test in the current folder. All required fields are automatically set in the Test Script tab, and all input parameters from each test method are defined in the corresponding Parameters tab.
See also:
- Work with UFT Developer automation
- Integrating UFT Developer and ALM in the UFT Developer Help Center
- Prerequisites for working with UFT Developer and installation instructions in the UFT Developer Help Center