LoadRunner 回放问题
web_submit_data("PredepositAccounts.aspx","Action=http://192.168.1.251:8888/FillUpMoney/PredepositAccounts.aspx?type=CreateID&ID=1369",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.251:8888/FillUpMoney/PredepositAccounts.aspx?type=CreateID&ID=1369",
"Snapshot=t70.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={MyViewState}", ENDITEM,
"Name=__EVENTVALIDATION", "Value={MyEventValidation}", ENDITEM,
"Name=txtStaffId", "Value=jiaxin3", ENDITEM,
"Name=txtName", "Value=jiaxin3", ENDITEM,
"Name=txtDeptName", "Value=jiaxin3", ENDITEM,
"Name=txtDeptShortName", "Value=jiaxin3", ENDITEM,
"Name=txtCity", "Value=沈阳", ENDITEM,
"Name=txtThirdWord", "Value=", ENDITEM,
"Name=txtLinkMan", "Value=jiaxin3", ENDITEM,
"Name=txtLinkPhone", "Value=12312321321", ENDITEM,
"Name=txtAddr", "Value=", ENDITEM,
"Name=txtPost", "Value=123212", ENDITEM,
"Name=txtAliPayAccount", "Value=12312@yahoo.com", ENDITEM,
"Name=txtAdvanceAccount", "Value=112fs", ENDITEM,
"Name=txtPhone", "Value=12345678", ENDITEM,
"Name=txtDummyAccountCount", "Value=0", ENDITEM,
"Name=rbtnFillUpMoney", "Value=1", ENDITEM,
"Name=rabtnS", "Value=下级承担", ENDITEM,
"Name=txtFL", "Value=0.0", ENDITEM,
"Name=txtAliLinkName", "Value=ccdd", ENDITEM,
"Name=txtAddrLink", "Value=saaa", ENDITEM,
"Name=btnSubmit", "Value=确定", ENDITEM,
"Name=txtHIT", "Value=1", ENDITEM,
LAST);这是一个开户页面,我使用单步回放来跟踪脚本,当执行到这一步的时候,页面上已经有值传入了,但是执行完以后,该账号仍然没有成功开户.但是脚本没有报错
VIEWSTATE和EVENTVALIDATIOIN这两个参数最开始我没有关联的,不行.然后我关联上以后还是不行.
不明白到底是为什么/.. 楼主可以首先尝试手动输入同样的数值,看看能不能成功开户,如果可以的话,那就得查看所关联出来的VIEWSTATE和EVENTVALIDATIOIN是不是正确的。 可能还有其它的需要关联或参数化的 VIEWSTATE和EVENTVALIDATIOIN是肯定不需要关联的,这个是asp.net自己的东西
页:
[1]