Hello,
We are currently working on a Loadrunner script for which the "Loadrunner script converter" does not work (Java VUser for simulating a Mobile Client with security etc...). We will build the headers ourselves, in the end Web request are being fired.
Looking at the funtion which normally gets created in a script which was converted I have a question :
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);
}
As far as I can see the header is made unique by the Timestamp in the above scenario.
Is it necessary to submit the ID= & VU= in the header for dynaTrace to see this request as unique? I can think of a high load scenario's where both will be the same.
By using a scenario with Groups the VU= nr would be the same, under high load the ID= (timestamp) could be the same effectively sending the same header for two different request, NA could also be the same.
Is this a problem, or is the dynaTrace agent capable of identifying these as unique requests anyway?
Thanks,
Patrick
Answer by Andreas G. ·
Hi.
The VU and ID field in our HTTP Header are optional but we decided to fill them with information that might be useful later on to correlate these requests back to the Load Runner requests.
dynaTrace is capturing EVERY single request anyway as a PurePath and will also respond our unique PurePath ID back to Load Runner as a response HTTP Header. So - if you want to find the actual PurePath for a specific Load Runner request the best is to look at this HTTP Response Header. Take this value and then search for this PurePath by using the Tools -> Search PurePath menu.
Analyzing Load Test results however are typically not done on individual requests - unless you follow an e.g: slow or failed request from the load runner report to dynaTrace. In this case the best really is the approach from above. If you analyze load testing results in dynaTrace I do however suggest you start with our Load Testing Dashboard that gives you an overview of all your executed tests & steps and from there analyze the hotspots for those steps (=Timer Names) that showed performance or functional problem
There is also a webinar that you might be interested in: dynaLearn Webinar - Load Testing Made Easy with dynaTrace 4.2 - August 1, 2012
JANUARY 15, 3:00 PM GMT / 10:00 AM ET