/srv/irclogs.ubuntu.com/2015/06/02/#ubuntu-autopilot.txt

=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
nik90elopio: ping14:08
elopionik90: pong.14:22
nik90elopio: hey, I am having a issue when transitioning to the ubuntu-sdk-15.04 framework..it turns out that it needs minor AP adjustments that I am unable to understand how to do14:32
nik90elopio: do you have time to give me a hand?14:32
nik90elopio: here's the clock app MP that needs help https://code.launchpad.net/~nik90/ubuntu-clock-app/migrate-to-15.04-framework/+merge/26033614:32
nik90elopio: I took a look at the music app which also seems to be doing the same transition in their MP https://code.launchpad.net/~ahayzen/music-app/refactor-bump-framework-1504/+merge/25812614:33
nik90elopio: but since the clock app uses the Page layout AP test structuring, I kind of hit a dead-end to bringing the music app fix to the clock app test suite14:33
nik90can you look at the changes made in the music-app MP and let me know how to implement that in the clock app tests?14:34
nik90the majority of the music app AP changes seems to be in 'tests/autopilot/music_app/__init__.py'14:34
elopionik90: I don't have time now, but I know a good and nice guy who might be able to give you a hand.14:36
elopiobrendand: ^14:36
nik90;)14:36
brendandnik90, i'll give as much time as i have :)14:37
brendandnik90, are the errors you get in jenkins?14:37
nik90brendand: no these are local AP failures..which complain that "TestClock" has no attribute 'main_view'14:37
brendandnik90, ok14:38
nik90brendand: turns out that there were some sdk changes made to MainView which in turn require AP adjustments..that's where I am struggling atm14:38
nik90brendand: the music app https://code.launchpad.net/~ahayzen/music-app/refactor-bump-framework-1504/+merge/258126 MP should show the changes that were made14:38
nik90I am unable to bring that over to the clock app14:38
brendandnik90, right14:39
brendandelopio, wasn't there some work done on that?14:39
brendandelopio, or it's incomplete?14:39
brendandnik90, so you're testing locally on vivid14:40
elopiobrendand: what I suppose is happening is that the class for TestClock no longer matches the custom proxy object14:40
elopioso autopilot is using the default.14:40
nik90brendand: yes testing locally on vivid14:40
nik90autopilot.exceptions.StateNotFoundError: Object not found with name 'MainView' is the error that I see after running the test now14:41
brendandelopio, no i rather suspect the main_view property doesn't get initialised any more as the object name changed14:41
brendandnik90, yeah that would do it14:41
brendandnik90, as it's MainView1214:41
elopiobrendand: that could be.14:42
nik90brendand: true..when I look at the music app MP log, ahayzen did try changing it to MainView12, but he later reverted that to something else after a comment from balloons (as seen in the MP)14:42
nik90https://code.launchpad.net/~ahayzen/music-app/refactor-bump-framework-1504/+merge/258126/comments/64409214:42
brendandnik90, does your mainView have an objectName?14:42
brendandnik90, use that14:43
brendandhmmm, but then it's still not going to match your CPO...14:43
nik90I changed it to self.main_view = self.app.wait_select_single(objectName="clockMainView")14:44
brendandi wonder why we didn't hit this yet with system apps14:45
brendandmaybe they don't use the SDK in the same way?14:45
brendandnik90, what happens then?14:45
nik90brendand: same error..I made the changes to only emulators.py14:46
nik90However there is a function def main_view(self): in __init__.py that I am not sure how to change14:46
brendandnik90, you could change it in the same way and it will get rid of that error at least14:48
brendandbut, won't solve the whole thing14:48
brendandproblem is AP doesn't understand the version part of the class name14:48
brendandi have to look at what music_app is doing14:49
nik90brendand: I did try that .. but the error output is http://paste.ubuntu.com/11522278/14:50
nik90since previously that function had one statement which was self.app.wait_select_single(emualtors.MainView)14:50
nik90I replaced emulators.MainView with objectName="clockMainView"14:50
brendandnik90, not just 'clock'?14:55
brendandMainView {14:55
brendand    id: clockApp14:55
brendand    // Property to store the state of an application (active or suspended)14:55
brendand    property bool applicationState: Qt.application.active14:55
brendand    // objectName for functional testing purposes (autopilot-qt5)14:55
brendand    objectName: "clock"14:55
nik90brendand: I changed the objectname in the qml code to clockMainView to better distuinguish it for now14:57
brendandnik90, seems to be matching multiple things14:59
nik90brendand: what do you mean?14:59
brendandnik90, the error: More than one custom proxy class matches this object14:59
nik90brendand: I suspect that because we use the same objectName in __init__.py and emulators.py15:00

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!