Sie sind auf Seite 1von 4

Citrix Webinar 1st Session Q&A

Question Answer
During the Citrix replay, I have plenty of If you need to synchronize on creating (instead of
failures in ctrx_sync_on_windo() as the focusing) of window, maybe
comparison with the screenshot taken ctrx_sync_on_window() with CREATE flag or
during the recording despite showing the ctrx_execute_on_window() could help you?
same window on the Citrix replay. As of
now, I am using the Window name as
workaround, but this is limited to window
on focus, while in certain scenarios, I need
to check those other window as well. How
should I assure that the check can pass?
What is the difference between execute on ctrx_execute_on_window() is identical to
window and set exception? ctrx_set_exception() in all respects. We keep 2
functions with the same functionality and different
names due to historical reasons only
What is E_OK? E_OK is one of the Result Codes returned by Citrix
functions. For a complete list of Citrix result codes,
see this documentation part
http://lrhelp.saas.hpe.com/en/latest/help/function
_reference/Content/citrix_ica/etc/lrFuncRef_cit_Re
turn_Values.htm.
What if the "Copying..." window actually In this case ctrx_unset_function() will fail due to
hanging, and never disappears? timeout (default value is 60 seconds). If you expect
that copying operation may take pretty much time,
you can set individual timeout for this step:

//save default timeout value


ctrx_get_waiting_time(&waitTime);

//assume copying takes up to 5 minutes


ctrx_set_waiting_time(5*60);

if(ctrx_unset_window("Copying...",
CONTINUE_ON_ERROR, CTRX_LAST) != E_OK) {
//something goes terribly wrong, handle it here...
}
//restore timeout value
ctrx_set_waiting_time(defaultWaitTime);
In our environment, we need to login to a There are no limitations from a protocol side - all
portal website then download the ICA file you can do in a single-protocol Citrix script, you can
from there, which would be slightly do using Citrix+WebHTTP as well.
different from the current demo. Hence, Note: if you have a license for 50 Virtual Users, you
using http protocol + citrix protocol; is there will be able to run only 25 VUsers for your
any limitation using both protocols vs single Citrix+WebHTTP script, since each protocol VUser
citrix protocol? consumes 1 license.
I am often facing Citrix HDX Engine crashing It is quite a difficult to solve crash issues without
while replaying the script from Vugen. Is crash dumps and information about environment.
there a solution for this? If faulting application is wfica32.exe with fault in
module VD3DN.DLL, then most probably it is a
known bug that was fixed in Citrix Receiver 14.4.100
and an upgrade to a newer version might help you.
Otherwise, please open a support ticket and provide
info about your environment (version of
LoadRunner, version of Citrix Client, version of
server-side Citrix software) alongside with the script
with extended replay log and dump file of the
crashing application (support engineer will help you
to collect crash dumps).
What versions of Citrix client are supported LR 12.53 supports Citrix Client versions 12.* and
by the most recent versions of LoadRunner? newer. For earlier LR releases, minimal supported
version of Citrix Client was 9.*.

In X-Runner you performed each action There was only one support case in my experience
using the mouse, Arrow keys, and mouse when I had to solve the issue with keyboard input -
movements. Citrix had lots of difficulty it was about distinguishing between Numpad keys
processing many of the keyboard buttons and correspondent keys on alphanumeric part of
for navigation. Has this been fixed? keyboard. As a result, support for new key modifier
(MODIF_NUMPAD) was introduced in LR 12.01 to
emulate key presses of Numpad digits and arrows.
If you experience issues with keyboard input, please
open support ticket.
Is this type of direct connection still Citrix states they do not support ICA files anymore
supported? - I thought with XenDesktop all (as of XenDesktop 7.*, if Im not mistaken). But it
connections must go via a desktop broker. might be interesting for you to know that even
when you are connecting to XenDesktop via
StoreFront, there is an ICA-file being downloaded to
establish connection.
How do we resolve the issue that We would recommend to use Citrix Agent and
sometimes during logoff windows will ctrx_logoff(CTRX_FORCED_LOGOFF...), but if Citrix
"hang" waiting for a window to close. Agent is not an option, then you might want to try
We are NOT using Citrix Agent. to workaround this issue by configuring Windows
Are ctrx_logoff and ctrx_disconnect_server Registry settings like WaitToKillAppTimeout and
the same thing? WaitToKillServiceTimeout.

