VirtualUser ExitVU Method (Boolean)C# API
Stops execution of this Virtual User, specifying whether the script completed successfully.

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

public void ExitVU(
	bool pass
)

Parameters

pass
Type: System Boolean
true if the script should be considered to have completed successfully; otherwise, false.
Remarks

The script processing for this Virtual User is immediately ended (i.e. all further statements in this script are not executed, and the execution of all further scripts is also stopped). An information message is written to the VU event log to indicate that ExitVU() has been called, and the final end entry in the log is annotated with Pass or Fail in the ID column depending on the value of pass. The Virtual User will also be counted in the In Error column in Test Controller if pass is false.

Caution note Caution
This method raises a ContextTerminationException 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