51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1907|回复: 3
打印 上一主题 下一主题

求助啊!web_submit_form执行错误

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2005-11-8 09:33:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录像登陆的功能:
Action()
{

        web_url("192.168.7.166:8000",
                "URL=http://192.168.7.166:8000/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                LAST);

        web_url("layout",
                "URL=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t2.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/html/themes/classic/templates/body_bg.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/images/login/login_bg.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/color_schemes/01/portlet_title_bg_gradient.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/color_schemes/01/portlet_corner_ul.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/color_schemes/01/portlet_corner_ur.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/images/shadow/middle.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/images/shadow/left.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                "Url=/html/themes/classic/images/shadow/right.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=21.1", ENDITEM,
                LAST);

        lr_think_time(7);

        web_submit_form("login",
                "Snapshot=t3.inf",
                ITEMDATA,
                "Name=my_account_login", "Value=licy@gdtz.com.cn", ENDITEM,
                "Name=ommiitkiwn_my_account_password", "Value=1111", ENDITEM,
                "Name=my_account_r_m", "Value=<OFF>", ENDITEM,
                LAST);

        web_url("protected",
                "URL=http://192.168.7.166:8000/c/portal/protected",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",
                LAST);

        web_submit_form("j_security_check",
                "Snapshot=t5.inf",
                ITEMDATA,
                EXTRARES,
                "Url=/flash/Itsmoe_logo.swf", "Referer=", ENDITEM,
                "Url=/html/themes/classic/color_schemes/01/tab_middle_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/up_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/down_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/min_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/restore_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/restore_off.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/max_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/portlet/close_on.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/flash/analogclock.swf", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/images/UseInfo/yhxx.jpg", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                "Url=/html/themes/classic/color_schemes/01/portlet_menu_bg_gradient.gif", "Referer=http://192.168.7.166:8000/c/portal/layout?p_l_id=1", ENDITEM,
                LAST);

        return 0;
}

执行到web_submit_form(加粗的),执行跳出,错误信息:
Action.c(33): Error -27979: Requested form not found         [MsgId: MERR-27979]
Action.c(33): web_submit_form("login") highest severity level was "ERROR", 0 body bytes, 0 header bytes         [MsgId: MMSG-26388]
Ending action Action.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2005-11-8 10:39:01 | 只看该作者
找到问题的所在了,但是不知道怎么解决:

"Name=******_my_account_password", "Value=1111", ENDITEM,

每次登陆的时候,******都会随机产生,所以导致submit错误


请问这个问题怎么解决?????请高手指点
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2005-11-8 11:26:17 | 只看该作者
做自动或者手动关联
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2005-11-8 17:10:56 | 只看该作者
Thanks!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-24 09:40 , Processed in 0.071596 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表