Performance Testing, LoadRunner Tips&Tricks

This site is moving to a bigger space @ LoadRunner TnT

Scripts: Set Debug Mode in Script

Sometimes there is a need to know what is the data being transmitted in the Replay Log or performing troubleshooting of the scripts. When the usual options are configured. Parameter substitution, Advance Trace and Data Returned by Server are turned on, it’s going to generate a big chunk of data.

And in circumstances, you need to know only a certain portion of script to ensure that it is working perfectly, you have to wait through the replay, waiting for it to complete. As such, below is a faster way of generating the Replay Log in a shorter format. This, of course is not effective.
So, how do we reduce the information generated to the Replay Log?
You can use the lr_set_debug_message to display only a certain portion of the log generated. Place the lr_set_debug_message before the codes that you want the replay log to receive and close it again as per your requirement. The syntax is as below and more information can be consulted in the Function Reference.

lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG LR_MSG_CLASS_RESULT_DATA
LR_MSG_CLASS_PARAMETERS LR_MSG_CLASS_FULL_TRACE, LR_SWITCH_ON);
/*
…. Actions
*/

Lr_set_debug_message(LR_MSG_CLASS_EXTENDED_LOG LR_MSG_CLASS_RESULT_DATA
LR_MSG_CLASS_PARAMETERS LR_MSG_CLASS_FULL_TRACE, LR_SWITCH_OFF);

Labels: , , , ,


Bookmark this article now! AddThis Social Bookmark Button



technorati del.icio.us reddit digg

0 Responses to “Scripts: Set Debug Mode in Script”

Post a Comment


Powered by Google

Enter your email address:

Delivered by FeedBurner


Add to Technorati Favorites


XML

Powered by Blogger

make money online blogger templates

Powered by FeedBurner

Blog Directory

Top Blogs

Software Blogs -  Blog Catalog Blog Directory





© 2007 Performance Testing, LoadRunner Tips&Tricks | Blogger Templates by GeckoandFly.
No part of the content or the blog may be reproduced without prior written permission.
Learn how to make money online | First Aid and Health Information at Medical Health