VirtualUser NextScript Method C# API
Stops execution of the current script, and starts execution of the next script in the sequence.

Namespace: Facilita.Fc.Runtime
Assembly: fc_clr (in fc_clr.dll) Version: 9.5.8.37
Syntax

public void NextScript()
Remarks

The execution of the calling script ceases and the execution of the next script in the sequence of scripts to be executed is begun. This method and the return statement are not equivalent. This method should be used in preference to the return statement. Remember that a VirtualUserScript may have additional methods other than Script  and executing a return statement from anywhere other than the Script  method will not exit the execution of the VirtualUserScript object.

Caution note Caution
This method raises a ScriptContextTerminationException and under normal conditions you should not write any code to catch this exception, as this would interfere with the mechanism of the eggPlant Performance engine.

See Also