Geeks Talk

Prepare for your Next Interview




winsock scripting

This is a discussion on winsock scripting within the LoadRunner forums, part of the Software Testing category; I am currently scripting a client server application using Winsock+Oracle 2 tier protocol using LoadRunner. I am able to record my application successfully, but when i replay . recieved buffer "\...


Go Back   Geeks Talk > Software Testing > LoadRunner

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2008
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
testingma is on a distinguished road
winsock scripting

I am currently scripting a client server application using Winsock+Oracle 2 tier protocol using LoadRunner. I am able to record my application successfully, but when i replay .

recieved buffer

"\x01"
";"
"\x00\x00\x06\x00\x00\x00\x00\x00"
"\b"
"\x01"
"\n"
"\x01\x13\x13"
"AUTH_VERSION_STRING"
"\x01\x12\x12"
"- 64bit Production"
"\x00\x01\x10\x10"
"AUTH_VERSION_SQL"
"\x01\x02\x02"
"20"
"\x00\x01\x13\x13"
"AUTH_XACTION_TRAITS"
"\x01\x01\x01"
"3"
"\x00\x01\x0f\x0f"
"AUTH_VERSION_NO"
"\x01"
"\t\t169870080"
"\x00\x01\x13\x13"
"AUTH_VERSION_STATUS"
"\x01\x01\x01"
"0"
"\x00\x01\x15\x15"
"AUTH_CAPABILITY_TABLE"
"\x00\x00\x01\x0f\x0f"
"AUTH_SESSION_ID"
"\x01\x03\x03"
****"261"************
"\x00\x01\x0f\x0f"
"AUTH_SERIAL_NUM"
**********"\x01\x04\x04"
"6981"**************
"\x00\x01\x10\x10"
"AUTH_INSTANCE_NO"
"\x01\x01\x01"
"1"
"\x00\x01\x10\x10"
"AUTH_FAILOVER_ID"
"\x01\x01\x01"
"1"
"\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x03\x00\x00"

The star markd values need to be captured and i have used the function lrs_save_param("socket1", LRS_LAST_RECEIVED, "C_id2", 214, 3); to correlate the values. But its throughing en error.

lrs_save_param(socket1, get_last_received_buffer, C_id2, 214, 3)
Action.c(127): Error : save param parameter is invalid. Error code : 9005.

till the below part its bufferd
"\x01"
";"
"\x00\x00\x06\x00\x00\x00\x00\x00"
"\b"
"\x01"
"\n"
"\x01\x13\x13"

from the below part its not bufferd

"AUTH_VERSION_STRING"
"\x01\x12\x12"
"- 64bit Production"
"\x00\x01\x10\x10"
"AUTH_VERSION_SQL"
"\x01\x02\x02"
"20"
"\x00\x01\x13\x13"
"AUTH_XACTION_TRAITS"
"\x01\x01\x01"
"3"
"\x00\x01\x0f\x0f"
"AUTH_VERSION_NO"
"\x01"
"\t\t169870080"
"\x00\x01\x13\x13"
"AUTH_VERSION_STATUS"
"\x01\x01\x01"
"0"
"\x00\x01\x15\x15"
"AUTH_CAPABILITY_TABLE"
"\x00\x00\x01\x0f\x0f"
"AUTH_SESSION_ID"
"\x01\x03\x03"
"261"
"\x00\x01\x0f\x0f"
"AUTH_SERIAL_NUM"
"\x01\x04\x04"
"6981"
"\x00\x01\x10\x10"
"AUTH_INSTANCE_NO"
"\x01\x01\x01"
"1"
"\x00\x01\x10\x10"
"AUTH_FAILOVER_ID"
"\x01\x01\x01"
"1"
"\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x03\x00\x00"

could you please let me know the way to proceed from this.
server database is 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-05-2008
Junior Member
 
Join Date: Jul 2008
Location: India
Posts: 28
Thanks: 0
Thanked 2 Times in 1 Post
j7777 is on a distinguished road
Re: winsock scripting

Make sure that there is no other value which needs correlation before the occurecne of the value that you are correlating.
Try to use left and right boundary for correlation. For example:
lrs_save_searched_string("socket0", LRS_LAST_RECEIVED, "Parameter2", "LB/BIN= ", "RB/BIN=G", 9, 0, -1);

Last edited by j7777 : 08-05-2008 at 05:41 AM.
Reply With Quote
Reply

  Geeks Talk > Software Testing > LoadRunner


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Winsock oracle2tier protocol scripting error testingma LoadRunner 0 07-18-2008 07:22 PM
Bytes Mismatch error in Winsock Scripting minorkunju LoadRunner 0 06-23-2008 03:07 AM
help needed in winsock script in LR balajip82 LoadRunner 0 05-14-2008 08:56 AM
Corrlation problem in winsock script balajip82 LoadRunner 0 05-07-2008 01:55 AM
winsock protocol balajip82 LoadRunner 1 02-19-2008 08:38 AM


All times are GMT -4. The time now is 08:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved