|
我把脚本全部贴出来,大家帮忙看看问题出在哪里?
test_gl1()
{
web_url("dot1.jpg",
"URL=http://test2000:8080/taiko/images/dot1.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101",
LAST);
web_url("itemAction.do_2",
"URL=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test2000:8080/taiko/main/menu1.jsp",
"Snapshot=t559.inf",
"Mode=HTML",
EXTRARES,
"Url=images/line_2.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/con_m.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/menu_bg.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
LAST);
web_url("ItemNewFrame.jsp",
"URL=http://test2000:8080/taiko/prep/ItemNewFrame.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t560.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/con_r_m.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=../images/line_down.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
LAST);
lr_think_time( 14 );
web_url("calendar.htm",
"URL=http://test2000:8080/taiko/inc/calendar.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t561.inf",
"Mode=HTML",
LAST);
lr_think_time( 1 );
//新增一条记录
web_submit_data("itemAction.do_3",
"Action=http://test2000:8080/taiko/itemAction.do?action=CHANGE",
"Method=POST",
"RecContentType=text/html",
"Referer=http://test2000:8080/taiko/itemAction.do?action=NEW",
"Snapshot=t562.inf",
"Mode=HTML",
ITEMDATA,
"Name=bb", "Value= 保 存 ", ENDITEM,
"Name=itemName", "Value=福建", ENDITEM,
"Name=addr", "Value=福建", ENDITEM,
"Name=prepDate", "Value=2005-06-06", ENDITEM,
LAST);
//建关联,取下面页面中的值
web_reg_save_param("gl_add",
"LB=<input name=list type=checkbox value=",
"RB=>",
"Ord=1",
"RelFrameId=1",
"Search=body",
LAST);
//新增后回到的列表页面
web_url("itemAction.do_4",
"URL=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test2000:8080/taiko/main/menu1.jsp",
"Snapshot=t563.inf",
"Mode=HTML",
EXTRARES,
"Url=images/menu_bg.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/line_2.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/con_m.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
LAST);
web_url("ItemEditFrame.jsp",
//"URL=http://test2000:8080/taiko/prep/ItemEditFrame.jsp?itemid=9129",
"URL=http://test2000:8080/taiko/prep/ItemEditFrame.jsp?itemid={gl_add}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t564.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/line_down.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=../images/con_r_m.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=../images/fj1.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=../images/dot1.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
LAST);
lr_think_time( 8 );
web_url("calendar.htm_2",
"URL=http://test2000:8080/taiko/inc/calendar.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t565.inf",
"Mode=HTML",
LAST);
//修改刚才新增的数据
web_submit_data("itemAction.do_5",
"Action=http://test2000:8080/taiko/itemAction.do",
"Method=POST",
"RecContentType=text/html",
//"Referer=http://test2000:8080/taiko/itemAction.do?action=EDIT&itemID=9129",
"Referer=http://test2000:8080/taiko/itemAction.do?action=EDIT&itemID={gl_add}",
"Snapshot=t566.inf",
"Mode=HTML",
ITEMDATA,
"Name=bb", "Value= 保 存 ", ENDITEM,
//"Name=itemID", "Value=9129", ENDITEM,
"Name=itemID", "Value={gl_add}", ENDITEM,
"Name=itemName", "Value=安徽", ENDITEM,
"Name=addr", "Value=安徽", ENDITEM,
"Name=prepDate", "Value=2005-06-01", ENDITEM,
LAST);
web_url("itemAction.do_6",
"URL=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test2000:8080/taiko/main/menu1.jsp",
"Snapshot=t567.inf",
"Mode=HTML",
EXTRARES,
"Url=images/menu_bg.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/line_2.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
"Url=images/con_m.jpg", "Referer=http://test2000:8080/taiko/itemAction.do?action=ORDERLIST&modelid=A0101", ENDITEM,
LAST);
return 0;
} |
|