|
6#
楼主 |
发表于 2011-6-23 10:18:34
|
只看该作者
谢谢talerance,我录制的是注册的过程,如下是注册页面的脚步,做了注册码的参数化
web_submit_data("UserRegister1.aspx_2",
"Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister1.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister1.aspx",
"Snapshot=t138.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState5}", ENDITEM,
"Name=txtRegidterCode", "Value={NewParam_2}", ENDITEM,
"Name=subjectID", "Value=1", ENDITEM,
"Name=txtImageCode", "Value=8038", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBwL/r4XwAwLFzvmwAQL0iKvzDQLriKvzDQLqiKvzDQLp48PGBALG17zjBuCjF3I7vk9R1ltX8KWDyOCmA+rx", ENDITEM,
"Name=ImgbtnSubmit.x", "Value=24", ENDITEM,
"Name=ImgbtnSubmit.y", "Value=12", ENDITEM,
LAST);
输入注册码和学科的信息后,点击确定,会出现刚才选择的信息的页面。
web_submit_data("{WCSParam_Diff1}",
"Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1",
"Method=POST",
"RecContentType=text/html",
"Referer=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ==&subjectid=1",
"Snapshot=t141.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
这里面的Action=http://fxldxm.2011.teacher.com.cn:8080/UserRegister/UserRegister2.aspx?RegidterCode=MTA5NDQyMDUwNQ%3d%3d&subjectid=1",
中的RegidterCode总是第一次录制时的信息,按道理来说应该变化才对,而且这个值是服务器传过来的,请各位再帮忙看看,怎么能让RegidterCode的值每次都变化。 |
|