Synchronise time between main Thread and PopupWatcher

Class library usage, coding and language questions.
BenedictWright
Posts: 2
Joined: Mon Jul 28, 2014 9:19 am
Location: Freiburg im Breisgau Deutschland

Synchronise time between main Thread and PopupWatcher

Post by BenedictWright » Mon Jul 28, 2014 9:25 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Synchronise time between main Thread and PopupWatcher

Post by Support Team » Wed Jul 30, 2014 3:37 pm

Hi Benedict,

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

Regards,
Markus (S).

swmatisa
Posts: 123
Joined: Fri Aug 05, 2011 7:52 am

Re: Synchronise time between main Thread and PopupWatcher

Post by swmatisa » Mon Aug 04, 2014 2:21 pm

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
SW

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Synchronise time between main Thread and PopupWatcher

Post by krstcs » Mon Aug 04, 2014 2:34 pm

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.
Shortcuts usually aren't...

BenedictWright
Posts: 2
Joined: Mon Jul 28, 2014 9:19 am
Location: Freiburg im Breisgau Deutschland

Re: Synchronise time between main Thread and PopupWatcher

Post by BenedictWright » Tue Aug 05, 2014 9:16 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Synchronise time between main Thread and PopupWatcher

Post by Support Team » Wed Aug 27, 2014 1:26 pm

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)