Answer by Andreas G. ·
I just found the following page - http://www.myloadtest.com/loadrunner-11-5/ - seems like Load Runner allows you to specifc custom HTTP Headers through their TruClient. So - instead of testing through Citrix maybe you can do it via TruClient?
Answer by Andreas G. ·
Not that easy if you drive the browser through Citrix. The only option might be a proxy tool such as Fiddler that you could install on that virtual machine. Fiddler could then add the X-dynaTrace header. but i wouldnt know how you tell fiddler to use a different value for every transaction that you execute.
Why not use HTTP based scripts?
Application I am using is a client–> Server architecture hosted on Citrix Virtual Machines.
In that case we dont offer any tagging - we only offer it for HTTP-based protocols.
If you run the test in a certain timeframe simply focus on the purepaths that came in during that timeframe. that should make it easier.
Answer by Sadasiva O. ·
Thanks Andi.
I have these questions exactly in my mind. I am able to capture the purepaths but was not able to identify easily that this purepath was from which transaction.
Do you think is there any other way of tagging LR transactions with DT to identify the purepaths with transaction names.
Sada
Answer by Andreas G. ·
The "Script Converter" only works for HTTP based scripts. But - whatever application you are testing with Load Runner - dynaTrace will capture PurePaths. The only thing you additionally get with HTTP Scripts is that dynaTrace will also know what test script created that PurePath. But - you can test any App with LR through any Protocol. If you have dynaTrace Installed on the application that you are testing you are going to get PurePaths
Answer by Sadasiva O. ·
Hi Andi,
Thanks for the quick response.
So can I understand LR integration with DT will work only for the scripts developed in HTTP/HTML based protocols and not for the other protocol based LR scripts.
Sada
Answer by Andreas G. ·
Hi.
I am not a LR expert but I assume that the ICA Support of Loadrunner is really driving the Citrix Session via their ICA Protocol. The LR Script Converter from dynaTrace is targeted for Web Load Tests of Load Runner. The web_add_header will add a custom HTTP Header to web requests executed by Load Runner so that they can be identified by dynaTrace.
This will not work with Citrix - thats why you see the error.
Andi
Answer by Sadasiva O. ·
Hi There,
I have recorded a script in LoadRunner using Citrix ICA protocol and trying to integrate with DT. I did it using DT client by going through Tools--> LoadRunner Script convertor and it has created the below mentioned code in global.h file.
void addDynaTraceHeader(char* header){
char* headerValue;
int headerValueLength;
int vuserid, scid;
char *groupid, *timestamp;
char* vuserstring=(char*) malloc(sizeof(char) * 10);
web_save_timestamp_param("TimeStamp", LAST);
timestamp=lr_eval_string("{TimeStamp}");
lr_whoami(&vuserid, &groupid, &scid);
itoa(vuserid,vuserstring,10);
headerValueLength = strlen(header) + 4 + strlen(vuserstring) + 4 + strlen(timestamp) + 1;
headerValue = (char*) malloc(sizeof(char) * headerValueLength);
strcpy(headerValue, header); strcat(headerValue,";VU=");
strcat(headerValue,vuserstring);
strcat(headerValue,";ID=");
strcat(headerValue,timestamp);
web_add_header("X-dynaTrace", headerValue);
free(headerValue);
free(vuserstring);
}
The script was throwing an error while running and the error was "undeclared identifier `LAST'". Can someone help me in fixing this issue
JANUARY 15, 3:00 PM GMT / 10:00 AM ET