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
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?
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.
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?
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 firstname.lastname@example.org.
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?