51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 10231|回复: 10
打印 上一主题 下一主题

[讨论] LR中警告错误Warning -27077怎么才能解决呢?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-6-3 16:28:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我在LR中回放脚本有这样一个警告错误,看了帮助文档,大概意思了解一些了,但是自己还是不知道该怎么来解决这个警告~各位高手们帮忙看看,有遇到同样问题的告诉我下啊~~

貌似是说在int这个脚本里录到的东西在迭代的时候是不会回放的吧?

Message Code 27077 The "vuser_init" section contains web function(s) when the "Simulate a new user on each iteration" Run-Time Setting is ON. This may produce unpredictable results with multiple iterations
This is a warning message when running more than one iteration in the Web Replay "user model". This can occur when: (i). Each iteration emulates a new user accessing the site. In this case, the Init (and End) Sections should be empty, and any "context" (remainders from a previous iteration) should be "reset" before starting a new iteration. (ii). Each iteration emulates a single user doing the same business processes over and over again, with variations (parameterizations). For example, a banking clerk opening an account, transferring money, etc. The "login" can be recorded in the Init Section, and "logout" in the End Section. Here any "context" is NOT reset.
Troubleshooting
    • The "Simulate a new user on each iteration" run-time setting distinguishes between these possibilities. When it is "ON", the Init Section should be empty. When it is "OFF", the first Web function in the Action Section probably assumes that some preparations (e.g., "login") have been performed in the Init Section. This works fine in the first iteration, but before the second (and any following) iteration, any "context" is reset, and the script may fail.



[ 本帖最后由 codanl 于 2008-6-3 16:30 编辑 ]
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1
回复

使用道具 举报

  • TA的每日心情

    2016-12-30 10:59
  • 签到天数: 6 天

    连续签到: 1 天

    [LV.2]测试排长

    2#
    发表于 2008-6-3 16:34:19 | 只看该作者
    你可以放到action里
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
     楼主| 发表于 2008-6-4 16:53:53 | 只看该作者
    哦~~明白了~~我只是打开了一个系统的登录页面,还没有做登录操作,所以放不放到Action都没有什么问题吧?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2009-6-22 09:48:06 | 只看该作者
    请您下次别发一大堆英文帮助上来。这个解决不了问题。也让我个人看了感觉头疼。问题解决方法请参见附图。具体原理自己去看。

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

    x
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    5#
    发表于 2010-7-2 10:12:10 | 只看该作者
    这个英文的帮助说得很明白嘛。
    简单说,如果init中参数化了登录用户,并且init/action/end作为一个iteration运行则没有问题;
    如果init中参数化了登录用户,但是action中也有参数化且作迭代运行,则有可能不匹配出问题。
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    6#
    发表于 2010-7-2 20:48:33 | 只看该作者
    其实还是不太明白为什么会有这样的问题,丙个地方都参数化有何不可
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2021-6-9 14:08
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    7#
    发表于 2010-7-14 17:29:04 | 只看该作者
    我init里面没有参数化,但运行仍然出现这个警告,很是奇怪。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
    发表于 2012-7-23 16:31:31 | 只看该作者
    我也出现这问题了,按照cafard-haibin 说的,ok了,但是原理还不太明白,我还是菜鸟~~~谢谢前辈了
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9#
    发表于 2013-9-23 18:37:29 | 只看该作者
    我的今天也出这个问题了,后来找了半天,原来是脚本复制的过程中斜杠变化了
    "RecContentType=text/html",   变成了"RecContentType=textml",     大家也注意检查下看看是否是同样的问题
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    10#
    发表于 2016-1-26 16:08:04 | 只看该作者
    如果登陆程序在vuser_init中则在Run-Time的browser中取消SettingSimulate a new user on each iteration的选中就不报这个warning了
    或者把登陆程序放到action中也不会报这个warning,具体为什么还不清楚啊
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    11#
    发表于 2016-1-26 16:12:59 | 只看该作者

    simulate a new user on each iteration 取消勾选

    本帖最后由 liqingedu 于 2016-1-26 16:17 编辑

    解决办法:
    如果脚本在vser_init中需要把run-time setting中browser emulation下的simulate a new user on each iteration 取消勾选,就不报warning了
    如果脚本在action中就不会出现这个warning
    具体为什么我也不是很清楚,我看网上有人是这么说的:由于脚本迭代时,init和end只能执行一次,如果每次迭代都模拟一个新的用户并清除缓存,则用户登录信息将一并清除,因此迭代时可能会发生错误。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-5-22 10:14 , Processed in 0.079774 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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