Blazemeter / CitrixPlugin

A repository for the Citrix Plugin for JMeter
Apache License 2.0
11 stars 2 forks source link

Run Jmeter Citrix plugin in command mode #71

Open Madeppa opened 9 months ago

Madeppa commented 9 months ago

Hi Team,

Can anyone please let me know whether the Jmeter Citrix plugin supports for non-gui mode(command mode)?

I have a Citrix plugin 0.7.7 version.

I tried to run the script in non-gui mode, but its not able to launch 'Citrix Application Launcher'.

However the same script executes in GUI mode.

Regards, Madeppa

mhlfst commented 9 months ago

Hi, I have the same issue. Seems to be a bug. See: https://github.com/Blazemeter/CitrixPlugin/issues/70

Madeppa commented 9 months ago

Hi @3dgiordano,

Could you please let me know any update on running the Jmeter Citrix scripts in command mode?

I am able to complete Jmeter scripting for Citrix workflow. However, at present I am stuck here to run the load test as it runs only in UI mode. The problem with UI testing is that, getting the 'out of memory' error after few minutes into the test.

It would be a great help if I get any suggestions/update on this.

Regards, Madeppa

mhlfst commented 9 months ago

Hi @Madeppa,

as long as this isn't fixed, we keep using v0.7.6 which works fine from command line. Still we hope for a fix in the next version :)

@team keep up the great work! 👍

Madeppa commented 9 months ago

Hi @mhlfst,

I know that we can run in command mode in older version(v0.7.6). However, I cant use older version (v0.7.6) as it wont support "getForegroundWindowCaption()" function. This particular function available only in v0.7.7.

Please let me if you have any suggestions to run in command mode in latest version(v0.7.7).

Regards, Madeppa

mhlfst commented 9 months ago

Hi @Madeppa,

with v0.7.6 you can use this in a JSR223 groovy sampler to get the foreground window caption:

import com.blazemeter.jmeter.citrix.sampler.CitrixSessionHolder
import com.blazemeter.jmeter.citrix.client.windows.WinCitrixClient
import com.blazemeter.jmeter.citrix.client.windows.com4j.IICAClient
import com.blazemeter.jmeter.citrix.client.windows.com4j.ISession
import com.blazemeter.jmeter.citrix.client.windows.com4j.IWindow

WinCitrixClient client = CitrixSessionHolder.getClient()
IICAClient icaClient = WinCitrixClient.metaClass.getProperty(client,'icaClient')
ISession session = icaClient.session()
IWindow foregroundWindow = session.foregroundWindow()
String caption = foregroundWindow.caption()
println("Foreground window caption: "+caption)
Madeppa commented 5 months ago

Hi @mhlfst & Team,

Will there be a new version to support non-gui mode? Currently we are still using the older version 0.7.6.

Is there a technical reason that it broke non-gui mode in 0.7.7? or the issue is unknown, and the temporary workaround is to use 0.7.6?

Regards, Madeppa

mhlfst commented 5 months ago

Hi @Madeppa,

I'm just a user, not a developer of this plugin ;) In my company we're still using 0.7.6 because of the issues in command line mode with 0.7.7. Hopefully there will be a fix in the next version.

mhlfst

karthikkn24 commented 4 months ago

Hello,

We are also stuck on 0.7.6 due to the issue with command line mode and remote executions on 0.7.7.

Any update when the new version will be available?

Thanks, Karthik