Load Testing with HP LoadRunner

The University of Florida is looking to share and collaborate with others using HP LoadRunner for load testing our Sakai instances. Please use this page to track HP LoadRunner resources, pointers, and maybe even links to actual testing scripts or script repositories.

Interesting links for load testing:

UMich Load testing results

QA working group testing pagePresentation on load testing from 6th Sakai Conference

Sample script snippets:

// The snippets below visit the public portal, login with Shibboleth, then visit My Workspace, then use the "Account" tool to check the user's email address.
/* These snippets require the following parameters :
 - site_url: the hostname of your production cluster

 - JSESSIONID: a route for mod_proxy_balancer
 - username, password, email are self explanatory

*/


public_portal()

{

    lr_eval_string("{JSESSIONID}");



    web_reg_find("Text=Server {JSESSIONID}",

        "Fail=NotFound",

        LAST);



    web_url("{site_url}",

        "URL=https://{site_url}/portal?JSESSIONID=foo.{JSESSIONID}",

        "Resource=0",

        "RecContentType=text/html",

        "Referer=",

        "Snapshot=t4.inf",

        "Mode=HTML",

        LAST);



    lr_think_time( 3 );



    return 0;

}


shib_login()

{



    web_url("{site_url}/portal/login",

        "URL=https://{site_url}/portal/login",

        "Resource=0",

        "RecContentType=text/html",

        "Referer=",

        "Snapshot=t4.inf",

        "Mode=HTML",

        LAST);



    lr_think_time( 3 );



    web_reg_find("Text=Continue",

        "Fail=NotFound",

        LAST);



    web_submit_form("UserPassword",

        "Snapshot=t7.inf",

        ITEMDATA,

        "Name=j_username", "Value={username}", ENDITEM,

        "Name=j_password", "Value={password}", ENDITEM,

        "Name=login", "Value=Login", ENDITEM,

        LAST);



    web_reg_find("Text=My Workspace",

        "Fail=NotFound",

        LAST);



    web_submit_form("POST",

        "Snapshot=t8.inf",

        ITEMDATA,

        LAST);



    return 0;

}

email_check()

{

    web_url("{site_url}/portal",

        "URL=https://{site_url}/portal",

        "Resource=0",

        "RecContentType=text/html",

        "Referer=",

        "Snapshot=t4.inf",

        "Mode=HTML",

        LAST);



    lr_think_time( 3 );



    web_reg_find("Text={email}",

        "Fail=NotFound",

        LAST);



    web_link("my account view",

        "Text=Account",

        "Snapshot=t9.inf",

        LAST);



    return 0;

}