|
本帖最后由 skylovewt 于 2011-1-13 17:02 编辑
大家好,最近在学习loadrunner,尝试录制了一个百度搜索功能的脚本,在我录脚本过程中,输入某些搜索词的时候,网站会出现一个包含搜索词的推荐菜单,然后我选择了其中的一个进行搜索,然后脚本里没有"value",请问这种情况如何进行参数化,谢谢大家了。下面是脚本:
Action()
{
web_add_cookie("BAIDUID=ADB8430692B1108B956DE6D452FC457C:FG=1; DOMAIN=suggestion.baidu.com");
lr_think_time(8);
web_url("su",
"URL=http://suggestion.baidu.com/su?wd=s&p=3&cb=window.bdsug.sug&t=1294906967078",
"Resource=1",
"RecContentType=baiduapp/json",
"Referer=http://www.baidu.com/",
"Snapshot=t2.inf",
LAST);
web_url("su_2",
"URL=http://suggestion.baidu.com/su?wd=sk&p=3&cb=window.bdsug.sug&t=1294906967234",
"Resource=1",
"RecContentType=baiduapp/json",
"Referer=http://www.baidu.com/",
"Snapshot=t3.inf",
LAST);
web_url("su_3",
"URL=http://suggestion.baidu.com/su?wd=sky&p=3&cb=window.bdsug.sug&t=1294906967671",
"Resource=1",
"RecContentType=baiduapp/json",
"Referer=http://www.baidu.com/",
"Snapshot=t4.inf",
LAST);
lr_rendezvous("121");
lr_start_transaction("search");
web_add_cookie("BAIDUID=ADB8430692B1108B956DE6D452FC457C:FG=1; DOMAIN=sclick.baidu.com");
lr_think_time(38);
web_url("s",
"URL=http://www.baidu.com/s?wd=sky",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.baidu.com/",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=http://sclick.baidu.com/w.gif?q=sky&fm=se&T=1294906965&y=EEEEFFFE&&cid=4&qid=c470ca1920608c4e&t=1294907006687&path=http://www.baidu.com/s?wd=sky", "Referer=http://www.baidu.com/s?wd=sky", ENDITEM,
LAST);
lr_end_transaction("search",LR_AUTO);
return 0; |
|