/srv/irclogs.ubuntu.com/2015/07/20/#ubuntu-quality.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
Saviqelopio, hey, it's me again ;) any idea what's wrong with class Foo in this case http://pastebin.ubuntu.com/11909425/ ?14:15
kenvandinerhuddie, i've run into another problem with autopilot tests and the OSK, https://bugs.launchpad.net/autopilot/+bug/147624814:16
ubot5Ubuntu bug 1476248 in Autopilot "Tests with dialogs fail when using the OSK " [Undecided,New]14:16
kenvandinerhuddie, any test i run that uses a dialog hangs forever14:16
rhuddiekenvandine, oh, interesting. I'll try and reproduce it14:17
kenvandinerhuddie, thx14:17
kenvandinefeels like we're getting closer to CI passing again :)14:17
kenvandinebut not there yet14:17
kenvandinerhuddie, it hangs forever, and if i kill the test i see this14:18
kenvandineautopilot.exceptions.StateNotFoundError: Object not found with name 'Button' and properties {'id': 214}.14:18
rhuddiekenvandine, ok, i'll give it a go. does the text get entered into the dialog? seems like its failing at the point of trying to find the button object14:19
kenvandineyeah14:19
kenvandinetext is entered fine14:19
kenvandinejust never clicks the button, because it doesn't get the object14:20
rhuddiekenvandine, thats very strange. I'll look at the test, the fact the text is entered ok suggests this could be some un-related problem14:21
kenvandineit happens for every test we have that uses a dialog14:21
kenvandinewhich there are quite a few14:22
kenvandineit was never an issue with the fake keyboard14:22
=== chihchun is now known as chihchun_afk
rhuddiekenvandine, it looks to me the problem is that the osk is obscuring the connect button14:32
kenvandineright14:32
kenvandinecommon issue with dialogs14:32
rhuddiekenvandine, so how is the user supposed to press the connect button?14:33
kenvandineswipe it away14:33
rhuddieso i would say the test needs to do the same thing14:33
kenvandineugh... how do we do that?14:34
kenvandinewe have a ton of tests with dialogs14:34
rhuddiekenvandine, well i think this is why many projects kill maliit-server, so the osk does not get in the way14:35
kenvandinei guess14:35
rhuddielet me check, i'm sure there is a method to do that14:35
kenvandinethx14:35
=== meetingology` is now known as meetingology
=== JoseeAntonioR is now known as jose
rhuddiekenvandine, there is a dismiss() method in the osk Keyboard class, http://bazaar.launchpad.net/~phablet-team/ubuntu-keyboard/trunk/view/head:/tests/autopilot/ubuntu_keyboard/emulators/keyboard.py#L11914:42
kenvandinethx14:43
rhuddiekenvandine, this is obviously specific to the osk instance though. so you would need to create your own instance of the OSK Keyboard and call it on that.14:44
rhuddiekenvandine, this is where its done in the toolkit: http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_common.py#L5614:44
kenvandineAttributeError: 'Keyboard' object has no attribute 'dismiss'15:06
kenvandinerhuddie, ^^15:06
* kenvandine scratches head15:06
kenvandinei guess i need more than ubuntuuitoolkit.get_keyboard()15:10
kenvandinerhuddie, do you know of any other projects that do something like that?15:11
rhuddiekenvandine, the ubuntu_keyboard tests call dismiss directly on the keyboard object15:13
rhuddiekenvandine, let me have a try15:13
kenvandinei'm guessing my real problem is getting the keyboard object15:14
kenvandinerhuddie, http://paste.ubuntu.com/11909733/15:28
kenvandinewhatever Keyboard object i'm getting, must not be the right one15:28
rhuddiekenvandine, yes, I only managed to call dismiss this way: http://pastebin.ubuntu.com/11909754/15:31
kenvandineok15:32
rhuddiekenvandine, i think the autopilot method returns a generic keyboard instance, which doesn't have the osk dismiss method15:32
kenvandinecool15:34
kenvandinethat worked15:34
kenvandinenow i need to add that to dozens of tests :/15:34
rhuddiekenvandine, a helper like this would be good that checks if maliit-server is running, so it will only do anything if the osk is being used: http://pastebin.ubuntu.com/11909779/15:40
=== timp is now known as t1mp
=== enhydra` is now known as enhydra
=== alai` is now known as alai1
=== elopio_ is now known as elopio
balloonsubuntu-qa, is anyone using adt-run successfully to test on phones atm? I'm seeing issues trying to use it with -p19:12
nuclearbob_balloons: all day every day. I forget what -p is, though19:13
balloonsnuclearbob_, to send the password. It's a bit odd and confusing why ot's not working19:13
nuclearbob_balloons: oh. can you send me your command line?19:13
balloonsadt-run --click com.ubuntu.calculator --- ssh -s adb -p 000019:14
balloonsreally simple example19:14
nuclearbob_I think maybe you need another -- before the -p, but I'll check mine19:14
davmor2muhahahah all balloons passwords are belong to us19:14
nuclearbob_it's the same as the combination on my luggage!19:15
balloonsdavmor2, you know I was sneaky and changed it? right? right?19:15
balloonsmind games!19:15
nuclearbob_balloons: yeah, you want another -- before the -p 1234519:15
balloonsnuclearbob_, indeed that got me farther19:15
davmor2balloons: I see through your double bluff, and raise you a counter of meh19:16
balloonsthanks nuclearbob_ !19:16
* balloons pops up the pressure and rushes to change his passwords to keep his devices from evil Dave19:19
davmor2pff please  like I could be bother to go where it's hot to tat on a phone when I have 4 here19:22
balloonsdavmor2, lol, you know my phone won't let you connect via usb anyway. It's useless to you!19:44
davmor2balloons: not unless I steal your stubby usb lead at the same time then all your data is mine muhahahahahahahaha19:45
balloonsnoes! not my cable. I had to bribe elopio for that!19:45
elopioI have plenty of usb cables but no blueberries. Whenever you want we can make more business.19:47
=== alai1 is now known as alai1-afk
=== alai1-afk is now known as alai1
ahayzenballoons, the extra -- before the -p works \o/ "autopilot            PASS", sweet bring on weather-app-reboot AP tests :-)22:04
=== alai1 is now known as alai1-afk
balloonsahayzen, :-)23:43

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