loadrunner Lr_类函数之 lr_get_debug_message()

lr_get_debug_message()

返回当前消息日志记录设置。

unsigned int lr_get_debug_message();

 

The lr_get_debug_message function returns the current log run-time settings . The settings determine what information is sent output. The log settings are specified with the run-time settings dialog, or by using the lr_set_debug_message function.(lr_get_debug_message函数返回当前日志运行时设置。 设置确定发送什么信息输出。 日志设置使用运行时设置对话框或使用lr_set_debug_message函数指定。)

消息将发送到LoadRunner输出窗口或应用程序管理代理日志文件。

要评估返回的值,可以执行按位AND运算。 这允许您确定设置了哪些选项。 请参见C语法示例。

 

示例:lr_get_debug_message

在以下示例中,lr_get_debug_message函数检索运行时日志记录设置,执行按位操作,并发送相应的消息。

int msg_level

msg_level = lr_get_debug_message();

/ *检查消息级别是否为

“服务器返回的数据”和“参数替换”* /

if((msg_level&LR_MSG_CLASS_RESULT_DATA)

         &&(msg_level&LR_MSG_CLASS_PARAMETERS))

     lr_output_message(“当前消息级别是结果数据和参数。”);

/ *检查标准日志记录* /

if(msg_level&LR_MSG_CLASS_BRIEF_LOG)

     lr_output_message(“Logging is enabled。”);

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值