VirtualUserScript SuspendTransaction Method C# API
Suspends the timing of the specified transaction, identified by tag as well as id.

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

public void SuspendTransaction(
	string id,
	string tag = ""
)

Parameters

id
Type: System String
The transaction identifier.
tag (Optional)
Type: System String
The transaction tag.
Remarks

Use ResumeTransaction(String, String) to resume timing again afterwards.
Examples

The following example demonstrates suspending a transaction while performing processing that is unrepresentative of a real user's work.
StartTransaction("login", "1");

// This should be included in the transaction time
GoToLoginPage();

SuspendTransaction("login", "1");

// The time taken for this processing to be done will be 
// subtracted from the total "login" transaction time 
// because it isn't related to the performance of the SUT
PrepareLoginDetails();

ResumeTransaction("login", "1");

// This should be included in the transaction time
PerformLogin();

EndTransaction("login", true, "1");
See Also