do {
x++;
lr_think_time(10);
/* Registering parameter
// {ILSessionID} = ""
// */
web_reg_save_param("ILSessionID",
"LB/IC=SH_SYSTEM_SESSION_ID'] = '",
"RB/IC='",
"Ord=1",
"Search=Body",
"RelFrameId=1",
"Notfound=Empty",
LAST);
/* Registering parameter
// {CaseID} = ""
// */
web_reg_save_param("CaseID",
"LB/IC=CS_CASE_ID'] = '",
"RB/IC='",
"Ord=1",
"Search=Body",
"RelFrameId=1",
"Notfound=Empty",
LAST);
web_submit_data("poll.do_3",
"Action=http://{Host}/poll.do?mwid=window.parent&usersessid={userSessionId}&dom=0&activetime=0&inactivetime=0&wrapuptime=0&loginreadytime=0&loginnotreadytime=11",
"Method=POST",
"RecContentType=text/html",
"Referer=http://{Host}/poll.do?mwid=window.parent&usersessid={userSessionId}&dom=0&activetime=0&inactivetime=0&wrapuptime=0&loginreadytime=0&loginnotreadytime=6",
"Snapshot=t102.inf",
"Mode=HTTP",
ITEMDATA,
"Name=logInfo", "Value=", ENDITEM,
LAST);
lr_output_message("The time is %s",lr_eval_string("{Time}"));
lr_output_message("Loop number %x and internal list session %s.", x, lr_eval_string("{ILSessionID}"));
} while ((strlen(lr_eval_string("{ILSessionID}")) < 1) && x<50);
if (x==50 && (strlen(lr_eval_string("{ILSessionID}")) < 1)) {
lr_error_message("No internal list session obtained for user session %s.", lr_eval_string("{userSessionId}"));
}