Error: C interpreter run time error: Error -- Unresolved symbol : vuser_end
Running Vuser...Starting iteration 1.
Warning -27077: The "vuser_init" section contains web function(s) when the "Simulate a new user on each iteration" Run-Time Setting is ON.This may produce unpredictable results with multiple iterations
Starting action Action.
Error: C interpreter run time error:Error -- Unresolved symbol : Action.
Ending Vuser...
Starting action vuser_end.
Error: C interpreter run time error:Error -- Unresolved symbol : vuser_end.
这是我的部分回放日志,为什么会出错,请教高手解决!谢谢! 把脚本贴出来 /* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("wap.woaicaipiao.cn",
"URL=http://wap.woaicaipiao.cn/",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t1.inf",
LAST);
web_url("sitecheck2.opera.com",
"URL=http://sitecheck2.opera.com/?host=wap.woaicaipiao.cn&hdn=kqp7UNtj1uo7ZLr3pUzFcw==",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time(6);
web_url("login.jsp",
"URL=http://wap.woaicaipiao.cn/wap/login.jsp",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t3.inf",
LAST);
lr_think_time(15);
web_submit_data("wapaction.wml",
"Action=http://wap.woaicaipiao.cn/wapaction.wml",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=action", "Value=100", ENDITEM,
"Name=username", "Value=13336987896", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
LAST);
web_url("wapaction.wml_2",
"URL=http://wap.woaicaipiao.cn/wapaction.wml?action=101",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t5.inf",
LAST);
return 0;
}
回复 2# 的帖子
/* -------------------------------------------------------------------------------Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("wap.woaicaipiao.cn",
"URL=http://wap.woaicaipiao.cn/",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t1.inf",
LAST);
web_url("sitecheck2.opera.com",
"URL=http://sitecheck2.opera.com/?host=wap.woaicaipiao.cn&hdn=kqp7UNtj1uo7ZLr3pUzFcw==",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time(6);
web_url("login.jsp",
"URL=http://wap.woaicaipiao.cn/wap/login.jsp",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t3.inf",
LAST);
lr_think_time(15);
web_submit_data("wapaction.wml",
"Action=http://wap.woaicaipiao.cn/wapaction.wml",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=action", "Value=100", ENDITEM,
"Name=username", "Value=13336987896", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
LAST);
web_url("wapaction.wml_2",
"URL=http://wap.woaicaipiao.cn/wapaction.wml?action=101",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t5.inf",
LAST);
return 0;
} 这是所有的脚本?action(),vuser_end()中的呢?
你只有vuser_init()有脚本 一般情况
报这样:C interpreter run time error:Error -- Unresolved symbol : Action.的错误很大可能是脚本编写有问题
你直接把报错行那一段贴出来就行了
Error: C interpreter run time error
/* -------------------------------------------------------------------------------Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_url("wap.woaicaipiao.cn",
"URL=http://wap.woaicaipiao.cn/",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t1.inf",
LAST);
web_url("sitecheck2.opera.com",
"URL=http://sitecheck2.opera.com/?host=wap.woaicaipiao.cn&hdn=kqp7UNtj1uo7ZLr3pUzFcw==",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
以上是vuser_init里面的
lr_think_time(6);
web_url("login.jsp",
"URL=http://wap.woaicaipiao.cn/wap/login.jsp",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t3.inf",
LAST);
以上是action里面的
lr_think_time(15);
web_submit_data("wapaction.wml",
"Action=http://wap.woaicaipiao.cn/wapaction.wml",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=action", "Value=100", ENDITEM,
"Name=username", "Value=13336987896", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
LAST);
以上是action2里面的
web_url("wapaction.wml_2",
"URL=http://wap.woaicaipiao.cn/wapaction.wml?action=101",
"Resource=1",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Snapshot=t5.inf",
LAST);
return 0;
}
以上是vuser_end 里面的
这些不是我写的,是我录制的脚本,各位高手大哥们,帮我看一下!谢谢!
回复 5# 的帖子
昨天是我把脚本粘在一起的,其实是分开的,我现在贴出来了,您看一下!回复 6# 的帖子
这位大哥,也劳烦您看一下,我已经贴出来了.Error: C interpreter run time error: Error -- Unresolved symbol : vuser_end
到中午下班时间了,还没人解决,是不是各位大哥都在忙啊帮帮忙吧,各位!:L 你打包成lr文件传上来
Error: C interpreter run time error: Error -- Unresolved symbol : vuser_end
不管怎样,先谢谢您了!(iori)[ 本帖最后由 ryhoen 于 2009-7-31 13:29 编辑 ] 不好意思我一直比较忙刚看到,原因是
vuser_init()
{
return 0;
}
Action()
{
return 0;
}
vuser_end()
{
return 0;
}
你的脚本中vuser_init,Action,Action2,vuser_end都缺少函数开始和结束
你可以新建一个Web(http/html)脚本,分别看看vuser_init,Action,vuser_end中的函数
[ 本帖最后由 iori 于 2009-7-31 16:42 编辑 ]
回复 13# 的帖子
哦,有道理!嗨!全是因为我看的一个网上的视频教程(中科院,刘德宝,LR),我是按照他的方法录的.
我说吗!为什么总报"C编译运行时错误",很郁闷,您说的太有道理了!
可问题虽解决一些,但还没完全解决,竟然还报错,我就纳闷了!
大哥,要不您再看看,帮帮我,先谢了哈!
…………
Error: C interpreter run time error:Error -- Unresolved symbol : Action.
[ 本帖最后由 ryhoen 于 2009-7-31 21:32 编辑 ]
回复 13# 的帖子
看您不在线,一会儿功夫估计又等不来的,想来您肯定在忙或者休息.可我急啊,不能因我而停滞啊.
于是乎,我重新打开我的脚本,反复查看各个函数,
终于找到原因了,原来是函数名不匹配,没有区分大小些
粗心啊,竟一直没看到,急中生了那么一点点"智"才发现的,修改后终于可以了
不管怎样,您帮了我大忙,点通了我!
谢谢!谢谢!真的非常感谢!
以后还有问题,请多多指教哈!大哥!
页:
[1]