Difference between revisions of "LoadRunner Code Snippets 2"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (New page: __TOC__ =Some More LoadRunner Code Snippets= ==Write Page Content to File== <pre> </pre> Category:LoadRunner) |
PeterHarding (talk | contribs) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
<pre> | <pre> | ||
web_reg_save_param("body", | |||
"LB/IC=<body>", | |||
"RB/IC=</body>", | |||
"Search=Body", | |||
LAST); | |||
web_custom_request("BSPWDApplication.do", | |||
"URL=http://xxxx:8000/sap(xxxx==)/bc/bsp/sap/crm_ui_frame/Application.do?id=0&sap-client=099&sap-language=EN", | |||
"Method=POST", | |||
"Resource=0", | |||
"RecContentType=text/html", | |||
"Referer=http://xxxx:8000/sap(xxxx==)/bc/bsp/sap/crm_ui_frame/Application.do?id=0&sap-client=031&sap-language=EN", | |||
"Snapshot=t100.inf", | |||
"Mode=HTTP", | |||
"Body=htmlbevt_ty=htmlb%3Abutton%3Aclick%3A0&htmlbevt_frm=myFormId&...C1_W1_V2_MYITSLOCATION=&sap-ajax_request=X&_=", | |||
LAST); | |||
if (pfp = fopen("0001.txt", "w")) { | |||
fprintf( pfp, "%s", lr_eval_string("{body}")); | |||
fclose(pfp); | |||
} | |||
</pre> | </pre> | ||
[[Category:LoadRunner]] | [[Category:LoadRunner]] | ||
Latest revision as of 17:30, 24 September 2014
Some More LoadRunner Code Snippets
Write Page Content to File
web_reg_save_param("body",
"LB/IC=<body>",
"RB/IC=</body>",
"Search=Body",
LAST);
web_custom_request("BSPWDApplication.do",
"URL=http://xxxx:8000/sap(xxxx==)/bc/bsp/sap/crm_ui_frame/Application.do?id=0&sap-client=099&sap-language=EN",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://xxxx:8000/sap(xxxx==)/bc/bsp/sap/crm_ui_frame/Application.do?id=0&sap-client=031&sap-language=EN",
"Snapshot=t100.inf",
"Mode=HTTP",
"Body=htmlbevt_ty=htmlb%3Abutton%3Aclick%3A0&htmlbevt_frm=myFormId&...C1_W1_V2_MYITSLOCATION=&sap-ajax_request=X&_=",
LAST);
if (pfp = fopen("0001.txt", "w")) {
fprintf( pfp, "%s", lr_eval_string("{body}"));
fclose(pfp);
}