LoadRunner录制的脚本为什么不能运行?
我用LoadRunner录制的脚本无法运行,不知道为什么?录制完后,我按[运行]按钮,没有任何的反应和错误提示。 你的问题类似于:
电脑不能用了,为什么?
这么笼统的说法,谁能知道是什么原因。 你录到了吗? 我录到了,但是不能运行,点[运行]后,没有回放,也没错误提示,没有反应,不知道为什么。
请高手指点!! 你怎么判断录到了的?你判断的现象是什么?
是生成了脚步还是其它?
上传你录制的脚本
这是我录的脚本!
这是我录的脚本! 脚本,脚本,你把这个界面帖出来干嘛,是代码文字 你是在controller里面运行这个脚本吗?
没有任何反映 是不是说LR连出错信息都没给你? 我是在Virtua User Generator 中新建的脚本,然后再执行[运行]回放的。
是的,LR没有给出任何出错的信息,也没有结果! 兄弟,你的问题解决没有,我也遇到这种问题了。 贴出你的脚本代码啊~ 情况是这样的,录制脚本后,停止。再点运行按钮,界面只刷新了一下,而后无任何反应。也无出错提示,我重新安装也不行,具体代码如下,本代码在以前LOADRUNNER正常使用时,是可以通过运行测试的:
#include "as_web.h"
Action()
{
/*
* 登录事务
*/
lr_rendezvous("denglu");
lr_start_transaction("denglu");
web_submit_data("usernamePasswordLogin.do",
"Action=http://192.168.0.115/josso/signon/usernamePasswordLogin.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.115/logonapp/logon.jsp?josso_back_to=http://192.168.0.115/bm/josso_security_check/&josso_on_error=http://192.168.0.115:80/logonapp/logon.jsp?error=true",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=josso_cmd", "Value=login", ENDITEM,
"Name=josso_back_to", "Value=http://192.168.0.115/bm/josso_security_check/", ENDITEM,
"Name=josso_on_error", "Value=http://192.168.0.115:80/logonapp/logon.jsp?error=true", ENDITEM,
"Name=josso_username", "Value={login}", ENDITEM,
"Name=josso_password", "Value={password}", ENDITEM,
EXTRARES,
"Url=/bm/images/inner/bbsbr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstitle.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/midbar_bg.gif", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/bbstl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsml.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsmr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsbm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/dianji.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbstr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbstm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsmr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsml.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/midbar_turnapp.gif", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/btn_m.jpg", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/btnBar.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/text.swf", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top1.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top2.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top3.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/mdl1.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/nonesms.gif", "Referer=http://192.168.0.115/bm/mes/ChgStat.page", ENDITEM,
"Url=/bm/images/inner/bbsbl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/hassms.gif", "Referer=http://192.168.0.115/bm/mes/ChgStat.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/topText.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/btn_m.jpg", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/fold.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/menu_head_title.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/menu_arrow_single.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/button/gtBtnm.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/button/gtBtnl.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/button/gtBtnr.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
LAST);
lr_end_transaction("denglu", LR_AUTO);
lr_think_time( 11 );
web_url("Person.page",
"URL=http://192.168.0.115/bm/frame/Person.page",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.115/bm/frame/Top.page",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
} 然后我又用新系统,刚刚做好的系统后再装的LOADRUNNER,结果还是这样的问题,我郁闷之极。 我以前遇到过录制的脚本无法运行,当时找不到原因。后来把系统杀了毒,然后重装了IE6.0,又可以运行LOADRUNNER了。不知这个方法适不适合你 myjackyang 发表于 2007-11-27 10:43
情况是这样的,录制脚本后,停止。再点运行按钮,界面只刷新了一下,而后无任何反应。也无出错提示,我重新 ...
为什么我录到的里面都是cookies ,没有操作内容
页:
[1]