|
本帖最后由 水易清 于 2010-9-29 16:36 编辑
测试用户注册,用户注册信息正确提交后,会跳转到注册成功页面,这里想在这个跳转成功页面上加一个检查点,检查“注册成功”文本。
web_reg_find("Text=注册成功",LAST);
web_submit_data("RegHotelAction_save.action",
"Action=http://172.16.2.219:8080/directsale/RegHotelAction_save.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.2.219:8080/directsale/EditHotelAction_toRegHotel.action",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=struts.token.name", "Value=struts.token", ENDITEM,
"Name=struts.token", "Value=BDK4I0EK92UV1UKMTS17TIR2VAL4VG9U", ENDITEM,
"Name=hotelInfo.nameCN", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.shortSpell", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.nameEN", "Value=", ENDITEM,
"Name=hotelInfo.aliasName", "Value=jiudian{NO}", ENDITEM,
"Name=hotelInfo.star", "Value=", ENDITEM,
"Name=hotelInfo.country", "Value=", ENDITEM,
"Name=hotelInfo.province", "Value=", ENDITEM,
"Name=hotelInfo.city", "Value=", ENDITEM,
"Name=hotelInfo.region", "Value=", ENDITEM,
"Name=hotelInfo.address", "Value=", ENDITEM,
"Name=hotelInfo.subRegion", "Value=", ENDITEM,
"Name=hotelInfo.bizRegion", "Value=", ENDITEM,
"Name=hotelInfo.environMent", "Value=", ENDITEM,
"Name=hotelInfo.postCode", "Value=", ENDITEM,
"Name=hotelInfo.tel1", "Value={NO}", ENDITEM,
"Name=hotelInfo.tel2", "Value=", ENDITEM,
"Name=hotelInfo.fax1", "Value=", ENDITEM,
"Name=hotelInfo.fax2", "Value=", ENDITEM,
"Name=hotelInfo.webUrl", "Value=", ENDITEM,
"Name=hotelInfo.desc", "Value=", ENDITEM,
"Name=adminType", "Value=0", ENDITEM,
"Name=adminTypeId", "Value=2", ENDITEM,
"Name=ycimUser.userName", "Value=jiudian{NO}", ENDITEM,
"Name=ycimUser.plainPassWord", "Value=123456", ENDITEM,
"Name=plainPassWord2", "Value=123456", ENDITEM,
"Name=ycimUser.name", "Value=", ENDITEM,
"Name=ycimUser.email", "Value=jiudian{NO}@sina.com", ENDITEM,
"Name=validCode", "Value=aaaaaa", ENDITEM,
LAST);
不加入web_reg_find下面语句执行通过,但实际数据未提交入数据库,但加入检查点后,报submit data:step failed
这是为什么呀?谁能帮我看看~~~~~~~~ |
|