Script Continuation Options
Scripts exit with one of these options for continuation:
C Constants | JavaScript Constants | Object Oriented Constants | Behavior | Value |
LR_EXIT_VUSER | lr.EXIT_VUSER | lr.EXIT_VUSER | Exit without any condition, and go directly to end action | 0 |
LR_EXIT_ACTION_ AND_CONTINUE | lr.EXIT_ACTION_AND_CONTINUE | lr.EXIT_ACTION_ AND_CONTINUE | Stop current action, and go to the next action. | 1 |
LR_EXIT_ITERATION_ AND_CONTINUE | lr.EXIT_ITERATION_AND_CONTINUE | lr.EXIT_ITERATION_ AND_CONTINUE | Stop current iteration, and go to the next iteration. If called from within a block iteration, only the block iteration will be exited, and not the global iteration. | 2 |
LR_EXIT_VUSER_ AFTER_ITERATION | lr.EXIT_VUSER_AFTER_ITERATION | lr.EXIT_VUSER_ AFTER_ITERATION | Run until the end of the current iteration and then exit. | 3 |
LR_EXIT_VUSER_ AFTER_ACTION | lr.EXIT_VUSER_AFTER_ACTION | lr.EXIT_VUSER_ AFTER_ACTION | Run until the end of the current action and then exit. | 4 |
LR_EXIT_MAIN_ ITERATION_ AND_CONTINUE | lr.EXIT_MAIN_ITERATION_AND_CONTINUE | Stop current global script run iteration, and go to the next iteration. | 5 |
Note: The behavior of LR_EXIT_MAIN_ITERATION_AND_CONTINUE
and LR_EXIT_ITERATION_AND_CONTINUE
changed between versions 8.0 and 8.1. These options can be configured by using these run options:
-main_iteration_exit: Both LR_EXIT_MAIN_ITERATION_AND_CONTINUE
and LR_EXIT_ITERATION_AND_CONTINUE
behave like LR_EXIT_MAIN_ITERATION_AND_CONTINUE. This was the behavior before version 8.1.
-block_iteration_exit: Both LR_EXIT_MAIN_ITERATION_AND_CONTINUE
and LR_EXIT_ITERATION_AND_CONTINUE
behave like LR_EXIT_ITERATION_AND_CONTINUE
Add these flags in the [action_logic] section in mdrv.dat:
ExtCmdLine=-main_iteration_exit
or
ExtCmdLine=-block_iteration_exit