Autopilot cannot access MediaPlayer component
Bug #1269578 reported by
Andrew Hayzen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot Qt Support |
Fix Released
|
Critical
|
Christopher Lee | ||
autopilot-qt (Ubuntu) |
Fix Released
|
Undecided
|
rosa maria |
Bug Description
When trying to access properties off a MediaPlayer while writing an autopilot test it became apparent that autopilot cannot find the MediaPlayer component.
I have made an example application which is the SimpleUI with the addition of a MediaPlayer component. Within the autopilot tests it attempts to access the property currentIndex but fails to find the MediaPlayer with the following error:
StateNotFoundError: State not found for class '*' and filters {'objectName': 'player'}
I have linked two branches to this bug report, one being the example application and one being the MP for the music-app in which this issue was found.
Related branches
lp:~ahayzen/music-app/mediaplayer-simplify
- Victor Thompson: Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Nicholas Skaggs (community): Approve
-
Diff: 1531 lines (+397/-453)14 files modifiedLibraryListModel.qml (+2/-0)
MusicAlbums.qml (+1/-0)
MusicNowPlaying.qml (+20/-15)
MusicPlaylists.qml (+0/-7)
MusicStart.qml (+1/-0)
MusicToolbar.qml (+50/-71)
MusicTracks.qml (+0/-5)
Player.qml (+196/-0)
common/AlbumsSheet.qml (+0/-4)
common/BlurredBackground.qml (+3/-1)
music-app.qml (+61/-294)
tests/autopilot/music_app/emulators.py (+3/-0)
tests/autopilot/music_app/tests/__init__.py (+4/-0)
tests/autopilot/music_app/tests/test_music.py (+56/-56)
lp:~thomir-deactivatedaccount/autopilot-qt/export-qobject
- PS Jenkins bot: Approve (continuous-integration)
- Christopher Lee (community): Approve
-
Diff: 96 lines (+26/-8)6 files modifieddriver/qtnode.cpp (+5/-6)
tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py (+3/-0)
tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py (+4/-0)
tests/autopilot/libautopilot_qt/tests/test_main.py (+6/-2)
tests/autopilot/testapp/qt4.qml (+4/-0)
tests/autopilot/testapp/qt5.qml (+4/-0)
- Christopher Lee (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 96 lines (+26/-8)6 files modifieddriver/qtnode.cpp (+5/-6)
tests/autopilot/libautopilot_qt/emulators/main_window_qt4.py (+3/-0)
tests/autopilot/libautopilot_qt/emulators/main_window_qt5.py (+4/-0)
tests/autopilot/libautopilot_qt/tests/test_main.py (+6/-2)
tests/autopilot/testapp/qt4.qml (+4/-0)
tests/autopilot/testapp/qt5.qml (+4/-0)
lp:~veebers/autopilot-qt/reintroduce-exporting-qobject-children-of-qml-items
- PS Jenkins bot: Approve (continuous-integration)
- Thomi Richards (community): Approve
-
Diff: 368 lines (+137/-49)6 files modifieddriver/dbus_object.cpp (+0/-1)
driver/introspection.cpp (+65/-15)
driver/introspection.h (+5/-0)
driver/qtnode.cpp (+37/-32)
driver/qtnode.h (+3/-1)
tests/unittests/tst_introspection.cpp (+27/-0)
Changed in autopilot-qt: | |
status: | New → Confirmed |
importance: | Undecided → High |
status: | Confirmed → In Progress |
assignee: | nobody → Thomi Richards (thomir) |
Changed in autopilot-qt (Ubuntu): | |
assignee: | nobody → rosa maria (rprosamaria383) |
Changed in autopilot-qt: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Fix committed into lp:autopilot-qt at revision 77, scheduled for release in autopilot-qt, milestone Unknown