Correlation of Binary data using Load Runner (4187 Views)
Reply
Occasional Contributor
medikondaanil
Posts: 7
Registered: ‎02-20-2008
Message 1 of 18 (4,187 Views)

Correlation of Binary data using Load Runner

[ Edited ]

Hi,

I would request to provide me some information about correlating the binary data using Load Runner.

I would appreciate if you could provide some article or document on this.

Please feel free to help me on this.

Thanks
Anil

 

 

P.S. this thread has been moved from Performance Center Support and News Forum to LoadRunner Support Forum. - Hp Forum moderator

Advisor
Sarathbabu
Posts: 11
Registered: ‎03-13-2008
Message 2 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Hi Anil,

Have you recorded using winsock protocol.

Regular Advisor
Suman jha_1
Posts: 110
Registered: ‎11-29-2007
Message 3 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Please find the attached document.It will help you to correlate.
Occasional Contributor
medikondaanil
Posts: 7
Registered: ‎02-20-2008
Message 4 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Suman,

Thanks for your response.

I am not able to open the file from the zip.

If possible please send me the same to amedikonda@com.

Thanks in advance
Anil
Valued Contributor
Prakash K_1
Posts: 150
Registered: ‎03-11-2008
Message 5 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Use web_reg_save_param function with the following boundaries - "LB=\r\n\r\n", "RB=". These boundaries allows to capture the whole data from a body of server's response. Function will look like:
web_reg_save_param("LogoImage", "LB=\r\n\r\n", "RB=", LAST);

This function should be placed before web_url function. After execution, LogoImage parameter will contain GIF-file.

I will clarify briefly the meaning of boundaries - "LB=\r\n\r\n" and "RB=".
Please, read the basic concepts of HTTP protocol, read Request message section:

HTTP response consists of the following:
â ¢ Headers, such as HTTP/1.1 200 OK or Content-Length: 3473
â ¢ An empty line
â ¢ A message body, containg text of requested page or file
So, Header and Message body should be separated by empty line.
First CRLF (that is, a carriage return (CR = "\r") followed by a line feed (LF = "\n")) ends last header, and second CRLF ( = "\r\n") creates empty line. All data, followed by second CRLF, are treated as message body.
To summurize - "LB=\r\n\r\n" says "start capturing from the beginning of message body", empty right boundary "RB=" says "capture data till the end of message".

Open LoadRunner and enable logging of data, returned by server:

Then execute script containing initial web_url function, and open Replay log:
As you see, Replay log contains "\r\n\r\n" at the end of server's response.
Also, pay attention, that server returns the length of file to be downloaded
Regular Advisor
Suman jha_1
Posts: 110
Registered: ‎11-29-2007
Message 6 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Your Mail Id is bouncing.By the i am attaching again.If you are using Winsocket the correlate as it is given in attached file.
If you are not using winsocket then correlate as follows:-

The left boundary is composed of 3F and DD. The right boundary is composed of CC and b.
web_reg_save_param("ParamName", "LB/BIN=\\x3F\\xDD", "RB/BIN=\\xCCb", LAST);

Whatever boundary,Use BIN with LB and RB,then it will work.I faced same problem previously
Occasional Contributor
medikondaanil
Posts: 7
Registered: ‎02-20-2008
Message 7 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Hi,

I am having "BodyBinary" in my script where it is having "SessionID" and we are not seeing this session anywhere in the server responce. We have executed the script by enabling Extended log with "Data Returned by the server" & "Advance Trace".

Please let me know if you have any idea what is this "BodyBinary"? and what is the purpose?

Thanks in advance
Valued Contributor
Prakash K_1
Posts: 150
Registered: ‎03-11-2008
Message 8 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

The problems is due to the data compression.
set the data compression flag to FALSE in the config file.

Also try with some different recording options to get the server response.
Valued Contributor
Prakash K_1
Posts: 150
Registered: ‎03-11-2008
Message 9 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Anil

Try this..

Use search=Body or Search=ALL.

Like this:

