51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2833|回复: 13
打印 上一主题 下一主题

[求助] 我刚学loadrunner还不大懂大家进来看这是怎么搞的啊?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-9-20 16:36:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用loadrunner做了个网页登入脚本,在做好后我运行了几次都没问题,但当我关了LR在开时我再运行这个脚本就会出错啊?
我的脚本运行完能在BBS上看到我的ID登入成功,但是我关了LR在开时运行就开不到这个ID上线了,但是LR也没报错啊!这是为啥啊?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2006-9-20 17:01:58 | 只看该作者

进来帮帮忙吧?

进来帮帮忙吧?谢谢拉!
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2006-9-27 15:43:39 | 只看该作者
用户登陆带验证码吧??
回复 支持 反对

使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    4#
    发表于 2006-9-28 14:41:20 | 只看该作者
    我得也是啊!真是怪怪得问题啊!我录制得脚本昨天还好好得,今天用得时候就是登陆验证不通过,真是郁闷啊
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
    发表于 2006-9-28 15:38:15 | 只看该作者
    重新录制对比一下原来录制的,是不是ID已经变了。。。。。
    如果ID变了的话就要进行动态连接
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    6#
    发表于 2006-9-28 16:25:24 | 只看该作者
    把出错的信息具体拿出来,大家才好出主意的
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
    发表于 2006-9-28 16:55:33 | 只看该作者
    报的啥子错哦
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    8#
    发表于 2006-9-29 16:15:59 | 只看该作者
    web_url("welcome.do",
                    "URL=http://192.168.0.32:7011/bms/welcome.do?_nstc_webgate_sid_=FYBkglLk1nx18Vab75ov7WzLnrmMlbZWzqij75rew4wzNteKqNAP!-350737499!1159250212515",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.32:7011/webgate/login.do",
                    "Snapshot=t4.inf",
                    "Mode=HTML",
    在这里过不去,Action.c(37): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.32:7011/bms/welcome.do?_nstc_webgate
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    9#
    发表于 2006-9-29 16:34:53 | 只看该作者

    脚本

    #include "web_api.h"
    #include "lrw_custom_body.h"


    vuser_init()
    {
            web_url("index.jsp",
                    "URL=http://192.168.0.32:7007/webgate/index.jsp",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    LAST);

            web_url("main.do",
                    "URL=http://192.168.0.32:7007/webgate/main.do",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t4.inf",
                    "Mode=HTML",
                    EXTRARES,
                    "Url=img/login-1.gif", ENDITEM,
                    "Url=img/login-2.gif", ENDITEM,
                    LAST);



            web_submit_form("login.do",
                    "Snapshot=t5.inf",
                    ITEMDATA,
                    "Name=userno", "Value=0203057", ENDITEM,
                    "Name=password", "Value=00000000", ENDITEM,
                    EXTRARES,
                    "Url=img/topbarbg.gif", "Referer=http://192.168.0.32:7007/webgate/header.do", ENDITEM,
                    "Url=../gcredit/$notify.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890", "Referer=http://192.168.0.32:7007/webgate/menu.do", ENDITEM,
                    "Url=../gdebt/$notify.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890", "Referer=http://192.168.0.32:7007/webgate/menu.do", ENDITEM,
                    "Url=img/button-5.gif", "Referer=http://192.168.0.32:7007/webgate/header.do", ENDITEM,
                    "Url=img/menubarbg.gif", "Referer=http://192.168.0.32:7007/webgate/menu.do", ENDITEM,
                    LAST);

            web_url("welcome.do",
                    "URL=http://192.168.0.32:7007/gdebt/welcome.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=http://192.168.0.32:7007/webgate/login.do",
                    "Snapshot=t6.inf",
                    "Mode=HTML",
                    LAST);

            return 0;


    Virtual User Script started
    Starting action vuser_init.
    Web Turbo Replay of LoadRunner 8.0.0 for WIN2000; Web build 4141          [MsgId: MMSG-27143]
    Run-Time Settings file: "E:\load\rongzishangbao\\default.cfg"          [MsgId: MMSG-27141]
    vuser_init.c(7): web_url("index.jsp") was successful, 726 body bytes, 287 header bytes          [MsgId: MMSG-26386]
    vuser_init.c(16): Found resource "http://192.168.0.32:7007/webgate/include/main.css" in HTML "http://192.168.0.32:7007/webgate/main.do"          [MsgId: MMSG-26659]
    vuser_init.c(16): Found resource "http://192.168.0.32:7007/webgate/img/login-1.gif" in HTML "http://192.168.0.32:7007/webgate/main.do"          [MsgId: MMSG-26659]
    vuser_init.c(16): Found resource "http://192.168.0.32:7007/webgate/img/login-2.gif" in HTML "http://192.168.0.32:7007/webgate/main.do"          [MsgId: MMSG-26659]
    vuser_init.c(16): Found resource "http://192.168.0.32:7007/webgate/img/button-log.gif" in HTML "http://192.168.0.32:7007/webgate/main.do"          [MsgId: MMSG-26659]
    vuser_init.c(16): Found resource "http://192.168.0.32:7007/webgate/img/button-res.gif" in HTML "http://192.168.0.32:7007/webgate/main.do"          [MsgId: MMSG-26659]
    vuser_init.c(16): web_url("main.do") was successful, 137352 body bytes, 1429 header bytes          [MsgId: MMSG-26386]
    vuser_init.c(28): Think time - Waiting 3.00 seconds (according to limit).
    vuser_init.c(28): lr_think_time: 3.00 seconds (recorded think time was 6.00 seconds).
    vuser_init.c(30): Submitting form to "http://192.168.0.32:7007/webgate/login.do", Target Frame=""          [MsgId: MMSG-27978]
    vuser_init.c(30): Detected non-resource "http://192.168.0.32:7007/webgate/header.do" in "http://192.168.0.32:7007/webgate/login.do"          [MsgId: MMSG-26574]
    vuser_init.c(30): Detected non-resource "http://192.168.0.32:7007/webgate/menu.do" in "http://192.168.0.32:7007/webgate/login.do"          [MsgId: MMSG-26574]
    vuser_init.c(30): Detected non-resource "http://192.168.0.32:7007/webgate/content.do" in "http://192.168.0.32:7007/webgate/login.do"          [MsgId: MMSG-26574]
    vuser_init.c(30): Detected non-resource "http://192.168.0.32:7007/webgate/bottom.do" in "http://192.168.0.32:7007/webgate/login.do"          [MsgId: MMSG-26574]
    vuser_init.c(30): Resource "http://192.168.0.32:7007/webgate/include/main.css" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/skins/winclassic.css" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/js/poslib.js" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/js/scrollbutton.js" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/js/menu4.js" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/menubarbg.gif" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Downloading resource "http://192.168.0.32:7007/gcredit/$notify.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890" (specified by argument number 14)          [MsgId: MMSG-26577]
    vuser_init.c(30): Downloading resource "http://192.168.0.32:7007/gdebt/$notify.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890" (specified by argument number 17)          [MsgId: MMSG-26577]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/tips.gif" in HTML "http://192.168.0.32:7007/webgate/menu.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/include/data01.css" in HTML "http://192.168.0.32:7007/webgate/content.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/bottombg.gif" in HTML "http://192.168.0.32:7007/webgate/bottom.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/qiehuan.gif" in HTML "http://192.168.0.32:7007/webgate/bottom.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Detected non-resource "http://192.168.0.32:7007/webgate/profile.jsp" in "http://192.168.0.32:7007/webgate/bottom.do"          [MsgId: MMSG-26574]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/skins/winclassic-3.css" in HTML "http://192.168.0.32:7007/webgate/header.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/topbarbg.gif" in HTML "http://192.168.0.32:7007/webgate/header.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/button-2.gif" in HTML "http://192.168.0.32:7007/webgate/header.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/button-3.gif" in HTML "http://192.168.0.32:7007/webgate/header.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/button-4.gif" in HTML "http://192.168.0.32:7007/webgate/header.do"          [MsgId: MMSG-26659]
    vuser_init.c(30): Downloading resource "http://192.168.0.32:7007/webgate/img/button-5.gif" (specified by argument number 20)          [MsgId: MMSG-26577]
    vuser_init.c(30): Found resource "http://192.168.0.32:7007/webgate/img/bg1.gif" in HTML "http://192.168.0.32:7007/webgate/profile.jsp"          [MsgId: MMSG-26659]
    vuser_init.c(30): web_submit_form("login.do") was successful, 153081 body bytes, 5382 header bytes          [MsgId: MMSG-26386]
    vuser_init.c(42): Think time - Waiting 3.00 seconds (according to limit).
    vuser_init.c(42): lr_think_time: 3.00 seconds (recorded think time was 6.00 seconds).
    vuser_init.c(43): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.32:7007/gdebt/welcome.do?_nstc_webgate_sid_=FbxVqRWgUIWIWdxfLvaRBN3LMVXpoPdcDne18KLkEWmG1H2AGwdm!-1523907938!1159410005890"          [MsgId: MERR-26612]
    vuser_init.c(43): web_url("welcome.do") highest severity level was "ERROR", 1836 body bytes, 217 header bytes          [MsgId: MMSG-26388]
    Abort was called from an action.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    10#
    发表于 2006-9-30 13:41:15 | 只看该作者
    http://192.168.0.32:7011/bms/wel ... 37499!1159250212515”其中的“FYBkglLk1nx18Vab75ov7WzLnrmMlbZWzqij75rew4wzNteKqNAP!-350737499!1159250212515”是session信息,你的session重新获取了,这部分信息当然就不一样了。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    11#
    发表于 2006-9-30 13:55:27 | 只看该作者
    在那么样才能避免这种错误啊!求助啊
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    12#
    发表于 2006-9-30 14:05:02 | 只看该作者
    这样的论坛都是访问后会产生1个cockie文件的,这个session信息就包含在这个cockie里面,你要在脚本的“
          web_url("index.jsp",
                    "URL=http://192.168.0.32:7007/webgate/index.jsp",
                    "Resource=0",
                    "RecContentType=text/html",
                    "Referer=",
                    "Snapshot=t3.inf",
                    "Mode=HTML",
                    LAST);
    ”之后就去读取这个cockie文件,获得这个参数,然后你就可以用它了。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    13#
    发表于 2006-9-30 14:09:08 | 只看该作者
    你有MSN吗或者QQ ,我还是不太明白啊!帮帮小弟了
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2017-3-28 09:26
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    14#
    发表于 2006-9-30 14:14:38 | 只看该作者
    小弟的QQ69403600
    MSN :hjf820804@hotmail.com
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-10-9 00:44 , Processed in 0.082193 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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