← Back to team overview

touch-packages team mailing list archive

[Bug 1369573] [NEW] camera_app.tests.test_flash.TestCameraFlash.test_cycle_video_flash fails sometimes due to wrong geometry of the flash icon

 

Public bug reported:

test failure:
camera_app.tests.test_flash.TestCameraFlash.test_cycle_video_flash


The above test fails because the settingsProperty property is not reliable enough. Sometimes the test ends up clicking 'location' icon which results in the test failure. We need to find a better way to select this icon.

test-log: {{{
13:17:04.391 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
13:17:04.406 WARNING testcase:162 - Process manager backend unavailable, application snapshot support disabled.
13:17:05.915 INFO _launcher:280 - Attempting to launch click application '(default)' from click package  'com.ubuntu.camera' and URIs ''
13:17:06.878 INFO _launcher:120 - Attempting to launch application 'com.ubuntu.camera_camera_3.0.0.389' with URIs '' via upstart-app-launch
13:17:11.270 DEBUG _common:45 - Moving to object's globalRect coordinates.
13:17:11.271 DEBUG _uinput:470 - Tapping at: 45,45
13:17:11.419 INFO logging:45 - Panel: Open the panel if it's not already opened. Arguments (). Keyword arguments: {}.
13:17:11.769 DEBUG _uinput:541 - Dragging from 384,1279 to 384,1118
13:17:14.027 DEBUG _common:45 - Moving to object's globalRect coordinates.
13:17:14.028 DEBUG _uinput:470 - Tapping at: 123,1163
13:17:14.726 DEBUG dbus:352 - Selecting objects of type OptionValueButton with attributes: {}
13:17:14.926 DEBUG _common:45 - Moving to object's globalRect coordinates.
13:17:14.927 DEBUG _uinput:470 - Tapping at: 186,947
}}}

Traceback (most recent call last):
  File "/home/phablet/autopilot/camera_app/tests/test_flash.py", line 86, in test_cycle_video_flash
    self.assertThat(flash_button.iconName, Equals("torch-on"))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 423, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'torch-on' != 'torch-off'

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: camera-app 3.0.0+14.10.20140908-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-14.20-generic 3.16.2
Uname: Linux 3.16.0-14-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Sep 15 19:00:25 2014
InstallationDate: Installed on 2014-06-14 (92 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140610.1)
SourcePackage: camera-app
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: camera-app (Ubuntu)
     Importance: Medium
         Status: New


** Tags: amd64 apport-bug utopic

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

Title:
  camera_app.tests.test_flash.TestCameraFlash.test_cycle_video_flash
  fails sometimes due to wrong geometry of the flash icon

Status in “camera-app” package in Ubuntu:
  New

Bug description:
  test failure:
  camera_app.tests.test_flash.TestCameraFlash.test_cycle_video_flash

  
  The above test fails because the settingsProperty property is not reliable enough. Sometimes the test ends up clicking 'location' icon which results in the test failure. We need to find a better way to select this icon.

  test-log: {{{
  13:17:04.391 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
  13:17:04.406 WARNING testcase:162 - Process manager backend unavailable, application snapshot support disabled.
  13:17:05.915 INFO _launcher:280 - Attempting to launch click application '(default)' from click package  'com.ubuntu.camera' and URIs ''
  13:17:06.878 INFO _launcher:120 - Attempting to launch application 'com.ubuntu.camera_camera_3.0.0.389' with URIs '' via upstart-app-launch
  13:17:11.270 DEBUG _common:45 - Moving to object's globalRect coordinates.
  13:17:11.271 DEBUG _uinput:470 - Tapping at: 45,45
  13:17:11.419 INFO logging:45 - Panel: Open the panel if it's not already opened. Arguments (). Keyword arguments: {}.
  13:17:11.769 DEBUG _uinput:541 - Dragging from 384,1279 to 384,1118
  13:17:14.027 DEBUG _common:45 - Moving to object's globalRect coordinates.
  13:17:14.028 DEBUG _uinput:470 - Tapping at: 123,1163
  13:17:14.726 DEBUG dbus:352 - Selecting objects of type OptionValueButton with attributes: {}
  13:17:14.926 DEBUG _common:45 - Moving to object's globalRect coordinates.
  13:17:14.927 DEBUG _uinput:470 - Tapping at: 186,947
  }}}

  Traceback (most recent call last):
    File "/home/phablet/autopilot/camera_app/tests/test_flash.py", line 86, in test_cycle_video_flash
      self.assertThat(flash_button.iconName, Equals("torch-on"))
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 423, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 'torch-on' != 'torch-off'

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: camera-app 3.0.0+14.10.20140908-0ubuntu1
  ProcVersionSignature: Ubuntu 3.16.0-14.20-generic 3.16.2
  Uname: Linux 3.16.0-14-generic x86_64
  ApportVersion: 2.14.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Mon Sep 15 19:00:25 2014
  InstallationDate: Installed on 2014-06-14 (92 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140610.1)
  SourcePackage: camera-app
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/camera-app/+bug/1369573/+subscriptions


Follow ups

References