TruClient: Transaction finished successfully but error is still thrown - Strange
I'm using LR TruClient 11. Got a baffling issue hope some body has seen it before.
So I have this transaction of "clicking a link" named "Transaction1".
Here is the replay log in VuGen:
Notify: Transaction "Transaction1" started.
Notify: Transaction "Transaction1" ended with "Pass" status (Duration: 2.2377).
Error: Failed to end Transaction "Transaction1" (by name). Please check that you made a call to start transaction operation.
Then as you can imagine, All "Transaction1" failed in controller.
Looks like LR doesn't execute the transaction, or it for some reason "forgets" that "Transaction1" has started.
I tried adding wait, wait for object, and verify before the transaction starts, but none of these help.
Could anybody shed some light on this?
Try changing the End Event to 'Action completed' for the step you are seeing this issue.
Click and Script is based on the DOM, where as Truclient is direct replay in the browser.
Action Completed - Dispatched when the action defined in the step is completed.
Step network completed - Dispatched when the network activity associated with the step is completed. Ajax TruClient waits a small amount of time in order to make sure that no new requests are created after all other requests have ended. The threshold is configurable via the script Runtime Settings (default is 150ms).
DOM Content Loaded - Corresponds to the "domcontentloaded" event and is dispatched when parsing of the page is completed. The event will be dispatched only if the step's action has triggered a page navigation. For more information about the "domcontentloaded event see https://developer.mozilla.org/en/Gec...MContentLoaded