LR的x-www-form-urlencoded问题
本帖最后由 连天碧草 于 2016-5-5 12:13 编辑用LR录制脚本之后,脚本回放不能生成数据,仔细分析了下,有一个消息体发送到应用程序,但是由于涉及到转译字符,不知道怎么解决,现把脚本放上,希望有高手指点下,谢谢!
PS:举个例子,比方lixiao%40qq.com实际上是lixiao@qq.com,@变成了%40。
web_custom_request("Cn189DrawupDemo.do", "URL=http://localhost:9070/ygz/efp/debug/service/Cn189DrawupDemo.do",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://localhost:9070/ygz/efp/debug/cn189_efp_debug.form?__current_menu_code=EFP.DEBUG.CN189",
"Snapshot=t28.inf",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=UTF-8",
"Body=drawer=K34&drawerName=%E5%BC%80%E7%A5%A8%E5%91%98&smsPhone=18900000000&smsEmail=lixiao%40163.com&ifImmediate=1&accountMonth=2016-05-03&sellUnitCode=A3201&consumerPhone=&consumerFixedline=&consumerBroadband=&idCardNO=&taxCode=&taxName=%E4%B8%AA%E4%BA%BA&bank=&addr=&tel=&cashier=&checker=&orderNo=2016050316367&orderTotalMoney=1220&memo=&contextPath=http%3A%2F%2Flocalhost%3A9070%2Fygz&goodsList="
"%3Ctable%20level%3D%220%22%3E%0D%0A%09%3Crow%3E%0D%0A%09%09%3CitemName%3E%E4%BA%8B%E9%A1%B9%E5%90%8D%E7%A7%B0%3C%2FitemName%3E%0D%0A%09%09%3CitemDesc%3E%E6%8F%8F%E8%BF%B0%3C%2FitemDesc%3E%0D%0A%09%09%3Cstandard%3E%E5%9E%8B%E5%8F%B7%3C%2Fstandard%3E%0D%0A%09%09%3CmeasureUnit%3E%E5%8D%95%E4%BD%8D%3C%2FmeasureUnit%3E%0D%0A%09%09%3Cnum%3E2.00%3C%2Fnum%3E%0D%0A%09%09%3Cprice%3E{price}%3C%2Fprice%3E%0D%0A%09%09%3Camount%3E1220.00%3C%2Famount%3E%0D%0A%09%09%3CtaxRate%3E0.0%3C%2FtaxRate%3E%0D%0A%09%09%3Cta"
"xAmount%3E0.00%3C%2FtaxAmount%3E%0D%0A%09%09%3CtaxMode%3E1%3C%2FtaxMode%3E%0D%0A%09%09%3CtaxableType%3E1%3C%2FtaxableType%3E%0D%0A%09%09%3CifJZJT%3E1%3C%2FifJZJT%3E%0D%0A%09%09%3CdeclarationMode%3E1%3C%2FdeclarationMode%3E%0D%0A%09%3C%2Frow%3E%0D%0A%3C%2Ftable%3E%0D%0A&__is_workflow_post=false&__current_menu_code=EFP.DEBUG.CN189&__current_wf_instance_id=&__current_wf_node=&__current_form_id=cn189_efp_debug&__current_part_id=null&__current_button_id=btnDebug&__current_sessionId="
"6cc47d8e-37af-4832-9047-dabc72a9f548",
LAST);
这个我听别人说过,涉及到转译字符的,好像只能让开发改下代码,去掉转译,测试完后再让开发改回来,我也不知道对不对。关注中~~~~~
页:
[1]