StateNotFoundError running autopilot tests

Bug #1248576 reported by Alejandro J. Cura
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntuone-credentials (Ubuntu)
Incomplete
High
Leo Arias

Bug Description

alecu@bollo:~/canonical/ubuntuone-credentials/trunk/build$ make online-accounts-provider-autopilot-tests-local
[ 7%] Automoc for target UbuntuOneCredentialsPlugin-1.0
[ 7%] Built target UbuntuOneCredentialsPlugin-1.0_automoc
[ 14%] Automoc for target ubuntuoneauth-2.0
[ 14%] Built target ubuntuoneauth-2.0_automoc
[ 78%] Built target ubuntuoneauth-2.0
[100%] Built target UbuntuOneCredentialsPlugin-1.0
~/canonical/ubuntuone-credentials/trunk/online-accounts-provider/tests/autopilot ~/canonical/ubuntuone-credentials/trunk/build/online-accounts-provider/tests
Using server at localhost:8080
Mock server running at 8080
Loading tests from: /home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/tests/autopilot

Tests running...
127.0.0.1 - - [06/Nov/2013 11:41:42] "POST /api/v2/accounts HTTP/1.1" 201 -
127.0.0.1 - - [06/Nov/2013 11:41:42] "POST /api/v2/tokens/oauth HTTP/1.1" 201 -
127.0.0.1 - - [06/Nov/2013 11:41:42] "GET /<email address hidden>?platform=Linux&platform_version=3.11.0-12-generic&platform_arch=x86_64&client_version=99.12 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2013 11:41:58] "POST /api/v2/accounts HTTP/1.1" 400 -
127.0.0.1 - - [06/Nov/2013 11:42:09] "POST /api/v2/tokens/oauth HTTP/1.1" 201 -
127.0.0.1 - - [06/Nov/2013 11:42:09] "GET /<email address hidden>?platform=Linux&platform_version=3.11.0-12-generic&platform_arch=x86_64&client_version=99.12 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2013 11:42:18] "POST /api/v2/tokens/oauth HTTP/1.1" 401 -
127.0.0.1 - - [06/Nov/2013 11:42:27] "POST /api/v2/tokens/oauth HTTP/1.1" 401 -
127.0.0.1 - - [06/Nov/2013 11:42:29] "POST /api/v2/tokens/oauth HTTP/1.1" 201 -
127.0.0.1 - - [06/Nov/2013 11:42:29] "GET /<email address hidden>?platform=Linux&platform_version=3.11.0-12-generic&platform_arch=x86_64&client_version=99.12 HTTP/1.1" 200 -
127.0.0.1 - - [06/Nov/2013 11:42:37] "POST /api/v2/tokens/oauth HTTP/1.1" 401 -
127.0.0.1 - - [06/Nov/2013 11:42:38] "POST /api/v2/tokens/oauth HTTP/1.1" 403 -
======================================================================
ERROR: UbuntuOneCredentialsProviderAutopilotTests.test_existing_account.ExistingUOAAccountTests.test_show_remove_account_dialog
----------------------------------------------------------------------
_StringException: process-return-code: {{{-15}}}
process-stderr: {{{
Loading testability driver.
virtual void OnlineAccounts::Plugin::registerTypes(const char*) Ubuntu.OnlineAccounts
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:55:9: QML Connections: Cannot assign to non-existent property "onTriggered"
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/ExistingAccount.qml:23:1: module "Ubuntu.OnlineAccounts.Plugin" is not installed
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:26: TypeError: Cannot read property 'height' of null
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:56: TypeError: Cannot read property 'back' of undefined
}}}

process-stdout: {{{
** (qmlscene:1664): DEBUG: Exporting menu model at [/com/canonical/hud/publisher] with id [5]
** (qmlscene:1664): DEBUG: Unable to send context change now, caching for reconnection
** (qmlscene:1664): DEBUG: Exporting menu model at [/com/canonical/hud/publisher1] with id [7]
** (qmlscene:1664): DEBUG: Unable to send context change now, caching for reconnection
}}}

Traceback (most recent call last):
  File "/home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/tests/autopilot/UbuntuOneCredentialsProviderAutopilotTests/test_existing_account.py", line 30, in test_show_remove_account_dialog
    objectName='removeAccountButton')
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 318, in select_single
    raise StateNotFoundError(type_name, **kwargs)
StateNotFoundError: State not found for class '*' and filters {'objectName': 'removeAccountButton'}.

======================================================================
ERROR: UbuntuOneCredentialsProviderAutopilotTests.test_existing_account.ExistingUOAAccountTests.test_shows_expected_email
----------------------------------------------------------------------
_StringException: process-return-code: {{{-15}}}
process-stderr: {{{
Loading testability driver.
virtual void OnlineAccounts::Plugin::registerTypes(const char*) Ubuntu.OnlineAccounts
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:55:9: QML Connections: Cannot assign to non-existent property "onTriggered"
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/ExistingAccount.qml:23:1: module "Ubuntu.OnlineAccounts.Plugin" is not installed
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:26: TypeError: Cannot read property 'height' of null
file:///home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/Main.qml:56: TypeError: Cannot read property 'back' of undefined
}}}

process-stdout: {{{
** (qmlscene:1812): DEBUG: Exporting menu model at [/com/canonical/hud/publisher] with id [5]
** (qmlscene:1812): DEBUG: Unable to send context change now, caching for reconnection
** (qmlscene:1812): DEBUG: Exporting menu model at [/com/canonical/hud/publisher1] with id [7]
** (qmlscene:1812): DEBUG: Unable to send context change now, caching for reconnection
}}}

Traceback (most recent call last):
  File "/home/alecu/canonical/ubuntuone-credentials/trunk/online-accounts-provider/tests/autopilot/UbuntuOneCredentialsProviderAutopilotTests/test_existing_account.py", line 45, in test_shows_expected_email
    objectName='emailListItem')
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 318, in select_single
    raise StateNotFoundError(type_name, **kwargs)
StateNotFoundError: State not found for class '*' and filters {'objectName': 'emailListItem'}.

Ran 13 tests in 80.234s
FAILED (failures=2)
~/canonical/ubuntuone-credentials/trunk/build/online-accounts-provider/tests
tearing down server
Got signal 1 , stopping server.
[100%] Built target online-accounts-provider-autopilot-tests-local

Tags: elopio
Leo Arias (elopio)
Changed in ubuntuone-credentials:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Alejandro J. Cura (alecu) wrote :

This is on a fully updated saucy, with the autopilot ppa

Revision history for this message
Leo Arias (elopio) wrote :

Alecu, I think the problem is not autopilot, but this:
"Ubuntu.OnlineAccounts.Plugin" is not installed

It happens for me to. Any idea what we are missing?

Changed in ubuntuone-credentials:
status: Triaged → Incomplete
tags: added: elopio
dobey (dobey)
affects: ubuntuone-credentials → ubuntuone-credentials (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.