forcing the emulator name to be the same as the qml type it's too restrictive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
High
|
Max Brustkern | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When using autopilot emulators, we have to name the emulator class the same way as the QML type it represents.
Sometimes, the application will have the same QML type used in really different ways, defining different children to them. For example, an application could have a Bar used once as a bar for the top and once as a bar for the bottom.
In this case we have to put all the methods for the top bar and for the bottom bar on the same Bar emulator.
It would be a lot better if the name of the emulator is not fixed, and we can use something else to select it. What comes to mind after talking with thomi is to select the right emulator based on the attributes it has.
Something like:
class TopBar(
emulator_
def top_bar_
class BottomBar(
emulator_
def bottom_
Related branches
- Thomi Richards (community): Needs Fixing
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Max Brustkern (community): Needs Resubmitting
-
Diff: 388 lines (+292/-20)2 files modifiedautopilot/introspection/dbus.py (+95/-20)
autopilot/tests/unit/test_introspection_features.py (+197/-0)
description: | updated |
Changed in autopilot: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in autopilot: | |
assignee: | nobody → Max Brustkern (nuclearbob) |
Changed in autopilot: | |
status: | Triaged → In Progress |
Changed in autopilot: | |
status: | In Progress → Fix Released |
This bug was fixed in the package autopilot - 1.4+14. 04.20140319. 1-0ubuntu1
--------------- 04.20140319. 1-0ubuntu1) trusty; urgency=low
autopilot (1.4+14.
[ Thomi Richards ]
* Launch upstart and click applications via upstart app launch.
[ Max Brustkern ] dbus_object class method
* PEP257 docstring fixes.
* Autopilot emulators can declare a validate_
that takes a dbus path and state as arguments. (LP:1210260) (LP:
#1210260)
-- Ubuntu daily release <email address hidden> Wed, 19 Mar 2014 20:13:30 +0000