Page 1 of 1

Synchronise time between main Thread and PopupWatcher

Posted: Mon Jul 28, 2014 9:25 am
by BenedictWright
Hy,
I have noticed, that when the PopupWatcher creates an entry in the Report, it is not synchronised with the main threads time. See example:

Code: Select all

00:13.680 Info User Jump to item
00:13.748 Info User Jump to item
00:14.273 Info Mouse Jump to item
00:00.000 Info ThreadExecPopupWatcher Jump to item
00:00.097 Failure User Jump to item
See how main thread is at 00:14.273 but the Popuwatcher is at 00:00.000.

Is there a way to have Popupwatcher use correct timestamps?

Ranorex version: 5.0.3

Re: Synchronise time between main Thread and PopupWatcher

Posted: Wed Jul 30, 2014 3:37 pm
by Support Team
Hi Benedict,

Since the PopupWatcher is running in a separate thread, it is unfortunately not possible to synchronize the timestamps.

Regards,
Markus (S).

Re: Synchronise time between main Thread and PopupWatcher

Posted: Mon Aug 04, 2014 2:21 pm
by swmatisa
Support Team wrote:Since the PopupWatcher is running in a separate thread, it is unfortunately not possible to synchronize the timestamps.
Absolute time is the same for any thread :o

Re: Synchronise time between main Thread and PopupWatcher

Posted: Mon Aug 04, 2014 2:34 pm
by krstcs
I will send an email to [email protected] as well, but I would suggest that the PopupWatcher be created in such a way that it is handed the current "run-time" or "start time) of the test by the main test process when it is started. The watcher thread may be a little bit off, but it wouldn't be much and could be accounted for.

Re: Synchronise time between main Thread and PopupWatcher

Posted: Tue Aug 05, 2014 9:16 am
by BenedictWright
Alternatively, since Report is a ?singleton? the Report could keep track of its time und use this for reporting accross all threads.

This is actually the behaviour I was expecting.

Re: Synchronise time between main Thread and PopupWatcher

Posted: Wed Aug 27, 2014 1:26 pm
by Support Team
Hi all,

just to keep you informed: We have already added a feature request about this topic.

This feature will be released in one of our next versions.
Thank you for your patience.

Regards,
Markus (S)