Error -27979: Requested form not found 如何解决
slect_lang(){
/*点击知识库首页链接*/
lr_think_time(50);
web_url("close_tab.gif",
"URL=http://172.16.11.203:8080/resources/grap/cn/images/close_tab.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.11.203:8080/main/main.action",
"Snapshot=t13.inf",
LAST);
web_url("xuanxiang_top.gif",
"URL=http://172.16.11.203:8080/resources/grap/cn/images/xuanxiang_top.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.11.203:8080/main/main.action",
"Snapshot=t14.inf",
LAST);
web_url("myHome_over.gif",
"URL=http://172.16.11.203:8080/resources/grap/cn/images/myHome_over.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t15.inf",
LAST);
web_submit_data("newFaxMsgTip.action_2",
"Action=http://172.16.11.203:8080/mm/newFaxMsgTip.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/main/mainFrameBottom.action",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=type", "Value=p", ENDITEM,
LAST);
web_url("mainPage.action",
"URL=http://172.16.11.203:8080/km/mainPage.action",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/main.action",
"Snapshot=t17.inf",
"Mode=HTML",
EXTRARES,
"Url=../resources/grap/cn/images/myWorkSpace_focus.gif", "Referer=http://172.16.11.203:8080/main/loginSubmit.action", ENDITEM,
"Url=../resources/grap/cn/images/daohang_arrow_grap.png", ENDITEM,
LAST);
web_add_cookie("tpRecentOpen=enable#staff={NewParam}#km_main:知识库首页:/km/mainPage.action; DOMAIN=172.16.11.203");
web_submit_data("getSameLevelMenuName.action",
"Action=http://172.16.11.203:8080/main/getSameLevelMenuName.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/km/mainPage.action",
"Snapshot=t18.inf",
"Mode=HTML",
ITEMDATA,
"Name=menuid", "Value=km_main", ENDITEM,
LAST);
web_submit_data("getSameLevelMenu.action",
"Action=http://172.16.11.203:8080/main/getSameLevelMenu.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/km/mainPage.action",
"Snapshot=t19.inf",
"Mode=HTML",
ITEMDATA,
"Name=supercode", "Value=km_main", ENDITEM,
LAST);
web_submit_data("getSameLevelMenu.action_2",
"Action=http://172.16.11.203:8080/main/getSameLevelMenu.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/km/mainPage.action",
"Snapshot=t20.inf",
"Mode=HTML",
ITEMDATA,
"Name=supercode", "Value=0", ENDITEM,
LAST);
web_url("simpleQuery.action",
"URL=http://172.16.11.203:8080/km/simpleQuery.action?type=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/km/mainPage.action",
"Snapshot=t21.inf",
"Mode=HTML",
LAST);
web_submit_form("showBlank.action",
"Action=/km/showBlank.action",
"Snapshot=t22.inf",
ITEMDATA,
LAST);
/*正确显示查询结果*/
return 0;
} 打开录制选项配置对话框进行设置,在“Recording Options”的“Internet Protocol”选项里的“Recording”中选择“Recording Level”为“HTML-based script”,单击“HTML Advanced”,选择“Script. Type”为“A script. containing explicit”。然后再选择使用“URL-based script”模式来录制脚本。 vuser_init()
{
web_url("172.16.11.203:8080",
"URL=http://172.16.11.203:8080/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_url("login.action",
"URL=http://172.16.11.203:8080/main/login.action",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=../resources/grap/cn/images/logo_r1_c2.jpg", ENDITEM,
"Url=../resources/grap/cn/images/logo_r1_c3.jpg", ENDITEM,
"Url=../verifycode.jsp", ENDITEM,
LAST);
lr_think_time(6);
web_custom_request("groupStaffService.queryGroupByLoginName.dwr",
"URL=http://172.16.11.203:8080/dwr/call/plaincall/groupStaffService.queryGroupByLoginName.dwr",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://172.16.11.203:8080/main/login.action",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=text/plain",
"Body=callCount=1\npage=/main/login.action\nhttpSessionId=kCfrAave0+uUw6gsRRDsXg**.node3\nscriptSessionId=D3AB1D85AF5AADE30B64DF1F28358B3B234\nc0-scriptName=groupStaffService\nc0-methodName=queryGroupByLoginName\nc0-id=0\nc0-param0=string:{NewParam}\nbatchId=0\n",
LAST);
lr_think_time(4);
web_submit_data("checkLogon.action",
"Action=http://172.16.11.203:8080/main/checkLogon.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/main/login.action",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={NewParam}", ENDITEM,
LAST);
web_submit_data("loginSubmit.action",
"Action=http://172.16.11.203:8080/main/loginSubmit.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/login.action",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=qing", "Value=0", ENDITEM,
"Name=count", "Value=1", ENDITEM,
"Name=isSingnIn", "Value=0", ENDITEM,
"Name=staff.loginName", "Value={NewParam}", ENDITEM,
"Name=staff.loginPWD", "Value=1", ENDITEM,
"Name=group", "Value=-1", ENDITEM,
"Name=checkImg", "Value=1111", ENDITEM,
"Name=phone", "Value=", ENDITEM,
"Name=gwt", "Value=GMT+08:00", ENDITEM,
"Name=button", "Value=纭畾", ENDITEM,
EXTRARES,
"Url=../js/time/skin/WdatePicker.css", ENDITEM,
"Url=../resources/grap/cn/images/topbg.gif", ENDITEM,
"Url=../resources/grap/cn/images/workState.gif", ENDITEM,
"Url=../resources/grap/cn/images/menubg.gif", ENDITEM,
"Url=../resources/grap/cn/images/FooterLogo.png", "Referer=http://172.16.11.203:8080/main/mainFrameBottom.action", ENDITEM,
"Url=../resources/grap/cn/images/background.jpg", "Referer=http://172.16.11.203:8080/main/myIndex.action", ENDITEM,
"Url=../resources/grap/cn/images/menu_sys.png", "Referer=http://172.16.11.203:8080/main/myIndex.action", ENDITEM,
"Url=../resources/grap/cn/images/arrow-left.gif", "Referer=http://172.16.11.203:8080/main/myIndex.action", ENDITEM,
"Url=../resources/grap/cn/images/arrow-right.gif", "Referer=http://172.16.11.203:8080/main/myIndex.action", ENDITEM,
"Url=../js/time/skin/datePicker.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon1_out_over.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon2_state_sx.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon2_m_over.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon2_r_over.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon4_over.gif", ENDITEM,
"Url=../resources/grap/cn/images/icon10_over.gif", ENDITEM,
"Url=../resources/grap/cn/images/logo.png", ENDITEM,
"Url=../resources/grap/cn/images/myIndexBG.gif", "Referer=http://172.16.11.203:8080/main/myIndex.action", ENDITEM,
LAST);
web_submit_data("newFaxMsgTip.action",
"Action=http://172.16.11.203:8080/mm/newFaxMsgTip.action",
"Method=POST",
"Referer=http://172.16.11.203:8080/main/mainFrameBottom.action",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=type", "Value=p", ENDITEM,
EXTRARES,
"Url=../resources/grap/cn/images/menu_sys.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_huawu.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_custom.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_addressBook.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_product.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_km.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_tools.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/report.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_workorder.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_individuation.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_question.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/images/menu_agt.png", "Referer=", ENDITEM,
LAST);
lr_think_time(5); web_custom_request("queryCallResult.action",
"URL=http://172.16.11.203:8080/ob/queryCallResult.action",
"Method=POST",
"Resource=1",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t7.inf",
"EncType=",
LAST);
web_submit_data("addAgentStatus.action",
"Action=http://172.16.11.203:8080/um/addAgentStatus.action",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=agentStatus.agent_id", "Value=102", ENDITEM,
"Name=agentStatus.status_id", "Value=1", ENDITEM,
LAST);
web_url("mainFrameLeft.action",
"URL=http://172.16.11.203:8080/main/mainFrameLeft.action",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=../resources/grap/cn/css/fancy_progress.png", "Referer=", ENDITEM,
LAST);
web_url("mainFrameMiddle.action",
"URL=http://172.16.11.203:8080/main/mainFrameMiddle.action",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t10.inf",
"Mode=HTML",
EXTRARES,
"Url=../resources/grap/cn/css/fancy_shadow_n.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_ne.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_e.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_se.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_s.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_sw.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_w.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_shadow_nw.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_closebox.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_title_left.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_title_main.png", "Referer=", ENDITEM,
"Url=../resources/grap/cn/css/fancy_title_right.png", "Referer=", ENDITEM,
LAST);
web_url("My97DatePicker.htm",
"URL=http://172.16.11.203:8080/js/time/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.11.203:8080/main/loginSubmit.action",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=/resources/grap/cn/images/qiehuan.gif", "Referer=http://172.16.11.203:8080/main/middleLine.action", ENDITEM,
"Url=lang/zh-cn.js", ENDITEM,
"Url=skin/default/datepicker.css", ENDITEM,
"Url=skin/whyGreen/datepicker.css", ENDITEM,
"Url=/resources/grap/cn/images/right_left.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=/resources/grap/cn/images/right_right.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=/resources/grap/cn/images/right_leftbg.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=/resources/grap/cn/images/right_biaoqianbg.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=/resources/grap/cn/images/right_middle.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=/resources/grap/cn/images/right_rightbg.gif", "Referer=http://172.16.11.203:8080/main/main.action", ENDITEM,
"Url=skin/default/img.gif", ENDITEM,
LAST);
web_custom_request("springUser.getCallInfo.dwr",
"URL=http://172.16.11.203:8080/dwr/call/plaincall/springUser.getCallInfo.dwr",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://172.16.11.203:8080/main/mainFrameLeft.action",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=text/plain",
"Body=callCount=1\npage=/main/mainFrameLeft.action\nhttpSessionId=kCfrAave0+uUw6gsRRDsXg**.node3\nscriptSessionId=D3AB1D85AF5AADE30B64DF1F28358B3B30\nc0-scriptName=springUser\nc0-methodName=getCallInfo\nc0-id=0\nc0-param0=string:2011011500000118\nc0-param1=string:2011011500000036\nc0-param2=number:1\nc0-param3=number:1\nc0-param4=number:1\nc0-param5=string:GMT%2B0800\nbatchId=0\n",
LAST);
/*登录成功*/
return 0;
} 每次迭代执行action的时候fail 是pass的两倍,请大侠指教 错误在哪一行代码出现?并发用户有多少? 信息量太少,请提供下你的场景设置及脚本参数设置,另外还有错误信息。 可能的原因:
1. 当并发量很大时,后台系统无法有效响应时,可能出现这种情况。
2. 页面确实存在变化,找不到对应的页面了。
3. 迭代执行1次是好的,迭代多次就不好使,说明参数设置不当或场景设置不当。 或者参数化不合理。
页:
[1]