The lr_continue_on_error() function does not skip to the end of the iteration in scripts where the Run Logic contains Blocks

If a LoadRunner script has Run Logic specified that contains a sequence of Blocks and if the script uses the lr_continue_on_error() function to specify that if an error occurs that script execution should skip to the next iteration, then if an error occurs while running the script, the actual script behaviour is to skip to the start of the next block in the script in the current iteration.

When using blocks within the Run Logic of a script, how is it possible to ensure that if a particular script step fails, that execution continues at the next iteration?


The following pseudo-code example shows how to skip to the next iteration when a particular script step fails:





if (strcmp(lr_eval_string(“{WrfCount}”),”0″)==0) {

Leave a Comment