← Back to team overview

touch-packages team mailing list archive

[Bug 1471598] Re: Autopilot uses mouse events, puts device in windowed mode

 

And here's the code in AP:

/usr/lib/python3/dist-packages/autopilot/input/_uinput.py:

def _get_touch_tool():
    # android uses BTN_TOOL_FINGER, whereas desktop uses BTN_TOUCH. I have
    # no idea why...
    if autopilot.platform.model() == 'Desktop':
        touch_tool = e.BTN_TOUCH
    else:
        touch_tool = e.BTN_TOOL_FINGER
    return touch_tool


I don't know either why android uses a touchpad (BTN_TOOL_FINGER), but looking at this code it seems all our tests use a touchscreen (BTN_TOUCH) when running on desktop already.

I've pushed a fix to: lp:~mzanetti/autopilot/dont-use-touchpad-for-touch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to autopilot in Ubuntu.
https://bugs.launchpad.net/bugs/1471598

Title:
  Autopilot uses mouse events, puts device in windowed mode

Status in autopilot package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu:
  Confirmed

Bug description:
  AP tests emulating mouse to run, which puts the device into windowed mode.
  mouse presence is used to toggle the windowed mode on mobile devices.

  ----orig bug ----
  The autopilot tests on Krillin run in windowed mode. I don't think this should ever happen on that form factor.

  See also a bunch of dubious errors below.

  Tests running...
  terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<mir::socket_disconnected_error> >'
  what(): Failed to send message to server: Broken pipe
  Failed to connect to server. Error was :Failed to connect to server socket: Connection refused

  (process:5172): GLib-GIO-CRITICAL **: Error while sending AddMatch() message: The connection is closed
  g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
  /bin/bash: line 1: 5172 Terminated SUPPRESS_DEPRECATED_NOTE=yes autopilot3 run ubuntuuitoolkit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopilot/+bug/1471598/+subscriptions


References