Gets the current elapsed time of the transaction with the specified id and tag.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.7.98
Syntax
public int GetTransactionElapsedTime( string id, string tag = "", VirtualUserScript script = null )
Parameters
- id
- Type: System String
The transaction identifier.
- tag (Optional)
- Type: System String
The transaction tag.
- script (Optional)
- Type: Facilita.Fc.Runtime VirtualUserScript
The currently executing VirtualUserScript.
Return Value
The elapsed time of the transaction, in milliseconds.Examples
StartTransaction("Transaction1", "Tag1"); // do activity StartTransaction("Transaction1", "Tag2"); if (GetTransactionElapsedTime("Transaction1", "Tag1") > 5000) { SetProgressPoint("Activity > 5 Seconds"); } EndTransaction("Transaction1", true, "Tag1"); // do more activity EndTransaction("Transaction1", true, "Tag2");
See Also