Touch* operations not supported on Windows XP, 2003, and 7?

Bug reports.
roman.lutsiv
Posts: 4
Joined: Wed Nov 28, 2012 4:54 pm

Touch* operations not supported on Windows XP, 2003, and 7?

Post by roman.lutsiv » Sat Feb 09, 2013 8:46 pm

Hello Support team,

We have upgraded to Ranorex 4.0.2 (from version 3.3.4) and noticed that multiple test scenarios have failed with the error:

Code: Select all

08/02/2013 18:08:57 Error: Touch input is not supported on this operating system version.
08/02/2013 18:08:57 Error: at Ranorex.Touch.EnsureIdleWorkerStarted() 
at Ranorex.Touch.TouchStart(Element element, Int32 pointer, Location location) 
at Ranorex.Adapter.TouchStart(Int32 x, Int32 y)
Error given above is thrown by the following line of code:

Code: Select all

Host.Local.TouchStart(position.X + 10, position.Y + 5);
This worked just fine during past 2 months on Windows XP, Vista, 2003, 2008R2, and Win-7. But weekend tests run have indicated problems on at least Win XP, Win 2003 and Win-7 machines.

4.0.0 release notes say about basic touch operations support for Windows 8, but they do not call any changes for other operating systems. Are Touch* operations still expected to work? (TouchStart, TouchMove, TouchEnd etc)

Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Touch* operations not supported on Windows XP, 2003, and 7?

Post by Support Team » Mon Feb 11, 2013 9:47 am

roman.lutsiv wrote:Are Touch* operations still expected to work
Actually, the Ranorex Touch operations were never supported on desktop operating systems prior to Windows 8. Those methods on the Adapter class were intended for mobile elements only. When invoked on a desktop element, (prior to Ranorex 4.0) the methods were just re-interpreted to simply mouse clicks (e.g. Touch -> Click) and those clicks were replayed, not actual touch events.

With Ranorex 4.0 we introduced touch support for Windows 8, which really generates touch input on that desktop operating system. We decided - in order to differentiate touch from mouse input and to let the user know that actually no touch input is generated - that those methods should throw an exception when invoked on an OS that does not support touch input, that is on all Windows OSs other than Windows 8.

We are sorry that these changes cause you trouble. I hope you can understand those changes; we just believe that we need to let the Ranorex users know which features are supported by Ranorex and which are not.

Regards,
Alex
Ranorex Team
.
Image

roman.lutsiv
Posts: 4
Joined: Wed Nov 28, 2012 4:54 pm

Re: Touch* operations not supported on Windows XP, 2003, and 7?

Post by roman.lutsiv » Mon Feb 11, 2013 3:13 pm

Thank you for response. It makes sense, and we'll check the effort to replace touch events with corresponding mouse events