51Testing软件测试论坛
标题:
web_reg_find函数问题
[打印本页]
作者:
nataliedu
时间:
2008-7-30 17:14
标题:
web_reg_find函数问题
web_submit_form("reservations.pl_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=firstName", "Value=jo", ENDITEM,
"Name=lastName", "Value=jo", ENDITEM,
"Name=address1", "Value=dddd", ENDITEM,
"Name=address2", "Value=11222", ENDITEM,
"Name=pass1", "Value=jo jo", ENDITEM,
"Name=creditCard", "Value=88888888888888888888", ENDITEM,
"Name=expDate", "Value=2008", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=35", ENDITEM,
"Name=buyFlights.y", "Value=12", ENDITEM,
LAST);
web_reg_find("Text=Thank you for booking through Mercury Tours", LAST);
上述脚本执行完成后报错:
Action.c(84): Error -26366: "Text=Thank you for booking through Mercury Tours" not found for web_reg_find [MsgId: MERR-26366]
可是我在执行的Result.qtp中确实看到web_submit_form函数成功返回,且界面中包含“Thank you for booking through Mercury Tours"的字样,请问各位大虾知道是怎么回事吗?
使用web_reg_save_param同样会报错
作者:
云层
时间:
2008-7-30 17:34
web_reg_find("Text=Thank you for booking through Mercury Tours", LAST);
检查点放在请求前,要么你就用web_find()函数
作者:
nataliedu
时间:
2008-7-30 17:40
感谢版主,放在前面就不报错了,原来没有好好看清帮助,再次感谢
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2