|
最近想学loadrunner,按照教程来做,可是录制完脚本后运行失败,请问是什么原因?
出现以下现象:
Failed to execute the command:
mmdrv.exe -f "C:\Documents and Settings\new\Local Settings\Temp\noname24\mdrv_cmd.txt"
Error code -1.
Please, check your LoadRunner installation.
以下是录制的脚本:
#include "web_api.h"
Action()
{
lr_rendezvous("search");
lr_start_transaction("start");
web_add_cookie("BAIDUID=53A2B0C6020755C028576CD6F1783951; DOMAIN=www.baidu.com");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(11);
web_add_cookie("BAIDUID=53A2B0C6020755C028576CD6F1783951; DOMAIN=s.baidu.com");
web_submit_form("s",
"Snapshot=t2.inf",
ITEMDATA,
"Name=wd", "Value={NewParam}", ENDITEM,
EXTRARES,
"URL=http://s.baidu.com/w.gif?path=http://www.baidu.com/s?wd=%C1%BD%BB%E1&cl=3&t=1177671253578", "Referer=http://www.baidu.com/s?wd=%C1%BD%BB%E1&cl=3", ENDITEM,
LAST);
web_find("search_baidu",
"RightOf=三八节",
"What=两会",
LAST);
return 0;
lr_end_transaction("end", LR_AUTO);
}
[ 本帖最后由 xxxjh_1230 于 2007-4-29 19:17 编辑 ] |
|