Bryan_N Trusted Contributor.
Trusted Contributor.
147 views

Configuring LeanFT 14.52 Port Issue

Jump to solution

We recently upgraded to LeanFT 14.52.  In our previous version, 12.52, we were able to change the port LeanFt used allowing multiple sessions to use it.  After upgrading,  we are unable to change the port.

Steps

1. Took a copy of the config.json file from C:\Program Files (x86)\Micro Focus\Unified Functional Testing\lwe\lightweight-engine\config and updated the port to the desired port.  5099'

2. Save the file in %localappdata%\LeanFT\config  

3. Open Eclipse and Enable LeanFT

4.  Error appears

Log file below shows LeanFT loading from the localappdata config file as userConfig.  Then it loads from the config.json file stored in the UFT Installation directory globalConfig (C:\Program Files (x86)\Micro Focus\Unified Functional Testing\lwe\lightweight-engine\config\config.json)  This seems to override the userConfig file.  If I delete the userConfig file and use only the globalConfig, LeanFt opens with the default port.  If I update the port in globalConfig, LeanFt does not start.   Also, if I manually change the port via the Engine and Object Settings menu in Eclipse, LeanFt does not Enable 

Log Files

[2019-08-14 18:26:32.769] [INFO] SettingsHelper - load : going to load settings

[2019-08-14 18:26:32.776] [INFO] SettingsHelper - load : loading userConfig file:  C:\Users\bln6901\AppData\Local\LeanFT\config\config.json

[2019-08-14 18:26:32.782] [INFO] SettingsHelper - load : loaded settings from user config file:  { version: 2,

  port: 5099,

  packages:

   { Web: { isEnabled: true },

     Mobile: { isEnabled: true },

     SAPUI5: { isEnabled: false },

     WPF: { isEnabled: true },

     WinForms: { isEnabled: true },

     SAP: { isEnabled: false },

     Java: { isEnabled: true },

     'Terminal Emulators': { isEnabled: false },

     PowerBuilder: { isEnabled: false },

     Oracle: { isEnabled: false } },

  idle_shutdown_enabled: true,

  idle_shutdown_timeout: '240',

  identification_timeout: 20,

  proxyInfo:

   { proxyAddress: null,

     useAuthentication: false,

     userName: 'user',

     encryptedPassword: '' },

  labs:

   { mobileCenter: { serverInfo: [Object], showVncDuringReplay: false },

     srf: { serverInfo: [Object], showVncDuringReplay: false } },

  capabilities: {},

  maxLicensesAllowed: 1,

  usageTracking: false,

  rdpConfig: { isEnabled: false, user: '', encryptedPassword: '' } }

[2019-08-14 18:26:32.785] [INFO] SettingsHelper - load : loading globalConfig file:  C:\Program Files (x86)\Micro Focus\Unified Functional Testing\lwe\lightweight-engine\config\config.json

[2019-08-14 18:26:32.786] [INFO] SettingsHelper - load : loaded settings from global config file:  { version: 2,

  port: 5095,

  packages:

   { Web: { isEnabled: true },

     Mobile: { isEnabled: true },

     SAPUI5: { isEnabled: false } },

  idle_shutdown_enabled: true,

  idle_shutdown_timeout: 240,

  identification_timeout: 20,

  proxyInfo:

   { proxyAddress: null,

     useAuthentication: false,

     userName: 'user',

     encryptedPassword: '0SWoxfcgI8AwDTlJKrk8aA==' },

  labs:

   { mobileCenter: { serverInfo: [Object], showVncDuringReplay: false },

     srf: { serverInfo: [Object], showVncDuringReplay: false } },

  capabilities: {},

  maxLicensesAllowed: 1,

  usageTracking: false }

[2019-08-14 18:26:32.788] [INFO] ConsoleLogger - LeanFtLauncher._getLaunchHelpersByRole : no launcher for role:  . using default (local)

[2019-08-14 18:26:33.222] [ERROR] ConsoleLogger - LeanFtWinHelper.getProcIdsByNodeScriptNameAndRole (local) failed to get list of processes. err: Error: Command failed: wmic process where "name='node.exe'" call GetOwner

 

Am I missing a step?

 

0 Likes
1 Solution

Accepted Solutions
Bryan_N Trusted Contributor.
Trusted Contributor.

Re: Configuring LeanFT 14.52 Port Issue

Jump to solution

Issue resolved.  I added a command to kill the node.exe processes before enabling LeanFT

wmic process where name="node.exe" delete

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

Re: Configuring LeanFT 14.52 Port Issue

Jump to solution

Hi Bryan,

 

From the final line of the log you have supplied, the issue maybe unrelated to settings at all.

It looks like there is a failure in running wmic on your system.

This is used by LeanFT to manage the lifecycle of the engine and is crucial for correct functionality of LeanFT.

 

Please check that WMIC is working on your machine (run it in your command line), if it's not working, please make sure that it is in your path env var.

for example on my system it is located at: C:\Windows\System32\wbem\

 

Let me know if that helps.

 

Regards,

Anton

0 Likes
Bryan_N Trusted Contributor.
Trusted Contributor.

Re: Configuring LeanFT 14.52 Port Issue

Jump to solution

Thanks for the response. 

I executed the command in the error message

[ERROR] ConsoleLogger - LeanFtWinHelper.getProcIdsByNodeScriptNameAndRole (local) failed to get list of processes. err: Error: Command failed: wmic process where "name='node.exe'" call GetOwner

The results that came back were...

Executing (\\SWN59203\ROOT\CIMV2:Win32_Process.Handle="3380")->GetOwner()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
Domain = "SWN59203";
ReturnValue = 0;
User = "qaadmin";
};

Executing (\\SWN59203\ROOT\CIMV2:Win32_Process.Handle="7452")->GetOwner()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
Domain = "ARFW";
ReturnValue = 0;
User = "GXR3871";
};

Executing (\\SWN59203\ROOT\CIMV2:Win32_Process.Handle="8956")->GetOwner()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
Domain = "ARFW";
ReturnValue = 0;
User = "GXR3871";
};

Executing (\\SWN59203\ROOT\CIMV2:Win32_Process.Handle="3160")->GetOwner()
ERROR:
Description = Not found

 

Anyone encounter this before?  Everytime I run the command, the number of the Win32_Process.Handle changes

 

0 Likes
Bryan_N Trusted Contributor.
Trusted Contributor.

Re: Configuring LeanFT 14.52 Port Issue

Jump to solution

Issue resolved.  I added a command to kill the node.exe processes before enabling LeanFT

wmic process where name="node.exe" delete

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.