Sample WCAT script files

Posted: Apr 02, 2009  1 comments  

Average Rating

Tags
WCAT SAMPLE SCRIPT

Share this Post

At times you would want to make sure that you have the correct WCAT script files to verify that your WCAT setup is working correctly.

A copy of simple client scenario file aka client.ubr requesting the default document is as follows:

scenario
{
    name    = "default_doc";

    warmup      = 30;
    duration    = 90;
    cooldown    = 30;

    default
    {
        setheader
        {
            name    = "Connection";
            value   = "keep-alive";
        }
        setheader
        {
            name    = "Accept";
            value   = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, */*";
        }
        setheader
        {
            name    = "Accept-Language";
            value   = "en-us";
        }
        setheader
        {
            name    = "User-Agent";
            value   = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0";
        }
        setheader
        {
            name    = "Accept-Encoding";
            value   = "gzip, deflate";
        }
        setheader
        {
            name    = "Host";
            value   = server();
        }
        version     = HTTP11;
        statuscode  = 200;
        close       = ka;
    }

    transaction
    {
        id      = "default_doc";
        weight  = 100;

        request
        {
            url = "/";
        }
    }
}

A very basic WCAT settings file aka settings.ubr file querying just one counter on the server would look like:

settings
{
    counters
    {
        interval = 10;
        counter = "Memory\\Available MBytes";
    }
}

Comments

Nice one Mukhtar.  Keep writing lot of stuffs like these.

Thanks!

Apr 09 2009 by Radnus

Submit a Comment

  • Plain text is accepted.
  • URLs starting with http:// are converted to links.