Blazemeter / CitrixPlugin

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

Capture window pop-up #68

Open Madeppa opened 1 year ago

Madeppa commented 1 year ago

Hi,

Can anyone please suggest me a way to capture window pop-up name in jmeter? Is the latest version of citrix plugin support this? Something similar to below function in loadrunner ctrx_get_window_name(window_name).

I really appreciate any reply or suggestions on this.

Regards, Madeppa

3dgiordano commented 1 year ago

Hi @Madeppa

On JMeter the more common way to extract values is using "Extractors".

The Citrix plugin provide the "OCR Extractor", allowing to extract any type of text from a specific section of an active window https://github.com/Blazemeter/CitrixPlugin/blob/master/MANUAL.md#citrix-ocr-extractor

Also, you can use the "Assessment extractor", a post processor for "End Clauses" allowing to you to get the value of the evaluated End Clause value from any type of Citrix Iteration https://github.com/Blazemeter/CitrixPlugin/blob/master/MANUAL.md#citrix-assessment-extractor

You can create a Iteration without actions and use a End Clause like Windows Exist, Windows Close or Window Gets Foreground with different timeout and get the actual value of the active windows adding the "Assessment extractor". https://github.com/Blazemeter/CitrixPlugin/blob/master/MANUAL.md#citrix-interaction

You need only to take in consideration the waiting time to make the check and the timeout used on the End Clause to coordinate the capture of the actual window. Also, you can use the End Clause Text (OCR) if you know the relative position of the text in the title bar of the window, and get the value captured with "Assessment extractor".

Madeppa commented 1 year ago

Hi @3dgiordano,

Thank you for your prompt response!!

As you suggested above, we are able to validate window name using Window exists but in this case we are providing the window name and validating it. Here my concern is that, without giving window name is there any other method to capture the active window name?

At present in End Clause regarding window there are 3 options like Windows Exist, Windows Close and Window Gets Foreground.

Can we add another options like 'Current Window name' or 'Get Window name' or something. With this option we can add Interaction without actions and using a End clause as 'Get Window name' and not providing any Expected value. So whatever the window name we get we can store it in 'Assessment Extractor' variable. Like this we can get the current active window name.

Not sure whether this is possible or not but a suggestion.

Regards, Madeppa