ctrx_logoff() and ctrx_disconnect_server() are


different functions. Ctrx_logoff() logs off the user
session on the server.
ctrx_disconnect_server() disconnects the Client, but
session might remain on the server in disconnected
state until Windows closes it due to timeout. If
server is configured to terminate sessions
immediately after disconnect, then effect of
ctrx_disconnect_server() is exactly the same as for
ctrx_logoff().
Recommendations around resolution and First and well-known recommendation: keep your
colour depth when working in remote Vugen machine and LG machines consistent same
sessions? I know different remote access resolution, same colour depth, same
methods can produce different settings. ClearType/FontSmoothing settings.
Second colour depth of your local machine must
be greater or equal than colour depth of your
remote session on the server.
Is the Citrix agent installed for this demo? Citrix Agent was installed on the server, but we
didnt demonstrate Agent-specific functionality.
Is all recording related to the screen? Not Coordinates of mouse clicks are recorded relative to
to app window? Concern is if app to open window when it is possible. You can check 5th
moves location. parameter (window_name) of ctrx_mouse_click()
call if it looks like "Notepad=snapshot33", then
coordinates of click are relative to window named
Notepad, if it is "NULL=snapshot33", then
parameters x and y are screen coordinates.
By the way, ctrx_sync_on_window() not just waits
for window to appear become focused, but also
moves and resizes it to specified coordinates (of
course, if window itself allows moving/resizing).
Might mention that Snapshots are only Ctrx_key() and ctrx_type() are also able to save
created for mouse clicks and replay snapshots if need (though they do not save
sync_on_windows, so if a screen is recording snapshots). And ctrx_save_bitmap() will
manipulated that doesn't use a mouse click, help you to save snapshot at any place of your
then no snapshot will be generated. script.
Can you issue ctrx_execute_on_window Yes. This functions simply registers a trigger for a
before the connection to the citrix server specified window, it does not depend on session
has been made? state or any connection-specific data, so it is safe to
call it before the connection.
Are timing issues possible with Not sure what kind of issues this question is about.
ctrx_execute_on_window? Ctrx_execute_on_window does not wait in sleep like
synchronization functions, so it cannot fail due to
timeout. All handler functions are executed
sequentially one by one, so no race condition occurs
when one handler have to process several windows.
What is the best way to bring a window Try ctrx_sync_on_window() with ACTIVE flag. In this
into focus when there are several in front of case ctrx_sync_on_window() will try to bring
it on the desktop? window to top and set focus to it when it is not
focused.
Bitmap sync is not 100% reliable based on Answer is short: Do not run Citrix scripts in Service
our experience :( especially on win2008+ Mode.
where you cannot control the session 0 Citrix ICA protocol is GUI protocol, and Citrix Client is
when we are running BPM as service (what GUI software that was never intended to work in
is a must in enterprise services). We see non-interactive session. It might work fine, but it is
different hashes for same bitmaps. (We did not guaranteed to work.
compare them bitwise). Any hints what to
do when running BPM as service?
Does image sync work even if bitmap Im not sure what exactly Bitmap compression
compression is used in the session? does mean here. Citrix Client has 2 configuration
parameters: Session compression and Bitmap
caching none of them affects bitmap
synchronization.
If the question is about Citrix HDX codecs, I suppose
certain configurations can make image
synchronization unusable.
Where is the hash generated? Does the Hash is calculated by Citrix Client.
citrix server give the hash? Or does the
client generate the hash?
what is the function to use for wait time There is lr_think_time(NN) function that pauses
script execution for NN seconds.
If the question is about setting timeout value for
Citrix synchronization functions, then
ctrx_set_waiting_time () is what you are looking for.
Is that logoff recommendation in the usage Section Unexpected disconnect in LR User Guide -
guide or KB?
http://lrhelp.saas.hp.com/en/latest/help/WebHelp/
Content/VuGen/130350_tl_citrix.htm#hp-minitoc-
item-4

Das könnte Ihnen auch gefallen