VirtualUserScript EndTransaction Method C# API
Writes an end transaction event to the VU event log, specifying whether the transaction passed, and specifying a tag which appears in the Info column.

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

public int EndTransaction(
	string id,
	bool pass = true,
	string tag = ""
)

Parameters

id
Type: System String
The transaction identifier.
pass (Optional)
Type: System Boolean
true if the transaction should be interpreted as a pass; otherwise, false.
tag (Optional)
Type: System String
Extra information which appears in the Info column.

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) 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.

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.

If the transaction failed, then it will be counted separately in Test Controller and Analyzer.

See Also