51Testing软件测试论坛

标题: HTTP Status-Code=500 (Internal Server Error) [打印本页]

作者: 口哨鱼    时间: 2010-3-9 09:44
标题: HTTP Status-Code=500 (Internal Server Error)
大家帮忙看一下,录制网站的登录窗口失败,怎么解决?

Action.c(15): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://csicnapp02:92/home.asp"          [MsgId: MERR-26612]

Action.c(15): web_submit_form("verify.asp") highest severity level was "ERROR", 27565 body bytes, 4277 header bytes          [MsgId: MMSG-26388]

Action()
{

        web_add_cookie("LastDivisionId=; DOMAIN=ciw");

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

        web_submit_form("verify.asp",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=login_id", "Value=sa", ENDITEM,
                "Name=PWD", "Value=sasa", ENDITEM,
                "Name=Submit", "Value=Login", ENDITEM,
                EXTRARES,
                "Url=../images/xMNUhome.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/xfolderopen.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../images/xvertline.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../images/xlastnode.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/xdoc.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../images/xnode.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/profile.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/menuhelp.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/about.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/password.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/logout.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../images/xpnodeOrange.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                "Url=../Images/xfolderclosed.gif", "Referer=http://test02:92/menu.asp?", ENDITEM,
                LAST);
作者: 森林一木    时间: 2010-3-9 11:13
web_url("test02:92",
                "URL=http://test02:92/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                LAST);
你这段对吗?
500一般是服务器处理错误。URL=http://test02:92/ 改为URL=http://test02:92/home.asp能用不?
作者: skyzhu    时间: 2010-3-9 11:19
web_submit_form错了,LZ查一下,连个提交的目标地址都没有
作者: 口哨鱼    时间: 2010-3-9 11:22
加上楼上说的变成现在的错误:
Action.c(13): Error -27979: Requested form not found          [MsgId: MERR-27979]
Action.c(13): web_submit_form("verify.asp") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]

指向下面这段代码:
web_submit_form("verify.asp",
                "Snapshot=t2.inf",
                ITEMDATA,
                "Name=login_id", "Value=sa01", ENDITEM,
                "Name=PWD", "Value=infoshare", ENDITEM,
                "Name=Submit", "Value=Login", ENDITEM,
                EXTRARES,
                "Url=../images/xMNUhome.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/xfolderopen.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../images/xvertline.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/xdoc.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/profile.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../images/xnode.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../images/xlastnode.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/menuhelp.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/about.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/logout.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/xfolderclosed.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../Images/password.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                "Url=../images/xpnodeOrange.gif", "Referer=http://csicnapp02:92/menu.asp?", ENDITEM,
                LAST);
作者: 口哨鱼    时间: 2010-3-9 16:12
谢谢大家问题解决了。
是代码home问题




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