how to convert %2F,%2B in web custom request

686 views
Skip to first unread message

sudhakar bandaru

unread,
May 5, 2011, 7:02:25 AM5/5/11
to lr-loa...@googlegroups.com
Hi ALL;
 
In My Application Iam Getting the web_custom _request.i have to convert that into URL mode.
 
In web_custom _request iam Getting the View state as   ViewState="OGbrYMOA594577AbNVfMfmMVg3uiXyHYjzt3xc7thPDAhJK18umOnTTAtbDIKICGsmnCdUCdCV9GR0xlyP%2BxO%2Fqempc3uWtUDXFm41hVoU %2F jVn8oLEsc4UGVrdldfQUi.
 
I wrote the function for viewstate as web_reg_save_param("cmacys","LB=javax.faces.ViewState\" id=\"javax.faces.ViewState\" value=","RB=\" /></","ORD=ALL",LAST);
After Running the script,in Repaly log Iam Getting the value as   "OGbrYMOA594577AbNVfMfmMVg3uiXyHYjzt3xc7thPDAhJK18umOnTTAtbDIKICGsmnCdUCdCV9GR0xlyP+xO/qempc3uWtUDXFm41hVoU/jVn8oLEsc4UGVrdldfQUi".
 
how to convert %2B ,%2F And %2F into + , / and /. iam Getting the %2f Twice.
 
i wrote the function for web convert  like  web_convert_param("ckey","SourceString={cmacys}","SourceEncoding=HTML","TargetEncoding=URL",LAST);
 
 
I have Attached the Action part, Can any one help me how to write function for converting the %2B and %2F and where I have to put that function in script.
 
Thanks In Advance,
 
Regards,
Sudhakar. 
actionpart.txt

Pallavi Shetty

unread,
May 5, 2011, 7:51:17 AM5/5/11
to lr-loa...@googlegroups.com
Hi,
 
Insert a attribute "CONVERT=HTML_TO_URL" in web reg save param function.
 
web_reg_save_param("cmacys",
"LB=javax.faces.ViewState\" id=\"javax.faces.ViewState\" value=",
"RB=\" /></",
"CONVERT=HTML_TO_URL",
LAST);

Thanks,
Pallavi
--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

umamahes wararao

unread,
May 6, 2011, 3:46:51 AM5/6/11
to lr-loa...@googlegroups.com
Sudhakar,
 
Before inserting the web_convert_param function check where exactly you required means before the request or after completion of step converting. Based on that put convert function.

--
With Cheers,

S.V.UmamaheswaraRao
Mobile: +91-9703606358
Reply all
Reply to author
Forward
0 new messages