** Changed in: unity (Ubuntu Trusty) Status: New => In Progress ** Changed in: unity (Ubuntu Trusty) Importance: Undecided => Medium
** Changed in: unity (Ubuntu Trusty) Assignee: (unassigned) => Stephen M. Webb (bregma) ** Description changed: + [ Impact ] + + Failed Autopilot tests are not good. + + [ Test Case ] + + 1. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click' + 2. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click' + 3. Observe that the tests don't fail. + + [ Regression Potential ] + + None observed. + + ----------------------------------------------------------------------------- + + Original Description: + The following two AP tests consistently ERROR during regular Unity testing. ====================================================================== ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click ---------------------------------------------------------------------- Empty attachments: - /var/log/syslog + /var/log/syslog unity-log: {{{WARN 2015-03-24 13:43:02 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}} Traceback (most recent call last): - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 128, in test_scaled_window_closes_on_middle_click - self.assertWindowIsScaledEquals(target_xid, False) - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals - self.assertThat(refresh_fn, Eventually(Equals(scaled))) - File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat - mismatch_error = self._matchHelper(matchee, matcher, message, verbose) - File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper - mismatch = matcher.match(matchee) - File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match - wait_fun(self.matcher, self.timeout) - File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for - new_value = refresh_fn() - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> - refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ - self.refresh_state() - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state - _, new_state = self.get_new_state() - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state - raise StateNotFoundError(self.__class__.__name__, id=self.id) + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 128, in test_scaled_window_closes_on_middle_click + self.assertWindowIsScaledEquals(target_xid, False) + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals + self.assertThat(refresh_fn, Eventually(Equals(scaled))) + File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat + mismatch_error = self._matchHelper(matchee, matcher, message, verbose) + File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper + mismatch = matcher.match(matchee) + File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match + wait_fun(self.matcher, self.timeout) + File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for + new_value = refresh_fn() + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> + refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ + self.refresh_state() + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state + _, new_state = self.get_new_state() + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state + raise StateNotFoundError(self.__class__.__name__, id=self.id) StateNotFoundError: Object not found with name 'Window' and properties {'id': 148832}. ====================================================================== ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click ---------------------------------------------------------------------- Empty attachments: - /var/log/syslog + /var/log/syslog unity-log: {{{WARN 2015-03-24 14:00:34 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}} Traceback (most recent call last): - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 148, in test_scaled_window_closes_on_close_button_click - self.assertWindowIsScaledEquals(target_xid, False) - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals - self.assertThat(refresh_fn, Eventually(Equals(scaled))) - File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat - mismatch_error = self._matchHelper(matchee, matcher, message, verbose) - File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper - mismatch = matcher.match(matchee) - File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match - wait_fun(self.matcher, self.timeout) - File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for - new_value = refresh_fn() - File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> - refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ - self.refresh_state() - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state - _, new_state = self.get_new_state() - File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state - raise StateNotFoundError(self.__class__.__name__, id=self.id) + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 148, in test_scaled_window_closes_on_close_button_click + self.assertWindowIsScaledEquals(target_xid, False) + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals + self.assertThat(refresh_fn, Eventually(Equals(scaled))) + File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat + mismatch_error = self._matchHelper(matchee, matcher, message, verbose) + File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper + mismatch = matcher.match(matchee) + File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match + wait_fun(self.matcher, self.timeout) + File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for + new_value = refresh_fn() + File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> + refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ + self.refresh_state() + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state + _, new_state = self.get_new_state() + File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state + raise StateNotFoundError(self.__class__.__name__, id=self.id) StateNotFoundError: Object not found with name 'Window' and properties {'id': 224517}. ====================================================================== -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity in Ubuntu. https://bugs.launchpad.net/bugs/1436095 Title: AP test failure: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click Status in Unity: Fix Committed Status in Unity 7.2 series: In Progress Status in unity package in Ubuntu: Fix Released Status in unity source package in Trusty: In Progress Bug description: [ Impact ] Failed Autopilot tests are not good. [ Test Case ] 1. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click' 2. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click' 3. Observe that the tests don't fail. [ Regression Potential ] None observed. ----------------------------------------------------------------------------- Original Description: The following two AP tests consistently ERROR during regular Unity testing. ====================================================================== ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click ---------------------------------------------------------------------- Empty attachments: /var/log/syslog unity-log: {{{WARN 2015-03-24 13:43:02 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}} Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 128, in test_scaled_window_closes_on_middle_click self.assertWindowIsScaledEquals(target_xid, False) File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals self.assertThat(refresh_fn, Eventually(Equals(scaled))) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat mismatch_error = self._matchHelper(matchee, matcher, message, verbose) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper mismatch = matcher.match(matchee) File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match wait_fun(self.matcher, self.timeout) File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for new_value = refresh_fn() File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ self.refresh_state() File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state _, new_state = self.get_new_state() File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state raise StateNotFoundError(self.__class__.__name__, id=self.id) StateNotFoundError: Object not found with name 'Window' and properties {'id': 148832}. ====================================================================== ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click ---------------------------------------------------------------------- Empty attachments: /var/log/syslog unity-log: {{{WARN 2015-03-24 14:00:34 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}} Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 148, in test_scaled_window_closes_on_close_button_click self.assertWindowIsScaledEquals(target_xid, False) File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals self.assertThat(refresh_fn, Eventually(Equals(scaled))) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat mismatch_error = self._matchHelper(matchee, matcher, message, verbose) File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper mismatch = matcher.match(matchee) File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match wait_fun(self.matcher, self.timeout) File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for new_value = refresh_fn() File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda> refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows] File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__ self.refresh_state() File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state _, new_state = self.get_new_state() File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state raise StateNotFoundError(self.__class__.__name__, id=self.id) StateNotFoundError: Object not found with name 'Window' and properties {'id': 224517}. ====================================================================== To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1436095/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp