I am working on a performance test of Citrix application using Load Runner and Citrix Protocol.
I need to wait for a window to appear, and reading the documentation I see I can use one of those:
- ctrx_sync_on_window : Waits until a window is created or becomes active.
- ctrx_set_window_ex : Waits a specified time for a window to appear in the Citrix client
But reading their documentation, I don't clearly understand the difference except for the time factor and which one I should use.
I tried each of them, and they are working for me, but I don't know which one is the best.
First Option:
ctrx_sync_on_window("Notepad", ACTIVE, 0, 0, 801, 601, "snapshotXX", CTRX_LAST);
Second Option:
// Wait 5 seconds for Notepad popup to appear
ctrx_win_exist("Notepad",5)