TA的每日心情 | 开心 2015-10-23 13:46 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
7#
楼主 |
发表于 2005-1-17 17:50:14
|
只看该作者
对录制好的脚本可以通过添加集合点,我录制了一个登录脚本如下所示:
#include "as_web.h"
login()
{
web_add_cookie("MANTIS_PROJECT_COOKIE=9; DOMAIN=10.128.4.118");
web_add_cookie("MANTIS_VIEW_ALL_COOKIE=v4%23any%23any%23any%2350%236%23on%23any%23any%23last_updated%23DESC%2301%231%232005%2301%2310%232005%23%23; DOMAIN=10.128.4.118");
web_url("default.htm",
"URL=http://10.128.4.118:7001/FPApp/default.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=js/csssy1a.css", ENDITEM,
"Url=images/shouye/fkbj.gif", ENDITEM,
"Url=images/shouye/lcbjt.jpg", ENDITEM,
LAST);
web_image("czbb.gif",
"Src=images/shouye/czbb.gif",
"Snapshot=t2.inf",
EXTRARES,
"Url=js/csssy1a.css", ENDITEM,
LAST);
web_submit_form("usercheck",
"Snapshot=t3.inf",
ITEMDATA,
"Name=name", "Value={username}", ENDITEM,
"Name=workwords", "Value=aaa", ENDITEM,
"Name=imageField.x", "Value=18", ENDITEM,
"Name=imageField.y", "Value=7", ENDITEM,
EXTRARES,
"Url=images/2004-9-20/bttl.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=js/csssy1a.css", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=js/csssy.css", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=images/2004-9-20/zl.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=images/2004-9-20/dzl1.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=images/2004-9-20/dlbj.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=images/2004-9-20/fbtbj.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
"Url=images/2004-9-20/dzlbj.gif", "Referer=http://10.128.4.118:7001/FPApp/wmap/dqdt.jsp", ENDITEM,
LAST);
return 0;
}
应该在哪添加集合点呢?
我在web_submit_form()前面添加了集合点,又设置循环3次,运行结果显示的时间还是不是同时的 |
|