The difference between web_submit_data () and web_submit_form () in loadrunner
The difference between web_submit_data () and web_submit_form ()
When recording web_submit_form, it will determine whether there is cache content in the browser. If there is a web_submit_form function, only save and cache different data.
For example: web_submit_form ("login.action"
"Snapshot=t15.inf"
ITEMDATA
"Name=user.email", "Value=yinyongjie01@163.com", ENDITEM
"Name=user.password", "Value=110110", ENDITEM
LAST)
When recording web_submit_data (), there is no need to judge whether the browser has cache or not. All the recorded data is saved in the web_submit_data () function.
For example: web_submit_data ("login.action"
"Action= http://192.168.198.133:8080/dangdang_dk/user/login.action",
"Method=POST"
"RecContentType=text/html"
"Referer= http://192.168.198.133:8080/dangdang_dk/user/loginForm.jsp",
"Snapshot=t18.inf"
"Mode=HTML"
ITEMDATA
"Name=struts.token.name", "Value=struts.token", ENDITEM
"Name=struts.token", "Value=CH06XNE9MDW7Q0QOKVDYFWRDAZ3DEMTR", ENDITEM
"Name=user.email", "Value=yinyongjie06@163.com", ENDITEM
"Name=user.password", "Value=110110", ENDITEM
LAST)