51Testing软件测试论坛

标题: loadrunner录制脚本成功了,但是回放报错怎么处理啊?急!!! [打印本页]

作者: sk_test    时间: 2010-11-16 15:45
标题: loadrunner录制脚本成功了,但是回放报错怎么处理啊?急!!!
Action.c(24): Error -27153: Either "Name" or at least one of "NamePfx" and "NameSfx" should be non-empty (before the "ENDITEM" argument number 12)          [MsgId: MERR-27153]
回放的时候报的这么一段错误,纠结啊。求解!!!
作者: jj_ljw    时间: 2010-11-16 16:11
贴上错误处脚本看看~~~~
作者: sk_test    时间: 2010-11-16 16:40
回复 2# jj_ljw
出错处脚本是:
web_submit_form("j_acegi_security_check",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=j_username", "Value=admin", ENDITEM,
                "Name=j_password", "Value=1", ENDITEM,
                "Name=", "Value=<OFF>", ENDITEM,
                EXTRARES,
                "Url=apps/dms/doc/search/web/blue/images/search_img/bg_layer.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/search_bg_blue.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/search_logo_blue.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/blue_shuru.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/but_bg.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/blue_s_tab.gif", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/blue_but.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/layer_tit.jpg", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                "Url=apps/dms/doc/search/web/blue/images/search_img/close_layer.gif", "Referer=http://192.168.0.11:8080/DataManager/fulltextsearch/searchHomePage.do", ENDITEM,
                LAST);
报错是:Action.c(21): Error -27153: Either "Name" or at least one of "NamePfx" and "NameSfx" should be non-empty (before the "ENDITEM" argument number 12)          [MsgId: MERR-27153]
Action.c(21): web_submit_form("j_acegi_security_check") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
作者: jj_ljw    时间: 2010-11-16 16:42
"Name=", "Value=<OFF>", ENDITEM,
这个是注册码?
作者: sk_test    时间: 2010-11-16 16:56
回复 4# jj_ljw


    不是啊,录制下来就有这个,登录界面就只有一个用户名,密码输入框,然后只有一个下拉选择框,选择进入的界面的了。
作者: 云层    时间: 2010-11-16 17:22
不好说,也许你换个录制方法用web_submit_data就好了
作者: sk_test    时间: 2010-11-16 17:30
回复 4# jj_ljw


    谢谢前辈!本人果断的给"Name=", "Value=<OFF>", ENDITEM,  干掉之后就顺畅了!!!
作者: shuihan    时间: 2011-10-24 13:41
谢谢你楼主!我也遇到过相同的问题,像你一样做就成功了。
作者: 风华雪夜    时间: 2012-7-4 16:26
1.把"Name=", "Value=<OFF>", ENDITEM 这个删掉试下
2.使用web_submit_data重录下
3.自己手写一个简单的Web_submit_data
作者: KIKI_gf    时间: 2012-10-22 11:13
我回放脚本时报这错:。请教怎么处理,脚本如下:
Action.c(458): Error: Failed to end Transaction "诚信信息录入结束" (by name). Please check that you made a call to start transaction operation.

Error: Vuser started transaction "诚信信息录入开始", but did not reached a corresponding end transaction statement. The transaction ended automatically with status 'fail'.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2