VirtualUser RecordMetric Method C# API
Records a user metric.

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

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

Parameters

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

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