LoadRunner Support Forum
Showing results for 
Search instead for 
Do you mean 

Correlation of Binary data using Load Runner

Occasional Contributor

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

19 REPLIES
Advisor

Re: Correlation of Binary data using Load Runner

Hi Anil,

Have you recorded using winsock protocol.

Regular Advisor Regular Advisor

Re: Correlation of Binary data using Load Runner

Please find the attached document.It will help you to correlate.
Occasional Contributor

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 Valued Contributor

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 Regular Advisor

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

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 Valued Contributor

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 Valued Contributor

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

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

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 Valued Contributor

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

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

Re: Correlation of Binary data using Load Runner

Hi,

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

Occasional Advisor

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

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

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

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?

Regular Visitor

Correlation of Binary data using Load Runner

[ Edited ]

Hi,

 

We are facing issue with Binary data(\x14\x03\x01\x00\x01\x01\x16\x03\x01\x00) in LoadRunner.We need to record the script with readable format rather than seeing in binary data format.

 

We are not able to correlate or find the original value for paramerisation  in the script

 

Atleast we need to know how we can check in the code generation for the first response.

 

 

If I try to find the binary body values in the code generation log,I couldn't able to find the response value in it .

 

Please kindly provide some useful solution and ideas  that can help us.

Occasional Visitor

Re: Correlation of Binary data using Load Runner

 Please advise how to set data compression to FALSE:

Location of config file