Citirx Scripting.

112 views
Skip to first unread message

Rajasekhar

unread,
Sep 2, 2010, 7:25:21 AM9/2/10
to LoadRunner
Hi All,
I am facing an issue in validating the response from Citrix server
through LR Citrix ICA protocol.
From my Knowledge on Citrix:
1. Validating the Response in Citrix
 If we are navigating to a new window or pop-up’s we can do this by
using ctrx_sync_on_window ,unless we have a window name assigned to
the panes in the application.
At present we don’t have window names for all the pages and pop-up’s
in the application so I can’t go with this.

 If our action is within a particular window(or navigating to other
window) we can use ctrx_sync_on_bitmap (which checks for exact image
at the coordinates specified) or ctrx_sync_on_bitmap_change (which
checks whether bitmap got changed at the particular coordinates).
My Script is failing frequently by showing a Popup for sync on bitmap
as to stop or continue.
I want to know whether there are any other ways for validating the
response and synching up for the response.

Issue:We don’t have the Load runner Citrix agent installed in the
Citrix server .

because of compatibility,it seems loadrunnner doesn't have support to
windows server 2008.

Can you guys please help me a way to validate the response in a easy
way.


Val

unread,
Sep 2, 2010, 2:14:08 PM9/2/10
to lr-loa...@googlegroups.com, LoadRunner
Hi, I can suggest you a workaround..... Use Citrix Edgesight for loadtesting.
This is a Citrix load testing tool, you can look for details on their website.

Sent from My iPhone,

Val Weissman

> --
> You received this message because you are subscribed to the Google "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/LR-LoadRunner?hl=en

James Pulley

unread,
Sep 2, 2010, 2:46:25 PM9/2/10
to lr-loa...@googlegroups.com
I am confused by your statement, " because of compatibility,it seems loadrunnner doesn't have support to windows server 2008."

I have tested quite a few applications which use Windows Server 2008 as a back end for application servers, web servers and database servers. LoadRunner is able to pull the monitor metrics for the platform quite well, including the installed services (such as SQL Server or ORACLE). Perhaps it is not whether you can have Windows Server 2008 involved in your test environment, but how very precisely Windows Server 2008 is installed in your test environment. Note: In a decade and a half of continuous LoadRunner use I have yet to find a dependency in LoadRunner itself which mandates installation on a box with domain management, directory services hosting, network file and print services installed or a 64-bit OS.

James Pulley, http://www.loadrunnerbythehour.com/PricingMatrix

chaitanya bhatt

unread,
Sep 3, 2010, 4:48:55 AM9/3/10
to lr-loa...@googlegroups.com
>Rajasekhar <rajasekhar...@cognizant.com> wrote
>Issue:We don’t have the  Load runner Citrix agent installed in the
>Citrix server .
Err? There is no need to install LoadRunner agent on the xenapp servers. Only the LoadGenerator machines should have the Citrix Xenapp hosted application agent and LR agent installed on it during execution.
 
>I want to know whether there are any other ways for validating the
>response and synching up for the response
You can use ctrx_get_bitmap_value as an alternate option to ctrx_sync_on_bitmap function. The later being extremely buggy, I found ctrx_get_bitmap_value as an extremely efficient alternative function.
 
Example:
int ScreenFoundFlag=0;
int timeout=0;
char * buffer;
while(ScreenFoundFlag!=1 || timeout<10)
{
ctrx_get_bitmap_value(303, 278, 104, 45, buffer);//I copied the x-y position, height and width from sync_on_bitmap function.
 if(strcmp(buffer, "18995cd3169bcba68dxe2af92a2a9ed5")==0)
       {
                ScreenFoundFlag=1;//break from the loop if hash value maches the expected value.
       }
 else
      {
               timeout++;//helps you to break the loop if loop count exceeds the max time limit.
               lr_think_time(1);     
      }
         
}
 
Note: The hash value that I used here was generated by ctrx_sync_on_bitmap function. If you have piped multiple hash values, then use the OR(||) operator in the IF condition to compare all the piped hash values.
 
Also check if all your LG machines have the same color depth.

-Chaitanya M Bhatt
 
Reply all
Reply to author
Forward
0 new messages