VirtualUser RecordMetric Method C# API
Records a user metric.

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

public void RecordMetric(
	string name,
	int value,
	VirtualUserScript script = null


Type: System String
The metric identifier.
Type: System Int32
The metric value.
script (Optional)
Type: Facilita.Fc.Runtime VirtualUserScript
The currently executing VirtualUserScript.

This can be any numeric value which is considered relevant to the test, such as the number of search results returned by a web page, or a count of files in a directory.

The metric value is written to the Virtual User event log. A chart showing how the metric value changes during the test will be available in Test Controller and Analyzer.

See Also