web_reg_save_param("pRetText","Search=Body", "ORD=ALL",
Occasional Advisor
Pra_2
Posts: 10
Registered: ‎05-30-2008
Message 10 of 18 (4,187 Views)

Re: Correlation of Binary data using Load Runner

Hey Suman,
I am unable to open the zip file you attached in here. Is it possible for you to email me the file. It would be of much help to me. Please fwd it to prashanth116@gmail.com. I appreciate it.
Occasional Advisor
Pra_2
Posts: 10
Registered: ‎05-30-2008
Message 11 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hello,

I am working on a Java application with a lot of Ajax functionality. I am using LR 8.1 with web http/html protocal to script.

Attached is a sample of the script.

The body binary in here is a lot of alpha numeric data which needs to be correlated. Any ideas on how to handle this? There isnâ t any session id in the data, so do I correlate the total set of hexadecimal binarybody returned? What is it that I need to be looking for? Do I need to first convert the data? Forgive my ignorance and pls advise.

I am also in the process of upgrading to LR9.1 to deal with ajax.
Valued Contributor
Prakash K_1
Posts: 150
Registered: ‎03-11-2008
Message 12 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Form you attached given the below correlation fucntion

web_reg_save_param("ParamName","LB/BIN=\\xFF\\xFE", "RB/BIN=n\\x00", LAST);

Pls try this .
Occasional Visitor
Bismaya
Posts: 3
Registered: ‎07-03-2008
Message 13 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hi Suman,

Could you please resend the attached document, as reference of correlation in winsock. The attachement is corrupted, please send it to my personal ID bismaya.pattanayak@gmail.com.

Thanks & Good luck
Bismaya
Advisor
vinuthavg
Posts: 25
Registered: ‎02-22-2010
Message 14 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hi,

can you please provide me the steps to set the compression flag?

Occasional Advisor
satishrao
Posts: 12
Registered: ‎10-29-2009
Message 15 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hi,
I wanted to know if Loadrunner is able to support sending binary data through a UDP protocol to a generic application on a unix\linux server (no HTTP\Web based application here) ? If yes, then how do I go about programming it?
Advisor
rk009
Posts: 14
Registered: ‎09-13-2010
Message 16 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hi,
I am also facing same issue,my application having lot of ajax popup's, script recorded with http/html, winsock protocol. but unable to see any sessionid's in script..so, unable to correlate the script, please suggest on this..if you have any related document pls send to rakumar13@yahoo.co.in.

thanks,
RK
Occasional Visitor
Jay Dhingara
Posts: 1
Registered: ‎12-29-2010
Message 17 of 18 (4,183 Views)

Re: Correlation of Binary data using Load Runner

Hi,

I am recroding a .net application using winscok protocol. I am getting this error.

vuser_init.c(2172): Mismatch in buffer's length (expected 43 bytes, 7 bytes actually received, difference in 36 bytes)
================================EXPECTED BUFFER================================
"\x14\x03\x01\x00\x01\x01\x16\x03\x01\x00"
" "
"\xb6"
"W"
"\x1b\xa1\xde"
"|L7"
"\xb7\xd0\x8c"
"A"
"\xfe\xf1"
"0o"
"\xf1\x9b\xba\xae"
"v"
"\xbd"
"\n"
"\xd3\x10\x85"
"a-"
"\x96"
"X"
"\xe3"
"r"
===============================================================================
================================RECEIVED BUFFER================================
"\x15\x03\x01\x00\x02\x02"
"("
===============================================================================
vuser_init.c(2174): lrs_send(socket2, buf1074)
vuser_init.c(2174): Warning: The string '\x81e^\xb9\x13J\x8as\xc3\xa7K' with parameter delimiters is not a parameter.
vuser_init.c(2174): Warning: The string 'D\xd0K\xc4X\x863\xb3\x1f\x99)\xe4\xe2A\xe1\xef' with parameter delimiters is not a parameter.
vuser_init.c(2176): lrs_receive(socket2, buf1075)
vuser_init.c(2176): Error : socket2 - Software caused connection abort. Error code : 10053.
vuser_init.c(2176): Notify: Transaction "Log_in" ended with "Fail" status (Duration: 0.0808)

Few other questions?
How can you find out that which buffer number is having session ID? In the sample pdf buf35 has PID? How did you find out that buf35 has PID and send Buf 54 also have the same PID?

Please help....

Occasional Visitor
Ajit_Lal
Posts: 1
Registered: ‎11-01-2013
Message 18 of 18 (2,919 Views)

Re: Correlation of Binary data using Load Runner

Hi Suman,

 

I do faced the same problem. Did you get any solution , then do share with me.

 

I was using http/html protocol to record the application and succesfully done teh scripting on one version.

 

In the next version, to improve the performance, development team used compression technology in the code and impact of that was while recording, i am getting binary data in the requests.

 

How to decode or solve thsi problem?

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.