Skip to main content

Posts

Showing posts from March, 2014

lr_set_debug_message function in loadrunner with examples

Lr_set_debug_message – One of my favorite lr function in loadrunner. It is mainly useful when we are unable to find correlation value in a particular request. We usually use Extended log -> Data Returned by Server in Run-time Settings to get all the response in replay log. Sometimes the vugen will crash or becomes slow as the vugen is writing all the response to replay log. Extended Log in Run-time Settings If it crashes or taking long time to execute the script then it’s better to use lr_set_debug_message instead of using Data Returned by Server . In the following example we have added data returned by server only to particular request. Example: lr_set_debug_message   ( LR_MSG_CLASS_EXTENDED_LOG   |   LR_MSG_CLASS_FULL_TRACE ,   LR_SWITCH_ON );          web_ url ( "Bing" ,          " URL = http://www.bing.com/ " ,          " Mode = HTML " ,          LAST   ); lr_set_debug_message   ( LR_MSG_CLASS_EXTENDED_LOG   |   LR_M