VirtualUser FailTransaction Method (String)C# API
Writes a fail transaction event to the VU event log.

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

public int FailTransaction(
	string id
)

Parameters

id
Type: System String
The transaction identifier.

Return Value

Elapsed time in milliseconds since the start of the test.
Remarks

The time in milliseconds since the start of the test run is recorded when this method is called. The StartTransaction(String, String, VirtualUserScript) method should already have been called with the same id. eggPlant Performance uses the time difference between the events to calculate the transaction time for the transaction named with the specified id.

This transaction will be interpreted as having failed, so it will be counted separately in Test Controller and Analyzer. This is equivalent to calling EndTransaction(String, Boolean, String, VirtualUserScript) with a pass value of false.

Test Controller and Analyzer use the transaction times to calculate statistics such as average transaction time for each different id. These statistics give an indication of the performance of the System Under Test, as they show how long it takes for Virtual Users to perform the actions.

See Also