lr教程的学习过程中遇到的问题?
我按照lr教程做一个网页内容检查,当我想"添加文本检查"时出现错误那是什么原因啊?错误是这样描述的:The Vuser Generator is unable to create a text check in this manner .To create a text check,swich to the Server Response view,expand the Body node,and ringt-click on the desired text.
谢谢 建议你转到树视图做。你的操作可能有误。 我是在内容检查里面做的"选择文本并添加文本检查"
转到树图做那怎么做检查啊?
ding
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶 我也是 你的脚本放上来看看。你这个感觉只是操作的错误。我刚才又做了一遍,脚本是这样的.文本检查还是那个错误
Action(){
web_url("MercuryWebTours",
"URL=http://localhost:1080/MercuryWebTours",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(7);
web_submit_form("login.pl",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=login.x", "Value=34", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
lr_start_transaction("NewTransaction");
web_image("Search Flights Button",
"Alt=Search Flights Button",
"Snapshot=t3.inf",
LAST);
lr_think_time(5);
web_submit_form("reservations.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=depart", "Value=Denver", ENDITEM,
"Name=departDate", "Value=03/28/2007", ENDITEM,
"Name=arrive", "Value=Los Angeles", ENDITEM,
"Name=returnDate", "Value=03/29/2007", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=roundtrip", "Value=<OFF>", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=findFlights.x", "Value=28", ENDITEM,
"Name=findFlights.y", "Value=10", ENDITEM,
LAST);
web_submit_form("reservations.pl_2",
"Snapshot=t5.inf",
ITEMDATA,
"Name=outboundFlight", "Value=030;251;03/28/2007", ENDITEM,
"Name=reserveFlights.x", "Value=24", ENDITEM,
"Name=reserveFlights.y", "Value=9", ENDITEM,
LAST);
lr_end_transaction("NewTransaction", LR_AUTO);
lr_think_time(8);
web_submit_form("reservations.pl_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=firstName", "Value=Joseph", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=12345678", ENDITEM,
"Name=expDate", "Value=06/06", ENDITEM,
"Name=saveCC", "Value=<OFF>", ENDITEM,
"Name=buyFlights.x", "Value=64", ENDITEM,
"Name=buyFlights.y", "Value=7", ENDITEM,
LAST);
web_image("Itinerary Button",
"Alt=Itinerary Button",
"Snapshot=t7.inf",
LAST);
lr_think_time(12);
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t8.inf",
LAST);
return 0;
} 在http协议的脚本Treeview视图中,有3种显示类别。分别是:Pageview、Server Response、Client Request。
提示信息让你在Server Response 中操作。 就是应该在pageview里面做的,其他视图连图都没有没法做的啊,教程里写的也是在pageview里做的 好像楼上的说的挺对的,不过不知道怎么做啊?
回复 #8 ppent 的帖子
按你的方法问题已解决 原帖由 ppent 于 2007-3-27 14:35 发表 http://bbs.51testing.com/images/common/back.gif在http协议的脚本Treeview视图中,有3种显示类别。分别是:Pageview、Server Response、Client Request。
提示信息让你在Server Response 中操作。
thank!!!
按照你的方法问题已解决 建议大家在树视图中添加文本检查和图片检查。
步骤:在树视图中点击右键 选择insert before或者insert after 在web checks中选择text check 最简单直接的办法就是coding 。
一样的效果。
想要加入验证点的请求前加入web_reg_find 之类的函数 在http协议的脚本Treeview视图中,有3种显示类别。分别是:Pageview、Server Response、Client Request。
...
ppent 发表于 2007-3-27 14:35 http://bbs.51testing.com/images/common/back.gif
用此方法问题已解决 检查点用中文,为啥会报错啊!
页:
[1]