Our legacy site: www.webwob.com   

VUgen scripting methods (page 3)

This page will cover more LoadRunner scripting methods, following on from the legacy site pages.

     LoadRunner CI/CD      *_LR_CI_*      LR_CI_+      Email_out      Email_in      Cookies 1      TUTORIAL      sprintf      debug      VUgen      Kill -9      disk space      AWS S3      dig (DNS++)      substitute      curl with timings      LR_Jenkins_graphs     
    

Send out extra debug info when needed during a test run


VuGen code snippet:

vugen code:

    lr_start_transaction("ccs_br_hub");
        
        web_url("br_hub",
            url,
            "Resource=0",
            "RecContentType=text/html",
            "Referer=https://id.{environment}.server.com/login?redirectUrl=https://id.{environment}.server.com/http/why-register/",
            "Snapshot=t5.inf",
            "Mode=HTTP",
            LAST);
        
    
    //Check the HTTP code for a non-200.
    iHTTPCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
    
    if (iHTTPCode != 200 && iHTTPCode != 404)
    {
        lr_error_message("Debug: HTTP %d Detail: %s URL: %s", iHTTPCode, userAgent, url);
        lr_end_transaction("ccs_br_hub",LR_FAIL);
    }
    else
        lr_end_transaction("ccs_br_hub",LR_PASS);