WebSphere Studio Workload Simulator script
We modified the WebSphere® Studio Workload Simulator script as follows for our tests.
Note that only a portion of the script file is shown here.
⋮
start_transaction("login");
startpage(4);
thinktime(1000);
//uid = URLEncode("uid:"+random(0,num_u - 1));
//TODO: Make this random but better than above - must be random across all
clients
int clientnum;
enter_critical_section();
curClient = curClient + 1;
if (curClient > topClient)
{
curClient = botClient;
}
clientnum = curClient;
leave_critical_section();
uid = URLEncode("uid:" + clientnum);
postpage(""+hostname+"","/trade/app",1,close,0,start,"",
"uid=" +uid+ "&passwd=xxx&action=login",
"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*",
"Referer: http://"+hostname+"/trade/app",
"Accept-Language: en-us",
"Content-Type: application/x-www-form-urlencoded",
"Accept-Encoding: gzip, deflate",
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
"Host: "+hostname+"",
"Connection: Keep-Alive");
endpage;
end_transaction("login");
⋮