51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1358|回复: 1
打印 上一主题 下一主题

[求助] 结束事务状态的涵义?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-9-11 20:33:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在插入结果事务时,有四种状态,LR_auto, Lr_pass,Lr_fail, Lr_stop分别的涵义是什么呀?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2006-9-12 11:43:49 | 只看该作者
以后这种情况最好自己看手册。下面是手册的解释:
You can manually set the status of the transaction or you can allow LoadRunner 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. However, if prior to lr_end_transaction, you change the default value using lr_set_transaction_status, lr_set_transaction_status_by_name, lr_set_transaction_instance_status or lr_fail_trans_with_error, then this is the value which is passed as status in lr_end_transaction.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-23 07:01 , Processed in 0.066877 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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