Share this page

# Modify the communication port number

By default, OpenText Functional Testing for Developers uses port 5095.

If another application on your computer needs to listen on that port, you can modify the port that OpenText Functional Testing for Developers uses. Select the relevant operating system below for instructions on modifying this port definition.

If the other application is not currently occupying the port, you can use the Settings dialog box instead of performing the first step in the instructions below. With the runtime engine running, right-click the runtime engine icon in the task bar, select Settings, and on the Engine tab, modify the Port definition. When you save your changes, the runtime engine automatically closes and restarts with your new settings loaded.

Note: On Linux machines, if the icon is not available in the task bar, open the dialog box by running the following command to : `/opt/OpenTextFunctionalTestingForDevelopers/Tools/settings-leanft`

Modify the port in engine settings and test settings:

On Windows

1. Modify the runtime engine settings:

   On the computer on which you plan to run your test, open the config.json configuration file in a text editor. If you are using OpenText Functional Testing for Developers as a grid, open the grid-config.json file.

   The file is located in %localappdata%\LeanFT\config\.

   Modify the port setting, save the file, and restart the runtime engine.

   Note: If this is your first time editing the configuration file, the config folder will be empty. You need to copy the file from:<Installdir>/lwe/lightweight-engine/config

2. Modify your project's test settings file:

   IDE | Instructions
   --- | ---
   Visual Studio: | Modify the connection address setting in the App.config file referenced by your testing project, and ensure that you deploy the compiled *.config.dll together with your testing project .dll.
   Eclipse, Spring Tool Suite, JBoss Developer Studio, IntelliJ IDEA, or Android Studio: | Modify the connection address setting in the resources\leanft.properties file in your project.

   Note: If you are working with a centrally maintained test settings assembly file, modify the port in that file. For details, see Externally maintained test setting files.

On Linux/Mac

1. Change the port setting in the runtime engine configuration file:

   On the computer on which you plan to run your test, open the config.json configuration file for editing. If you are using OpenText Functional Testing for Developers as a grid, open the grid-config.json file.

   The files are located in the following location:

   OS | File location
   --- | ---
   Linux | ~/.leanft/config
   Mac | ~/Library/Application Support/LeanFT/config

   Modify the port setting, save the file, and restart the runtime engine.

   Note: If this is your first time editing the configuration file, the config folder will be empty. You need to copy the file from:<Installdir>/lwe/lightweight-engine/config

2. Modify your project's test settings file:

   Modify the connection address setting in the resources/leanft.properties file in your project.

   Note: If you are working with a centrally maintained test settings assembly file, modify the port in that file. For details, see Externally maintained test setting files.

See also:

- Admin
- Customize the runtime engine settings
- Customize test settings
- Customize how to identify objects

https://admhelp.microfocus.com Functional Testing for Developers 8942
Tips to improve your search results... OpenText™ Functional Testing for Developers Help Center OpenText™ Functional Testing for Developers Help 25.2 All View Local Help Center View Online Help Center Version: