VirtualUserScript Script Method C# API
This is the method which will be run by the VirtualUser when it executes this script, and is where you should write your test script code.

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

public abstract void Script()
Remarks

Note Note
This is an abstract method and must be overridden in subclasses of VirtualUserScript. In scripts created using eggPlant Performance Studio, a blank Script() method is automatically added.

If this script is assigned to a Virtual User group in a test, or is part of a workflow that is assigned to a Virtual User group in a test, then the script will be executed when the test is run.

If this Virtual User (along with any others in the group) is assigned a single script, then the Script() method of the VirtualUserScript object is called once per iteration.

If this Virtual User (along with any others in the group) is assigned a workflow, then the point at which the Script() method is called depends on which section of the workflow the script is in.

  • initial sequence of scripts: the Script() method of each VirtualUserScript object is called once at the beginning of the test, in the order in which the scripts appear in the sequence.
  • repeated sequence of scripts: the Script() method of each VirtualUserScript object is called once per iteration, in the order in which the scripts appear in the sequence.
  • final sequence of scripts: the Script() method of each VirtualUserScript object is called once at the end of the test, in the order in which the scripts appear in the sequence.

See Also