dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #16230
[Bug 1307748] Re: xpathselect attribute matching doesn't match anything other than object Ids
ubuntu 14.04-32bit on virtualbox
[test case]
$ autopilot run test_selection_attributes
Loading tests from: /home/testuser/work
Tests running...
* "Autopilot does not end.
* "break was done by "CTRL + C".
[ recheck by proposed package]
* enable trusty-proposed & installed package.
unity:
Installed: 7.2.1+14.04.20140513-0ubuntu2
Candidate: 7.2.1+14.04.20140513-0ubuntu2
Version table:
*** 7.2.1+14.04.20140513-0ubuntu2 0
400 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-proposed/main i386 Packages
100 /var/lib/dpkg/status
7.2.0+14.04.20140423-0ubuntu1.2 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-updates/main i386 Packages
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-security/main i386 Packages
7.2.0+14.04.20140416-0ubuntu1 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty/main i386 Packages
libunity-core-6.0-9:
Installed: 7.2.1+14.04.20140513-0ubuntu2
Candidate: 7.2.1+14.04.20140513-0ubuntu2
Version table:
*** 7.2.1+14.04.20140513-0ubuntu2 0
400 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-proposed/main i386 Packages
100 /var/lib/dpkg/status
7.2.0+14.04.20140423-0ubuntu1.2 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-updates/main i386 Packages
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-security/main i386 Packages
7.2.0+14.04.20140416-0ubuntu1 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty/main i386 Packages
unity-services:
Installed: 7.2.1+14.04.20140513-0ubuntu2
Candidate: 7.2.1+14.04.20140513-0ubuntu2
Version table:
*** 7.2.1+14.04.20140513-0ubuntu2 0
400 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-proposed/main i386 Packages
100 /var/lib/dpkg/status
7.2.0+14.04.20140423-0ubuntu1.2 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-updates/main i386 Packages
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-security/main i386 Packages
7.2.0+14.04.20140416-0ubuntu1 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty/main i386 Packages
unity-autopilot:
Installed: 7.2.1+14.04.20140513-0ubuntu2
Candidate: 7.2.1+14.04.20140513-0ubuntu2
Version table:
*** 7.2.1+14.04.20140513-0ubuntu2 0
400 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-proposed/universe i386 Packages
100 /var/lib/dpkg/status
7.2.0+14.04.20140423-0ubuntu1.2 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-updates/universe i386 Packages
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty-security/universe i386 Packages
7.2.0+14.04.20140416-0ubuntu1 0
500 http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ trusty/universe i386 Packages
$ autopilot run test_selection_attributes
Loading tests from: /home/testuser/work
Tests running...
Ran 1 test in 1.361s
OK
* Is this result correct?
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1307748
Title:
xpathselect attribute matching doesn't match anything other than
object Ids
Status in Unity:
Fix Committed
Status in Unity 7.2 series:
In Progress
Status in “unity” package in Ubuntu:
Fix Released
Bug description:
I came across this issue while testing an autopilot branch of mine.
The xpathselect server-side matching (as opposed to matching in the
autopilot python code) is not working as expected.
To reproduce:
- Save this code as test_selection_attributes.py - http://paste.ubuntu.com/7252495/
- (with the unity-autopilot package installed) run: `autopilot run test_selection_attributes`
This script contains 2 tests, one passes to prove that it can get a
Launcher that has the monitor attribute of 0, the 2nd test attempts to
select the Launcher object with attribute monitor=0 and fails.
We see in the unity logs:
- "Unable to match 'monitor' against property of unknown integer type."
A bit of digging suggests that GetPropertyValue is returning an array
of values (Probably: Object type id, Value?) which means that, in
MatchIntegerProperty for instance, the values GVariantClass will never
be one of the Integer types.
To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1307748/+subscriptions