51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2584|回复: 4
打印 上一主题 下一主题

[求助] 录制查询回放时出错,请大家帮忙指点一下~~

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-7-26 10:57:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
完全新手,老大要求做一个压力测试.登陆portal然后做一个查询动作,录制脚本完成后,回放一直提示错误:
错误 -26612: 对于“http://hnbpmq01.chng.com.cn:5000 ... ee?uniqueSequence=1”,HTTP 状态代码=500 (Internal Server Error)          [MsgId: MERR-26612]

单步查询后找到了发生错误的脚本,为了让大家能帮忙分辨一下,把这个动作的脚本都贴了出来,出错误的地方加红了,请大家帮忙看看是啥原因,十分感谢!!!

Action2()
{

        web_set_max_html_param_len("1024");

        lr_think_time(28);

        web_url("1x1.gif",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.ui.uiservice/images/1x1.gif?4a26073b84287c8652992538114a7acc",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?DrillDownLevel=1&ExecuteLocally=true&windowId=WID1343197014540&NavMode=0",
                "Snapshot=t14.inf",
                LAST);

        web_url("ico12_treebranch_open.gif",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.design.portaldesigndata/themes/portal/sap_tradeshow_plus/nav/treeview/ico12_treebranch_open.gif?7.20.4.0.0",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?DrillDownLevel=1&ExecuteLocally=true&windowId=WID1343197014540&NavMode=0",
                "Snapshot=t15.inf",
                LAST);

        web_url("com.sap.portal.pagebuilder.emptyDocument",
                "URL=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/com.sap.portal.pagebuilder.emptyDocument",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?DrillDownLevel=1&ExecuteLocally=true&windowId=WID1343197014540&NavMode=0",
                "Snapshot=t16.inf",
                "Mode=HTML",
                LAST);

        web_url("com.sap.portal.pagebuilder.emptyDocument_2",
                "URL=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/com.sap.portal.pagebuilder.emptyDocument",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?DrillDownLevel=1&ExecuteLocally=true&windowId=WID1343197014540&NavMode=0",
                "Snapshot=t17.inf",
                "Mode=HTML",
                LAST);

        web_submit_data("pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.detailedNavigationTree",
                "Action=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.detailedNavigationTree?uniqueSequence=1",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?DrillDownLevel=1&ExecuteLocally=true&windowId=WID1343197014540&NavMode=0",
                "Snapshot=t18.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=parentNodeId", "Value=navurl://453d76a3269e8acd32aea6c02ca057f8", ENDITEM,
                LAST);

        lr_think_time(4);

        web_url("child.html",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.navigation.helperservice/html/child.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t19.inf",
                "Mode=HTML",
                LAST);

        /* Registering parameter(s) from source task id 157
        // {JSESSIONID4} = "5_TjiLcJ2egm8LZESA67DpUQicW8OAESiDgA_SAP"
        // */

        web_reg_save_param("JSESSIONID4",
                "LB/IC=jsessionid=",
                "RB/IC=\"",
                "Ord=1",
                "Search=body",
                "RelFrameId=1",
                LAST);

        web_submit_data("pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea",
                "Action=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2FHNJT%2FYX%2FHD%2FRoles%2F___%2FZHNJT_HD_YX_002%2FFolder%2F_______2%2FYxrzmbQueryApp&CurrentWindowId=WID1343197014540&NavMode=1&PrevNavTarget=navurl%3A%2F%2Fea0feb41244f3c2423c26dca027bb94b",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.navigation.helperservice/html/child.html",
                "Snapshot=t20.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=NavigationTarget", "Value=ROLES://portal_content/HNJT/YX/HD/Roles/___/ZHNJT_HD_YX_002/Folder/_______2/YxrzmbQueryApp", ENDITEM,
                "Name=RelativeNavBase", "Value=", ENDITEM,
                "Name=windowId", "Value=WIDxDefaultExternal1343197066479", ENDITEM,
                LAST);

        web_url("emptyhover.html_7",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/emptyhover.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2FHNJT%2FYX%2FHD%2FRoles%2F___%2FZHNJT_HD_YX_002%2FFolder%2F_______2%2FYxrzmbQueryApp&CurrentWindowId=WID1343197014540&NavMode=1&PrevNavTarget=navurl%3A%2F%2Fea0feb41244f3c2423c26dca027bb94b",
                "Snapshot=t21.inf",
                "Mode=HTML",
                LAST);

        web_url("emptyhover.html_8",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/emptyhover.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2FHNJT%2FYX%2FHD%2FRoles%2F___%2FZHNJT_HD_YX_002%2FFolder%2F_______2%2FYxrzmbQueryApp&CurrentWindowId=WID1343197014540&NavMode=1&PrevNavTarget=navurl%3A%2F%2Fea0feb41244f3c2423c26dca027bb94b",
                "Snapshot=t22.inf",
                "Mode=HTML",
                LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-7-26 11:05:50 | 只看该作者
web_submit_data("PageBuilder;jsessionid=5_TjiLcJ2egm8LZESA67DpUQicW8OAESiDgA_SAP_2",
                "Action=http://hnbpmq01.chng.com.cn:50000/webdynpro/resources/sap.com/pb/PageBuilder;jsessionid={JSESSIONID4}",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2FHNJT%2FYX%2FHD%2FRoles%2F___%2FZHNJT_HD_YX_002%2FFolder%2F_______2%2FYxrzmbQueryApp&CurrentWindowId=WID1343197014540&NavMode=1&PrevNavTarget=navurl%3A%2F%2Fea0feb41244f3c2423c26dca027bb94b",
                "Snapshot=t23.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=sap-ext-sid", "Value=_o2UF981Jw5ubbXNlAcfgA--qFDijMnX0FEoNHLAjV4siw--", ENDITEM,
                "Name=sap-wd-cltwndid", "Value=WIDxDefaultExternal1343197066479", ENDITEM,
                "Name=sap-wd-tstamp", "Value=1343196933228", ENDITEM,
                "Name=PagePath", "Value=pcd:portal_content/HNJT/YX/HD/Roles/___/ZHNJT_HD_YX_002/Folder/_______2/YxrzmbQueryApp", ENDITEM,
                "Name=sap-wd-app-namespace", "Value=zzzz", ENDITEM,
                "Name=sap-ep-version", "Value=7.20.201205031840", ENDITEM,
                "Name=sap-locale", "Value=zh_CN", ENDITEM,
                "Name=sap-accessibility", "Value=", ENDITEM,
                "Name=sap-rtl", "Value=", ENDITEM,
                "Name=sap-explanation", "Value=null", ENDITEM,
                "Name=sap-cssurl", "Value=http://hnbpmq01.chng.com.cn:50000/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/ls/ls_ie6.css?v=7.31.0.14.0", ENDITEM,
                "Name=sap-cssversion", "Value=7.31.0.14.0", ENDITEM,
                "Name=sap-epcm-guid", "Value=A1A46FE379A972B92E73D7102E8F181BA32D95A51816EFC0667C8049D7E55AF6", ENDITEM,
                "Name=com.sap.portal.reserved.wd.pb.restart", "Value=false", ENDITEM,
                "Name=DynamicParameter", "Value=", ENDITEM,
                "Name=NavigationTarget", "Value=ROLES://portal_content/HNJT/YX/HD/Roles/___/ZHNJT_HD_YX_002/Folder/_______2/YxrzmbQueryApp", ENDITEM,
                "Name=NavMode", "Value=1", ENDITEM,
                "Name=CurrentWindowId", "Value=WID1343197014540", ENDITEM,
                "Name=RelativeNavBase", "Value=", ENDITEM,
                "Name=PrevNavTarget", "Value=navurl://ea0feb41244f3c2423c26dca027bb94b", ENDITEM,
                EXTRARES,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/pageheader/title_area_bg.gif?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/pageheader/subtitle_area_bg_std.gif?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/ls/sprite-i-v-p-3.png?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/group/blockheader_center.gif?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/inputfield/ico12_calendar.gif?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/PageHeader.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/Button.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/MatrixLayout.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow_plus/common/button/BtnHovBgLS.gif?7.31.0.14.0", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/DragAndDropManager.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/LoadingAnimation.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/LayeredControl.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/PopupManager.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/ColumnLayout.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/Label.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/ComboBox.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                "Url=/com.sap.ui.lightspeed/js/classes/EditFieldBase.js?1AAKDmKjIRXVg0LjTx2D3g==", ENDITEM,
                LAST);

        web_url("browserhistory.html_2",
                "URL=http://hnbpmq01.chng.com.cn:50000/com.sap.ui.lightspeed/js/html/browserhistory.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/webdynpro/resources/sap.com/pb/PageBuilder;jsessionid={JSESSIONID4}",
                "Snapshot=t24.inf",
                "Mode=HTML",
                LAST);

        web_custom_request("PageBuilder",
                "URL=http://hnbpmq01.chng.com.cn:50000/webdynpro/resources/sap.com/pb/PageBuilder",
                "Method=POST",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://hnbpmq01.chng.com.cn:50000/webdynpro/resources/sap.com/pb/PageBuilder;jsessionid={JSESSIONID4}",
                "Snapshot=t25.inf",
                "Mode=HTML",
                "Body=sap-ext-sid=_o2UF981Jw5ubbXNlAcfgA--qFDijMnX0FEoNHLAjV4siw--&sap-wd-cltwndid=WIDxDefaultExternal1343197066479&sap-wd-norefresh=X&sap-wd-secure-id=DJ1cLKmU7Ai3sP48ZaCumQ%3D%3D&SAPEVENTQUEUE="
                "Button_Press%EE%80%82Id%EE%80%84aaaa.YxrzmbQueryCompView.but_Query1%EE%80%83%EE%80%82ClientAction%EE%80%84submit%EE%80%83%EE%80%82urEventName%EE%80%84BUTTONCLICK%EE%80%83%EE%80%81Form_Request%EE%80%82Id%EE%80%84...form%EE%80%85Async%EE%80%84false%EE%80%85FocusInfo%EE%80%84%40%7B%22sFocussedId%22%3A%20%22aaaa.YxrzmbQueryCompView.but_Query1%22%7D%EE%80%85Hash%EE%80%84%EE%80%85DomChanged%EE%80%84false%EE%80%85IsDirty%EE%80%84false%EE%80%83%EE%80%82EnqueueCardinality%EE%80%84single%EE%80%83%EE%80%82%E"
                "E%80%83",
                LAST);
        return 0;
}

自己初步推断可能是动态参数的问题,做了关联扫描,但是没有提示需要有关联的地方,想对sap-wd-secure-id做下手动关联试试,但是无奈实在找不出来右边界,跪求大家指点阿!!!!!!
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2012-7-26 11:31:04 | 只看该作者
这种问题很难帮你,因为不懂你们公司的业务,而你也不懂工具怎么用。只能告诉你如果你知道什么数据是要服务器返回给你的,那么你把那段数据包贴出来,我们能帮你参考下怎么写边界,当然如果你都明白道理了,其实自己也就做的出来了
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2012-7-26 12:41:11 | 只看该作者
回复 3# 云层


    是在generaton log里面找到出问题的脚本然后判断边界是么?我找到了 但是看不懂边界是啥...
回复 支持 反对

使用道具 举报

  • TA的每日心情
    无聊
    2020-12-8 11:20
  • 签到天数: 605 天

    连续签到: 1 天

    [LV.9]测试副司令

    5#
    发表于 2012-7-27 08:48:37 | 只看该作者
    你都internal error了说明服务当掉了。。。。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-22 03:54 , Processed in 0.083508 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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