Blog

  • VuGen Error Checking and Detailed Logging

    Posted on October 3, 2012 by Admin

    This is a basic scripting technique for enhancing your VuGen scripts to add error checking and detailed logging (in this case a web HTTP status code that is in the 4XX – 5XX range) for specific steps.

    First, set up a parameter called {pIteration} that uses the Iteration Number type to automatically keep track of the iteration. At the beginning of my action.c I might start with something like this:
    // Declare Variables
    int rc = 0, iHttp;
    lr_vuser_status_message(“Starting iteration Number: %s”,
    lr_eval_string({pIterati Read Entire Entry

  • VuGen: Detailed Logging

    Posted on September 19, 2012 by Admin

    The purpose of this VuGen code is so you have one place to enter the URL for the application and grab all the Load Generator and Controller information, and send it to the execution output logs for troubleshooting purposes. Variables are set at top of the action file that it can be changed by modifying one line of code instead of all the code within the script.

    Put this code in the vuser_init() section of the script outside the vuser_init function
    //*******************************************************************
    //* GLOBA Read Entire Entry