Share this page

# Run tests using a CI system

The procedure below focuses on Jenkins, but you can apply the same concepts to most CI systems.

Note: If you are running UFT Developer tests from Jenkins and want to track the tests in ALM, you can use ALM’s EXTERNAL-TEST type to synchronize externally executed test results with ALM. For more information, see the ALM Help Center.

1. Install the UFT Developer runtime engine and your AUT on the slave.

   If your tests were created in the context of a unit testing framework (such as NUnit or JUnit), make sure that the relevant framework's runner is also installed on the slave computer.

2. Deploy the UFT Developer tests (DLLs/JARs) to the slave computer.

3. Configure the Jenkins slave to maintain an active Windows session. This is needed so that the UFT Developer runtime engine can access the UI elements of your AUT during the run.

4. For non-Web applications:

   1. On the slave computer, start the UFT Helper service from: Computer > Manage > Services and Applications > Services.

      Note: Make sure the service starts before the UFT Developer runtime engine.

   2. In the Engine tab of the UFT Developer Settings dialog box, under Runtime Settings, enter the user name and encrypted password of the slave computer.

      To generate the encrypted password, run the following command line from the slave computer and copy the encrypted string to the clipboard:

      `<UFT Developer installation>\bin\PasswordEncryption.exe` passwordToEncrypt

      Note: The encrypted password is based on the computer where you run the utility, so make sure to generate the password on the computer where it will be used.

5. Configure your Jenkins job to run your UFT Developer tests.

   For example if your tests were created in the context of an NUnit project, your build step may look like this:

   `<NUnit Path>\bin\nunit-console-x86.exe" "%PATH_TO_TEST_PROJECT_DLL%\DLLFileName.dll`

6. Optional. Configure your job to archive the UFT Developer HTML report files, such that they will be available in Jenkins for each build of your job. You can also customize your job to include a direct link to the UFT Developer report file for each build.

See also:

- UFT Developer blog: Integrating UFT Developer with Jenkins—in just a few simple steps

https://admhelp.microfocus.com UFT Developer 8942
Tips to improve your search results... UFT Developer Help Center UFT Developer Help 15.0-15.0.2 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: