51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2280|回复: 2
打印 上一主题 下一主题

[求助] 两个没通过错误的区别。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-3-29 14:45:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
failed transactions和errors有什么区别?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情

    2016-4-19 10:15
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    2#
    发表于 2014-4-24 15:07:37 | 只看该作者
    有谁能解释一下吗?我也想知道。
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
    发表于 2014-4-24 16:24:01 | 只看该作者
    提到的failed和errors应该是指场景执行中发生的次数吧,简单说说我的理解

    首先LR定义事务结束的状态有四个:LR_PASS(执行成功)、LR_FAIL(执行失败)、LR_AUTO(自动)、LR_STOP(终止)  


    You can manually set the status of the transaction or you can allow the script to detect it automatically. To manually set the status, you perform a manual check within the code of your script (see example) evaluating the return code of a function. For the "succeed" return code, set the status to LR_PASS. For a "fail" return code, set the status to LR_FAIL. For an "aborted" return code, set the status to LR_STOP. If status is LR_AUTO, then the value of status is automatically assigned. By default, this value is LR_PASS signifying a successful transaction.


    1.成功结束(包含手动置结果为LR_PASS、和LR_AUTO时成功返回响应的事务)——状态为passed
    2.事务执行未结束,主动停止了事务(例如手动置状态为LR_STOP,但服务器等待超时不算主动停止) ——状态为stopped
    3.事务执行未返回预期结果(如执行出错、超时等)、或手动置结果为LR_FAIL --状态为fail   

    以上是failed中会出现的可能,至于errors跟它并不是对应的

    回放结果有3类messsage:nomal、warning、error
    只要执行过程中出现了error类别的信息(可以是服务器返回的,也可以是你自己写的lr_error_message等等),就会计入1次errors统计
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-9-27 17:31 , Processed in 0.084288 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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