NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
New Member.
710 views

Loadrunner - Recording issues Web_Custom_Request / Web_Submit_Data

Hi,

 

I have an issue recording with LR 11. Hopefully I will be able to explain it correctly, so you can help me :D.

 

- First I recorded my script against an environment with MSQL 2005 as DB and MS Server 2002 as O.S. When I recorded here everything was OK. Parameterization and Correlation were easy to identified and to work with.

 

web_submit_data("Report.aspx_2",
"Action=http://prdc-ppr-rpt212/Reports$REPSINST/Pages/Report.aspx?ItemPath=%2fWarrant+Reporting%2fOperational+Reports%2fWarrant+Payments+Report+(RPT_WRT020)",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://prdc-ppr-rpt212/Reports$REPSINST/Pages/Report.aspx?ItemPath=%2fWarrant+Reporting%2fOperational+Reports%2fWarrant+Payments+Report+(RPT_WRT020)",
"Snapshot=t66.inf",
"Mode=HTML",
ITEMDATA,
"Name=ctl04", "Value=ctl04|ctl32$ctl04$ctl03$txtValue", ENDITEM,
"Name=__EVENTTARGET", "Value=ctl32$ctl04$ctl03$txtValue", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={viewState}", ENDITEM,
"Name=NavigationCorrector$ScrollPosition", "Value=", ENDITEM,
"Name=NavigationCorrector$ViewState", "Value=", ENDITEM,
"Name=NavigationCorrector$PageState", "Value=Loaded", ENDITEM,
"Name=NavigationCorrector$NewViewState", "Value=", ENDITEM,
"Name=ctl32$ctl03$ctl00", "Value=", ENDITEM,
"Name=ctl32$ctl03$ctl01", "Value=", ENDITEM,
"Name=ctl32$ctl10", "Value=", ENDITEM,
"Name=ctl32$ctl11", "Value=quirks", ENDITEM,
"Name=ctl32$AsyncWait$HiddenCancelField", "Value=False", ENDITEM,
"Name=ctl32$ctl04$ctl03$txtValue", "Value=01/01/2014", ENDITEM,
"Name=ctl32$ctl04$ctl05$txtValue", "Value=27/05/2015", ENDITEM,
"Name=ctl32$ctl04$ctl07$txtValue", "Value=", ENDITEM,
"Name=ctl32$ctl04$ctl09$txtValue", "Value=", ENDITEM,
"Name=ctl32$ctl04$ctl11$ddValue", "Value=2", ENDITEM,
"Name=ctl32$ctl04$ctl13$ddValue", "Value=0", ENDITEM,
"Name=ctl32$ctl04$ctl15$ddValue", "Value=18", ENDITEM,
"Name=ctl32$ToggleParam$store", "Value=", ENDITEM,
"Name=ctl32$ToggleParam$collapse", "Value=false", ENDITEM,
"Name=ctl32$ctl08$ClientClickedId", "Value=", ENDITEM,
"Name=ctl32$ctl07$store", "Value=", ENDITEM,
"Name=ctl32$ctl07$collapse", "Value=false", ENDITEM,
"Name=ctl32$ctl09$VisibilityState$ctl00", "Value=None", ENDITEM,
"Name=ctl32$ctl09$ScrollPosition", "Value=", ENDITEM,
"Name=ctl32$ctl09$ReportControl$ctl02", "Value=", ENDITEM,
"Name=ctl32$ctl09$ReportControl$ctl03", "Value=", ENDITEM,
"Name=ctl32$ctl09$ReportControl$ctl04", "Value=100", ENDITEM,
"Name=__ASYNCPOST", "Value=true", ENDITEM,
LAST);


- A migration to a new update server was executed a couple of days ago. Now, the environment I’m working with is MSQL 2012 as DB and MS Server 2008 as O.S. The same recording is different and it seems that the data gathered from LR is encoded and LR can’t decoded.

 

web_custom_request("Report.aspx_2",
"URL=http://prdc-ppr-rpt212/Reports$REPSINST/Pages/Report.aspx?ItemPath=%2fWarrant+Reporting%2fOperational+Reports%2fWarrant+Payments+Report+(RPT_WRT020)",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=http://prdc-ppr-rpt212/Reports$REPSINST/Pages/Report.aspx?ItemPath=%2fWarrant+Reporting%2fOperational+Reports%2fWarrant+Payments+Report+(RPT_WRT020)",
"Snapshot=t88.inf",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=utf-8",
"Body=ctl04=ctl04%7Cctl32%24ctl04%24ctl03%24txtValue&__EVENTTARGET=ctl32%24ctl04%24ctl03%24txtValue&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE="wEPDwUENTM4MQ8WAh4RUGFnZVZpZXdTdGF0ZVRpbWUoKVlTeXN0ZW0uSW50NjQsIG1zY29ybGliLCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4ORI2MzU2ODMxODg2OTUyNDA3ODYWAgIBD2QWAgIDD2QWAmYPZBYCAgEPZBYCZg9kFgZmDxYCHgdWaXNpYmxlaGQCAQ9kFgJmD2QWAmYPZBYCZg8WCB4GdmFsaWduBQN0b3AeBmhlaWdodAUCMzAeB2NvbHNwYW4FATQeBWNsYXNzBRRtc3JzLXZhbGlkYXRpb25lcnJvcmQCAg9kFgICAQ9kFgJmD2QWAmYPZBYCZg9kFgJmD2QWAmYPZBYCZg9kFgRmDxYCHwFoZAIBD2QWAmYPZBYCZg8WAh8DBQQxMDAlFgQCAQ9kFgQCAQ8WAh4FVmFsdWVkZAIDD2QW"&NavigationCorrector%24ScrollPosition=&NavigationCorrector%24ViewState=&NavigationCorrector%24PageState=Loaded&NavigationCorrector%24NewViewState=&ctl32%24ctl03%24ctl00=&ctl32%24ctl03%24ctl01=&ctl32%24ctl10=&ctl32%24ctl11=quirks&ctl32%24AsyncWait%24HiddenCancelField=False&ctl32%24ctl04%24ctl03%24txtValue=01%2F01%2F2014&ctl32%24ctl04%24ctl05%24txtValue=27%2F05%2F2015&ctl32%24ctl04%24ctl07%24txtValue=&"ctl32%24ctl04%24ctl09%24txtValue=&ctl32%24ctl04%24ctl11%24ddValue=2&ctl32%24ctl04%24ctl13%24ddValue=0&ctl32%24ctl04%24ctl15%24ddValue=18&ctl32%24ToggleParam%24store=&ctl32%24ToggleParam%24collapse=false&ctl32%24ctl08%24ClientClickedId=&ctl32%24ctl0724store=&ctl32%24ctl07%24collapse=false&ctl32%24ctl09%24VisibilityState%24ctl00=None&ctl32%24ctl09%24ScrollPosition=0%200&ctl32%24ctl09%24ReportControl%24ctl02=&ctl32%24ctl09%24ReportControl%24ctl03=&ctl32%24ctl09%24ReportControl%24ctl04=100&"
"__ASYNCPOST=true&",
LAST);


- Besides, if you have noticed, LR treated the calls differently. In the first recording it was WEB_SUBMIT_DATA, while now is WEB_CUSTOM_REQUEST.

 

My guess is that the new migration server has more security and therefore more encryption and LR can’t handle it and is not able to decrypt it in a proper way.

 

Is there any option I can activate in LR in order to record the scripts as in the old version?

 

Thanks in advance for your help.

 

Regards,
Jesus.

 

0 Likes
1 Reply
Highlighted
New Member.

I am also struck with the same issue.

Have you got any solution for this?

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.