Wednesday

Loadrunner -- provide wait with waste time and timer

Action()

{

lr_start_transaction("Wait");

Wait(130000);

//lr_think_time(130);

lr_end_transaction("Wait", LR_AUTO);

return 0;

}

Create new action with name Wait

Wait(int time)

{

double timeElapsed;

merc_timer_handle_t timer;

if(time!=NULL)

{

timer = lr_start_timer();

sleep(time);

timeElapsed= lr_end_timer(timer);

lr_wasted_time(timeElapsed*1000);

}


return 0;

}