loadrunnervugen

Loadrunner lr_get_attrib_string always returns null


No matter what, lr_get_attrib_string returns null. I suspect I'm missing something small. Screenshot attached showing code, additional attributes I'm trying to take in, and the output below. Thanks!

Have tried eval string (memory error), different argument names in case of reserved name, etc.

Action()
{
    const char *Targ1;
    
    Targ1 = lr_get_attrib_string("zz");
    lr_output_message("URL: %s", Targ1);
    
    return 0;
}

enter image description here


Solution

  • Answering my own q and sharing in case it helps anyone: The problem was a glitch where Additional Attributes refused to save. This is a Loadrunner known issue covered here: https://portal.microfocus.com/s/article/KM000018481?language=en_US

    Commenting out the line mentioned in the article failed and caused a JS error while loading the Additional Attributes page, but commenting and then uncommenting it restored functionality and re-enabled saving changes.