VirtualUserScript ExitVU Method (String, Boolean)C# API
Stops execution of this Virtual User, specifying whether the script completed successfully and a message to display at the end of the event log.

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

public void ExitVU(
	string msg,
	bool pass
)

Parameters

msg
Type: System String
An information message which appears in the Info column of the end entry.
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