This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to record Citrix communication in multi protocol script

Hi,

I'm trying to record an application using Citrix. The Web (HTTP/HTML) part is fine but as soon as the Citrix Desktop opening LR doesn't recognize any input in the Citrix Session.

The last recorde line is ctrx_nfuse_connect.

 

A replay, after correlating the csrf token, works fine and I can see the Citrix Desktop.

Any idea what's causing the recorder not to record the Citrix part?

 

We're using LR 2022 build 433 with Citrix Workspace 19.12.0.119 (Recommended version).

We already disable the desktop viewer on the Citrix Server and set the TWIMode=Off in the default.ica as recommended here (https://admhelp.microfocus.com/vugen/en/2022/help/WebHelp/Content/VuGen/129550_t_how_to_configure_citrix_client_server.htm?tocpath=Protocols%7CVuGen%20protocols%7CCitrix%20protocol%7CSet%20up%20your%20Citrix%20environment%7C_____0)

Any further hints on solving that problem would be really appreciated.

Thanks

Ronny

  • Verified Answer

    Hi Ronny,

     

    Please try the followings:

     

    1. Make sure the EnableLUA value in the following registry key:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ is set to 0.

    1. Make sure data execution prevention is off, by setting in command line: ​bcdedit.exe /set {current} nx AlwaysOff
    1. Change the following flag to true: \Micro Focus\LoadRunner\config\bbhook.ini SupressCitrixOcxEnabled

     

    Let it know if recording works as expected,

    Regards,

    Levi.

  • Hi Levi,

    Gorgeous!. This does the trick. Slight smile

    DEP was already disabled but I had to set "EnableLUA" in registry as well as "SupressCitrixOcxEnabled" in the bbhook.ini

    Any idea why the recorder sync buttons only work as long as my mouse arrow is outside of the citrix window?

    Ronny

  • Hi Ronny,

    I am glad that recording works now.

    Regarding sync buttons usage: even if arrow head changes when inside of Workspace, it is possible to do a sync inside it.

    Didi you manage to get a bitmap/ocr sync during recording?

    Regards,

    Levi.

  • Hi,

    I've got LR 2021 R2 /  Citrix StoreFront 7.1912

    I followed all the steps above

    1- https://admhelp.microfocus.com/vugen/en/2022-2022-r2/help/WebHelp/Content/VuGen/129550_t_how_to_configure_citrix_client_server.htm#InstallAgent

    2 -www.northwaysolutions.com/.../

    i.e

    1. Record the  script using the dual protocol of Citrix ICA and Web -HTTP/HTML. 
    2. Put TWIMode=Off in ica file
    3. Enable_Citrix_API.reg
    4. Make sure the EnableLUA value in the following registry key  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ is set to 0.

    5. Make sure data execution prevention (DEP)  is off, by setting in command line: ​bcdedit.exe /set {current} nx AlwaysOff
    6. Change the following flag to true: \Micro Focus\LoadRunner\config\bbhook.ini SupressCitrixOcxEnabled

    but as Ronny before, the last recorde line is ctrx_nfuse_connect.

  • I add here the  ctrxagent_924.log  file located in my %TEMP% dir 

    01/24/23 14:08:54 parameter 'TcpChannelEnabled' is '0'
    01/24/23 14:08:54 parameter 'MinPortValue' is '49000'
    01/24/23 14:08:54 parameter 'NumPorts' is '500'
    01/24/23 14:08:54 parameter 'WaitForAccept' is '250'
    01/24/23 14:08:54 parameter 'WaitForRecv' is '250'
    01/24/23 14:08:54 parameter 'WaitForVC' is '100'
    01/24/23 14:08:54 parameter 'DebugEnabled' is '1'
    01/24/23 14:08:54 parameter 'JavaSupportEnabled' is '1'
    01/24/23 14:08:54 parameter 'JavaWaitForInit' is '0'
    01/24/23 14:08:54 parameter 'LogoffSessionOnExit' is '1'
    01/24/23 14:08:54 Cannot load WindowsAccessBridge-32.dll
    01/24/23 14:08:54 Java support is not active at the moment, will wait for JVM handshake...
    01/24/23 14:08:54 Agent is up and running
    01/24/23 14:08:54 SessionID = 5
    01/24/23 14:08:54 Server Info = 7.24.5000, CSD: ''
    01/24/23 14:08:54 Citrix Info = Product: '', Version: 5.0, Build:
    01/24/23 14:08:54 Session ProtocolId=1
    01/24/23 14:08:54 [Citrix server] - :-91932,VirtualChannelWrite Failed - 1

    01/24/23 14:08:54 [Citrix server notify] - WARNING!!! If CitrixAgent's log was requested for troubleshooting by Micro Focus RnD, this file might be not the expected one.
    01/24/23 14:08:54 GenerateModulePath(): Path to the module is 'C:\Program Files (x86)\Micro Focus\Agent for Citrix Server\bin\TrAgent.dll'
    01/24/23 14:08:54 GenerateModulePath(): Path to the module is 'C:\Program Files (x86)\Micro Focus\Agent for Citrix Server\bin\text_trap_x64.exe'
    01/24/23 14:08:54 Windows version is 6.2
    01/24/23 14:08:54 Win2012/Win8 or higher - characters offset enabled
    01/24/23 14:08:54 spTextTrap = 0x0056BB70, hr = 0x0
    01/24/23 14:08:54 Closing the VC
    01/24/23 14:08:54 CTxTrap::RemoveAgent(): hWndToUse = ffff
    01/24/23 14:08:59 CTxTrap::RemoveAgent(): FreeLibrary() failed, status code = 126

  • Hi, this error code seems like the agent is blocked by antivirus. please make sure antivirus does not block the agent or its dlls. 

  • Thanks a lot for the reply. We disable the antivirus (server/agent side)
    Same behaviour but no more ctrxagent_*.log in %TEMP% (server side) : last recorded line is ctrx_nfuse_connect.
    Grrr...

  • Just to make sure, is bcdedit (bcdedit.exe /set {current} nx AlwaysOff) and enableLUA disabled on the Vugen machine, where you do the recording?