|
6#
楼主 |
发表于 2010-12-14 17:26:55
|
只看该作者
本帖最后由 章美霞 于 2010-12-14 17:28 编辑
回复 5# twinsczl
你的意思是说:Web_reg_find执行了,那么执行结果为Done,在其后的页面中,如果找到了对应的值,则显示Pass OR Fail,对吗。那我还有下面一段脚本,用的是web_find,请帮忙看下。问题是在TestResults中无法查看到我添加的Web_find,且"Submit Form :login.pl"执行结果同样为Done,其Details为“param not to passed in call”,见截图。
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
lr_rendezvous("Regeist");
lr_start_transaction("Regeist_tran");
web_link("sign up now",
"Text=sign up now",
"Snapshot=t6.inf",
LAST);
web_submit_form("login.pl",
"Snapshot=t7.inf",
ITEMDATA,
"Name=username", "Value={NewParam}", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=passwordConfirm", "Value=111111", ENDITEM,
"Name=firstName", "Value=zmx06", ENDITEM,
"Name=lastName", "Value=zmx06", ENDITEM,
"Name=address1", "Value=zmx06", ENDITEM,
"Name=address2", "Value=zmx06", ENDITEM,
"Name=register.x", "Value=61", ENDITEM,
"Name=register.y", "Value=9", ENDITEM,
LAST);
web_find("CheckPointOfname",
"what={NewParam}",
LAST);
web_image("button_next.gif",
"Src=/WebTours/images/button_next.gif",
"Snapshot=t8.inf",
LAST);
lr_end_transaction("Regeist_tran", LR_AUTO);
return 0;
} |
|