TA的每日心情 | 开心 2018-11-9 10:37 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
本帖最后由 测试时代 于 2018-10-9 16:44 编辑
提交表单的脚本
web_submit_data("project-create.html_3",
"Action=http://192.168.100.157:7777/ranzhi/proj/project-create.html",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.100.157:7777/ranzhi/proj/project-create.html",
"Snapshot=t30.inf",
"Mode=HTML",
ITEMDATA,
"Name=name", "Value={zhaowen}", ENDITEM,
"Name=manager", "Value=admin", ENDITEM,
"Name=member[]", "Value=admin", ENDITEM,
"Name=begin", "Value=2018-09-21", ENDITEM,
"Name=end", "Value=2018-09-29", ENDITEM,
"Name=desc", "Value={zhaowen}", ENDITEM,
"Name=uid", "Value={uid}", ENDITEM,
LAST);
参数化 name desc uid 其中name desc共用参数 uid是自己参数化的13位字母数字随机数 下面是录制后的效果截图
最后一张是参数后 replay后返回的结果
其中返回的数据变成 <html><meta charset='utf-8'/><style>body{background:white}</style><script>self.location='/ranzhi/sys/user-login-L3JhbnpoaS9wcm9qL3Byb2plY3QtY3JlYXRlLmh0bWw=.html';
|
|