• Vugen: Replace Any String With Another

    Posted on July 23, 2012 by Admin

    Here is an easy way to replace anything with anything in a captured string in your LoadRunner Vugen script. It is a function called “string_replace”. Place this in the top of your action section, right after the include but before the main section begins:

    char *string_replace(char *input_string,
    char *substring_to_be_replaced,
    char *substitution_string)


    // strstr function declaration
    char *strstr(const char *s1, const char *s2);

    // newstring variable the new string to be returned
    // increase the buffer size if needed. Read Entire Entry

  • Vugen: HTML and URL Recording Options Compared

    Posted on July 18, 2012 by Admin

    In LoadRunner Vugen, there are two general modes of recording: HTML and URL.

    HTML (Context Sensitive) is usually preferred for several reasons. Firstly, because it is “context sensitive” , i.e. each mouse click recorded in the script is made in the context of the previous step/page. In order to maintain context it looks through the previous page to make sure the current operation is available. This adds extra overhead because it is performed by a background utility called the run-time parser. Although the parser uses extra overhead Read Entire Entry

  • Vugen: Using LAST Value For web_reg_save_param_ex

    Posted on July 16, 2012 by Admin

    Whenever the ORD=ALL attribute is used with the web_reg_save_param_ex function, VuGen creates an array containing the number of instances that are actually captured. It also stores the total count for the number of instances automatically. This count can be referenced by getting the value of “_count”. For example, if the parameter name is ParamName, a separate parameter ParamName_count will be available with number of times the value was captured. This can also serve as index for last values captured. Use the sample code below to Read Entire Entry

  • LoadRunner 11: Capturing text using the Citrix Agent on XenApp 6.5 SOLVED

    Posted on July 13, 2012 by Admin

    Recently at one of our clients, they had an issue with not being able to capture text with the ctrx_get_text function using the 64-Bit version of the Citrix Agent for LoadRunner 11.  Read the steps here that finally fixed the issue for them. This is based on XenApp 6.5.  The client was running Windows 2008 RS SP1. This resolution references Win2008R2, but it still worked. Notice it is for version 11 Patch 2 of the Citrix Agent (not Patch 2 of LoadRunner as a whole). Patch 3 version of the Citrix agent had issues with the Read Entire Entry

  • Vugen: Simulate Various Browser Behaviors

    Posted on July 12, 2012 by Admin

    Let’s discuss the various Browser Emulation settings in Vugen’s Run-Time Settings.
    The “Simulate browser cache” option tells LoadRunner to “pretend” that it has a cache stored in the current session, and to keep track of the resources it has already downloaded. If a resource is in the cache and it is requested again by a new step in the Vugen script, it will not request this resource again from the server for that session. This is how a browser would typically behave unless the user has altered the browser cache settings.

    Th Read Entire Entry

  • Vugen: Will This Code Remove Trailing Spaces?

    Posted on July 9, 2012 by Admin

    Let’s have a little fun today – and hopefully I can get some interaction from you C Guru’s out there. How about something cryptic in C? Let’s say I wanted to remove some trailing spaces with as few lines of C code as possible. Will the example below work?
    static char* rtrim( char* s)
    int i;
    if (s){i = strlen(s); while ((–i)>0 && isspace(s[i]) ) s[i]=0;}
    return s;
    Why or why not? Care to explain what this code is doing? Comments are open and welcome. Read Entire Entry

  • HP LoadRunner 11.50 and HP Performance Center 11.50 Tutorials (Technical videos)

    Posted on July 3, 2012 by Admin

    From Silvia Siqueira –  Sr Product Marketing for HP LoadRunner

    After launching the new version of HP LoadRunner 11.5 and HP Performance Center 11.5, we are pleased to provide a list of great recorded tutorials that describe the new features and enhancements. See the list below for tutorial videos title and URLs:

    HP LoadRunner 11.50 – Tutorial: Web Async (HP Videos)
    HP LoadRunner 11.50 – Tutorial: GTW DFE (HP Videos)
    HP LoadRunner 11.50 – Tutorial: Flex protocol (HP Videos)
    HP LoadRunner 11.50 – Tutorial: Truclient Firef Read Entire Entry

  • Vugen: Gracefully Handle Various HTTP Return Codes

    Posted on July 2, 2012 by Admin

    There may be times where you want to build in logic for how your Vuser reacts to the various types of HTTP status return codes received throughout a script. For example, as web servers get overloaded, they may start sending 503 return codes. If you wanted to try and resubmit and finish out the transaction, this might be a more graceful way to handle the occasional 503 than just giving up and killing the iteration immediately. Of course, as the load continues to increase, the 503’s will become more frequent and eventually you will Read Entire Entry

  • LoadRunner 11.5 VuGen – Why SharpDevelop?

    Posted on June 28, 2012 by Admin

    Many folks are probably wondering why HP decided to change the engine for VuGen to the SharpDevelop platform in LoadRunner 11.5. I recently posed this question to Shane Evans, the product  manager for LoadRunner:
    “There were a lot of reasons for the decision. We looked at Visual Studio and Eclipse as options, among others, but each had challenges. Eclipse would have been nice, [but] the whole Java thing was a deal breaker…The team was able to build in SharpDevelop in just 2 months…  We also had the experience of our Servic Read Entire Entry

  • LoadRunner VuGen: Build Your Own web_custom_request

    Posted on June 27, 2012 by Admin

    Guest article from Tony Gartrell.
    There are occasions where a dynamic web_submit_data function needs to be built pro grammatically.  Sometimes it is possible to work around them by only sending the information that has changed since the last form submit.  But there are times where this is not be possible.  For example, take the “cancel itinerary” step in the HP Web Tour test application (that comes with LoadRunner) when recorded in Explicit URL or URL mode.  You get a request like this:

    This list will change as more flights ar Read Entire Entry