For loop to iterate a block of script in loadrunner


C Program:

int Max = 10; //no. of times for loop should run
int i =0; //initializing the loop

Action()
{

lr_start_transaction();
Web Request
lr_end_transaction();


for(i = 0; i<Max;i++) //For loop will run 10 times
{
lr_start_transaction(); //Block of the loadrunner script
Web Request
lr_end_transaction();
}

lr_start_transaction();
Web Request
lr_end_transaction();

return 0;
}

No comments:

Post a Comment