Perform the Same action multiple times with different parameters
Sometimes we might want to perform the same action multiple times with different parameters. The following is a basic example of how to do this in LoadRunner. In this example we have three different Parameters {Param_1}, {Param_2} and {Param_3} as shown. The following script will perform three searches on google.co.in using above three different parameters. Action() { int i; char temp[10]; // Progress Through 3 Parameters stored in {Param_1}, {Param_2} and {Param_3} for(i=1;i<4;i++) { //stores the output like {Param_1} to variable temp sprintf(temp,"{Param_%d}",i ); //To print the value of temp lr_message("print %s",temp ); //Evaluate the temp and store the value in Param_value lr_save_string(lr_eval_string(temp), "Param_value"); lr_start_transaction("Se