51Testing软件测试论坛
标题:
LoadRunner 错误27979 找不到请求表单
[打印本页]
作者:
bean426
时间:
2008-1-21 17:44
标题:
LoadRunner 错误27979 找不到请求表单
[attach]38517[/attach]
LoadRunner 错误27979 找不到请求表单,请问如何解决?
作者:
森林一木
时间:
2008-1-21 17:50
能否贴出此处的脚本代码?看脚本的24行,是什么操作?或者这个action是干什么用的?在24行代码附近都有什么操作。再分析
作者:
bean426
时间:
2008-1-22 09:19
Action()
{
web_url("Pop_upAction.do",
"URL=http://localhost:8088/rebis/Pop_upAction.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"URL=jsp/sound/msg_new.mp3", ENDITEM,
LAST);
lr_think_time(7);
web_url("selectTab.do",
"URL=http://localhost:8088/rebis/selectTab.do?workplaceName=培训审批&workplaceId=132",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"URL=jsp/include/emerald-img/navbg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/include/emerald-img/navbg2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2folderopen.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2mlastnode.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2blank.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2folderclosed.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2lastnode.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/ftv2plastnode.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/image/treeView/table.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/images/down.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/images/up.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/include/emerald-img/bcltop2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/include/emerald-img/bcbg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/include/emerald-img/bctop2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
"URL=jsp/include/emerald-img/bon_bg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=132", ENDITEM,
LAST);
lr_think_time(4);
web_url("table.do",
"URL=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"URL=jsp/images/up.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/images/down.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/include/emerald-img/bcltop2.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/include/emerald-img/bctop2.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/include/emerald-img/bcbg.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/include/emerald-img/bon_bg.gif", "Referer=http://localhost:8088/rebis/table.do?action=createRecord&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
LAST);
lr_think_time(5);
web_submit_form("createRecord.do",
"Snapshot=t9.inf",
ITEMDATA,
"Name=TITLETXT", "Value=asdfa", ENDITEM,
"Name=CONTENTTXT", "Value=asdfas", ENDITEM,
"Name=REASONTXT", "Value=fasf", ENDITEM,
"Name=UNITTXT", "Value=asfasdf", ENDITEM,
"Name=INSTRUCTIONTIMEDAT", "Value=2008-01-21", ENDITEM,
"Name=NOTETXT", "Value=asdfasdf", ENDITEM,
"Name=action", "Value=保存", ENDITEM,
LAST);
web_url("table.do_2",
"URL=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8088/rebis/jsp/workplace/Middle_new.jsp",
"Snapshot=t10.inf",
"Mode=HTML",
EXTRARES,
"URL=jsp/include/emerald-img/navbg.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/include/emerald-img/navbg2.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2folderopen.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2mlastnode.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2blank.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2folderclosed.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2plastnode.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/ftv2lastnode.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
"URL=jsp/image/treeView/table.gif", "Referer=http://localhost:8088/rebis/table.do?action=showTable&tablename=LECTURE_APPROV_INSTRUCTIONS&filter=&operaterType=1&flag=PUB&selectedcomm=6&muti=", ENDITEM,
LAST);
return 0;
}
作者:
森林一木
时间:
2008-1-22 09:30
web_url("selectTab.do",
"URL=http://localhost:8088/rebis/selectTab.do?workplaceName=培训审批&workplaceId=132",
这是多少行?
把Resource=0改为Resource=1试试,另外你实际上需请求的表单是什么?是不是确实存在?也就是功能是不是正确的?
作者:
bean426
时间:
2008-1-22 12:44
[attach]38553[/attach]
改成Resource=1 后就成这个 错误了, Resource=0全部改成 Resource=1也一样
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1196
------------------------------------------------------------------------------- */
vuser_init()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 3
// {JSESSIONID3} = "D7F8C098E4938EABCAD3A3D3FA977F45"
// */
web_reg_save_param("JSESSIONID3",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
web_url("logon.do",
"URL=http://localhost:8088/rebis/logon.do",
"Resource=1",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=jsp/include/blue-img/bon_bg.gif", ENDITEM,
LAST);
lr_think_time(4);
web_submit_form("logon.do;jsessionid=D7F8C098E4938EABCAD3A3D3FA977F45",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=de_pxzxxxyf", ENDITEM,
"Name=password", "Value=123", ENDITEM,
"Name=action", "Value=?", ENDITEM,
LAST);
web_url("Top.jsp",
"URL=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=培训中心信息员",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8088/rebis/logon.do;jsessionid={JSESSIONID3}",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=../include/blue-img/bottom1.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Bottom.jsp", ENDITEM,
"Url=../include/blue-img/bottom2.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Bottom.jsp", ENDITEM,
"Url=../include/blue-img/top_01.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/top_02.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/top_03.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/top_04.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/top_05.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/top_06.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98", ENDITEM,
"Url=../include/blue-img/title--top-left.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=../include/blue-img/title-top.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=../include/blue-img/title--top-right.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=../sound/msg_rcv.mp3", "Referer=", ENDITEM,
LAST);
web_submit_data("Pop_upListenerAction.do",
"Action=http://localhost:8088/rebis/Pop_upListenerAction.do",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://localhost:8088/rebis/jsp/workplace/Top.jsp?username=鍩硅\xAE\xAD涓\xAD\xE5績淇\xA1\xE6伅鍛\x98",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
EXTRARES,
"Url=jsp/sound/msg_rd.mp3", "Referer=", ENDITEM,
"Url=jsp/sound/msg_rcv.mp3", "Referer=", ENDITEM,
"Url=jsp/sound/msg_new.mp3", "Referer=", ENDITEM,
"Url=jsp/include/blue-img/title-bg-left.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=jsp/include/blue-img/title-bg-right.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=jsp/include/blue-img/title--bottom-left.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=jsp/include/blue-img/title-bottom.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
"Url=jsp/include/blue-img/title--bottom-right.gif", "Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp", ENDITEM,
LAST);
web_url("Pop_upAction.do",
"URL=http://localhost:8088/rebis/Pop_upAction.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=jsp/sound/msg_new.mp3", "Referer=", ENDITEM,
LAST);
web_submit_data("NoteletListenerAction.do",
"Action=http://localhost:8088/rebis/NoteletListenerAction.do",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
LAST);
lr_think_time(4);
web_url("selectTab.do",
"URL=http://localhost:8088/rebis/selectTab.do?workplaceName=培训审批&workplaceId=63",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8088/rebis/jsp/workplace/main_new.jsp",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=jsp/include/blue-img/navbg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/include/blue-img/navbg2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/image/treeView/ftv2folderopen.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/image/treeView/ftv2blank.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/image/treeView/table.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/image/treeView/ftv2mlastnode.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/image/treeView/ftv2lastnode.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/images/up.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/images/down.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/include/blue-img/bcltop2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/include/blue-img/bcbg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/include/blue-img/bctop2.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
"Url=jsp/include/blue-img/bon_bg.gif", "Referer=http://localhost:8088/rebis/selectTab.do?workplaceName=鍩硅\xAE\xAD瀹\xA1\xE6壒&workplaceId=63", ENDITEM,
LAST);
return 0;
}
作者:
森林一木
时间:
2008-1-22 13:10
不能全改的!!只能是针对性的,如果用到iframe才可能有效。另外看你红色标志处,应该用关联吧?
有可能是每次生成的sessionid不一致,导致权限验证不通过而找不到表单,所以,看看sessionid是否需要用关联。
作者:
bean426
时间:
2008-1-22 13:20
怎么关联 sessionid???
作者:
shamoyizhihu
时间:
2009-7-24 15:46
呵呵好早的问题了,不过我刚刚知道怎么弄了,和以后搜寻这类问题的朋友分享一下,
这个问题是脚本中没有录制到你要录制的那个空间,什么原因呢,可能是空间不是标准控件,也可能是选择太多,还有其他原因,不清楚。如果是网页试的系统,你可以右键查看源代码,之后找到你没有录制的那个脚本代号,填进去就可以了。
一般开发人员喜欢用 数字01 或字母ABC之类的。看看是什么就可以了。
作者:
sunhope800
时间:
2009-7-27 13:58
这里真是高手如云啦,以后向大家多多学习!
作者:
lagula800
时间:
2012-8-24 15:58
LoadRunner请求无法找到:在录制Web协议脚本回放脚本的过程中,会出现请求无法找到的现象,而导致脚本运行停止。
错误现象:Action.c(41): Error -27979: Requested form. not found [MsgId: MERR-27979]
Action.c(41): web_submit_form. highest severity level was "ERROR",0 body bytes, 0 header bytes [MsgId: MMSG-27178]"
这时在tree view中看不到此组件的相关URL。
错误分析:所选择的录制脚本模式不正确,通常情况下,基于浏览器的Web应用会使用“HTML-based scrīpt”模式来录制脚本;而没有基于浏览器的Web应用、Web应用中包含了与服务器进行交互的Java Applet、基于浏览器的应用中包含了向服务器进行通信的Javascrīpt/VBscrīpt代码、基于浏览器的应用中使用HTTPS安全协议,这时则使用“URL-based scrīpt”模式进行录制。
解决办法:打开录制选项配置对话框进行设置,在“Recording Options”的“Internet Protocol”选项里的“Recording”中选择“Recording Level”为“HTML-based scrīpt”,单击“HTML Advanced”,选择“scrīpt Type”为“A scrīpt containing explicit”。然后再选择使用“URL-based scrīpt”模式来录制脚本。
作者:
lagula800
时间:
2012-8-24 15:58
LoadRunner请求无法找到:在录制Web协议脚本回放脚本的过程中,会出现请求无法找到的现象,而导致脚本运行停止。
错误现象:Action.c(41): Error -27979: Requested form. not found [MsgId: MERR-27979]
Action.c(41): web_submit_form. highest severity level was "ERROR",0 body bytes, 0 header bytes [MsgId: MMSG-27178]"
这时在tree view中看不到此组件的相关URL。
错误分析:所选择的录制脚本模式不正确,通常情况下,基于浏览器的Web应用会使用“HTML-based scrīpt”模式来录制脚本;而没有基于浏览器的Web应用、Web应用中包含了与服务器进行交互的Java Applet、基于浏览器的应用中包含了向服务器进行通信的Javascrīpt/VBscrīpt代码、基于浏览器的应用中使用HTTPS安全协议,这时则使用“URL-based scrīpt”模式进行录制。
解决办法:打开录制选项配置对话框进行设置,在“Recording Options”的“Internet Protocol”选项里的“Recording”中选择“Recording Level”为“HTML-based scrīpt”,单击“HTML Advanced”,选择“scrīpt Type”为“A scrīpt containing explicit”。然后再选择使用“URL-based scrīpt”模式来录制脚本。
作者:
libingyu135
时间:
2013-9-12 14:28
回复
11#
lagula800
试过了,可以的,谢谢!
作者:
littlevine68
时间:
2015-4-24 15:49
lagula800 发表于 2012-8-24 15:58
LoadRunner请求无法找到:在录制Web协议脚本回放脚本的过程中,会出现请求无法找到的现象,而导致脚本运行 ...
但是,为什么呢?
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2