急,关于loadrunner搜索结果的关联
小弟是个lr新手,现要做一个测试搜索引擎的脚本,搜索内容和关键字要随机,这个已经做了参数化,但是在搜索结果的url上还是原来的关键字,请问这个怎么做关联 没太明白你描述的是什么情况 比如我在搜索的时候,用携程的搜索举例,下面是post的data,web_submit_data("IndexSearch.ashx",
"Action=http://vacations.ctrip.com/booking/IndexSearch.ashx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://vacations.ctrip.com/",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=SearchText", "Value=三亚", ENDITEM,
"Name=Channel", "Value=1", ENDITEM,
"Name=ClientSource", "Value=Online", ENDITEM,
"Name=StartCity", "Value=2", ENDITEM,
"Name=SearchID", "Value=323", ENDITEM,
"Name=SearchType", "Value=D", ENDITEM,
"Name=SearchValue", "Value=61", ENDITEM,
EXTRARES,
然后对搜索结果进行了操作,下面是操作的脚本,切换到了团队游界面
web_url("grouptravel-2Z323B64-D-61-shanghai-sanya",
"URL=http://vacations.ctrip.com/grouptravel-2Z323B64-D-61-shanghai-sanya",
"Resource=0",
"RecContentType=text/html",
"Referer=http://vacations.ctrip.com/whole-2Z323-D0-shanghai-sanya/?SearchValue=61&searchText=%c8%fd%d1%c7",
"Snapshot=t36.inf",
"Mode=HTML",
EXTRARES,
那如果我要对这个搜索进行参数化,就是搜索不同的目的城市,然后对搜索的结果进行操作,请问怎么做? 有没有高手帮忙啊 选中你的参数,右键,点击Replace more occurrences..然后再点击Replace all试试。。应该就可以的哈
页:
[1]