sk_test 发表于 2010-11-16 15:45:13

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)       
回放的时候报的这么一段错误,纠结啊。求解!!!

jj_ljw 发表于 2010-11-16 16:11:15

贴上错误处脚本看看~~~~

sk_test 发表于 2010-11-16 16:40:00

回复 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)       
Action.c(21): web_submit_form("j_acegi_security_check") highest severity level was "ERROR", 0 body bytes, 0 header bytes       

jj_ljw 发表于 2010-11-16 16:42:25

"Name=", "Value=<OFF>", ENDITEM,
这个是注册码?

sk_test 发表于 2010-11-16 16:56:08

回复 4# jj_ljw


    不是啊,录制下来就有这个,登录界面就只有一个用户名,密码输入框,然后只有一个下拉选择框,选择进入的界面的了。

云层 发表于 2010-11-16 17:22:19

不好说,也许你换个录制方法用web_submit_data就好了

sk_test 发表于 2010-11-16 17:30:54

回复 4# jj_ljw


    谢谢前辈!本人果断的给"Name=", "Value=<OFF>", ENDITEM,干掉之后就顺畅了!!!

shuihan 发表于 2011-10-24 13:41:34

谢谢你楼主!我也遇到过相同的问题,像你一样做就成功了。

风华雪夜 发表于 2012-7-4 16:26:03

1.把"Name=", "Value=<OFF>", ENDITEM 这个删掉试下
2.使用web_submit_data重录下
3.自己手写一个简单的Web_submit_data

KIKI_gf 发表于 2012-10-22 11:13:52

我回放脚本时报这错:。请教怎么处理,脚本如下:
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'.
页: [1]
查看完整版本: loadrunner录制脚本成功了,但是回放报错怎么处理啊?急!!!