=== chihchun_afk is now known as chihchun | ||
=== chihchun is now known as chihchun_afk | ||
=== chihchun_afk is now known as chihchun | ||
Saviq | elopio, hey, it's me again ;) any idea what's wrong with class Foo in this case http://pastebin.ubuntu.com/11909425/ ? | 14:15 |
---|---|---|
kenvandine | rhuddie, i've run into another problem with autopilot tests and the OSK, https://bugs.launchpad.net/autopilot/+bug/1476248 | 14:16 |
ubot5 | Ubuntu bug 1476248 in Autopilot "Tests with dialogs fail when using the OSK " [Undecided,New] | 14:16 |
kenvandine | rhuddie, any test i run that uses a dialog hangs forever | 14:16 |
rhuddie | kenvandine, oh, interesting. I'll try and reproduce it | 14:17 |
kenvandine | rhuddie, thx | 14:17 |
kenvandine | feels like we're getting closer to CI passing again :) | 14:17 |
kenvandine | but not there yet | 14:17 |
kenvandine | rhuddie, it hangs forever, and if i kill the test i see this | 14:18 |
kenvandine | autopilot.exceptions.StateNotFoundError: Object not found with name 'Button' and properties {'id': 214}. | 14:18 |
rhuddie | kenvandine, 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 object | 14:19 |
kenvandine | yeah | 14:19 |
kenvandine | text is entered fine | 14:19 |
kenvandine | just never clicks the button, because it doesn't get the object | 14:20 |
rhuddie | kenvandine, thats very strange. I'll look at the test, the fact the text is entered ok suggests this could be some un-related problem | 14:21 |
kenvandine | it happens for every test we have that uses a dialog | 14:21 |
kenvandine | which there are quite a few | 14:22 |
kenvandine | it was never an issue with the fake keyboard | 14:22 |
=== chihchun is now known as chihchun_afk | ||
rhuddie | kenvandine, it looks to me the problem is that the osk is obscuring the connect button | 14:32 |
kenvandine | right | 14:32 |
kenvandine | common issue with dialogs | 14:32 |
rhuddie | kenvandine, so how is the user supposed to press the connect button? | 14:33 |
kenvandine | swipe it away | 14:33 |
rhuddie | so i would say the test needs to do the same thing | 14:33 |
kenvandine | ugh... how do we do that? | 14:34 |
kenvandine | we have a ton of tests with dialogs | 14:34 |
rhuddie | kenvandine, well i think this is why many projects kill maliit-server, so the osk does not get in the way | 14:35 |
kenvandine | i guess | 14:35 |
rhuddie | let me check, i'm sure there is a method to do that | 14:35 |
kenvandine | thx | 14:35 |
=== meetingology` is now known as meetingology | ||
=== JoseeAntonioR is now known as jose | ||
rhuddie | kenvandine, 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#L119 | 14:42 |
kenvandine | thx | 14:43 |
rhuddie | kenvandine, 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 |
rhuddie | kenvandine, 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#L56 | 14:44 |
kenvandine | AttributeError: 'Keyboard' object has no attribute 'dismiss' | 15:06 |
kenvandine | rhuddie, ^^ | 15:06 |
* kenvandine scratches head | 15:06 | |
kenvandine | i guess i need more than ubuntuuitoolkit.get_keyboard() | 15:10 |
kenvandine | rhuddie, do you know of any other projects that do something like that? | 15:11 |
rhuddie | kenvandine, the ubuntu_keyboard tests call dismiss directly on the keyboard object | 15:13 |
rhuddie | kenvandine, let me have a try | 15:13 |
kenvandine | i'm guessing my real problem is getting the keyboard object | 15:14 |
kenvandine | rhuddie, http://paste.ubuntu.com/11909733/ | 15:28 |
kenvandine | whatever Keyboard object i'm getting, must not be the right one | 15:28 |
rhuddie | kenvandine, yes, I only managed to call dismiss this way: http://pastebin.ubuntu.com/11909754/ | 15:31 |
kenvandine | ok | 15:32 |
rhuddie | kenvandine, i think the autopilot method returns a generic keyboard instance, which doesn't have the osk dismiss method | 15:32 |
kenvandine | cool | 15:34 |
kenvandine | that worked | 15:34 |
kenvandine | now i need to add that to dozens of tests :/ | 15:34 |
rhuddie | kenvandine, 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 | ||
balloons | ubuntu-qa, is anyone using adt-run successfully to test on phones atm? I'm seeing issues trying to use it with -p | 19:12 |
nuclearbob_ | balloons: all day every day. I forget what -p is, though | 19:13 |
balloons | nuclearbob_, to send the password. It's a bit odd and confusing why ot's not working | 19:13 |
nuclearbob_ | balloons: oh. can you send me your command line? | 19:13 |
balloons | adt-run --click com.ubuntu.calculator --- ssh -s adb -p 0000 | 19:14 |
balloons | really simple example | 19:14 |
nuclearbob_ | I think maybe you need another -- before the -p, but I'll check mine | 19:14 |
davmor2 | muhahahah all balloons passwords are belong to us | 19:14 |
nuclearbob_ | it's the same as the combination on my luggage! | 19:15 |
balloons | davmor2, you know I was sneaky and changed it? right? right? | 19:15 |
balloons | mind games! | 19:15 |
nuclearbob_ | balloons: yeah, you want another -- before the -p 12345 | 19:15 |
balloons | nuclearbob_, indeed that got me farther | 19:15 |
davmor2 | balloons: I see through your double bluff, and raise you a counter of meh | 19:16 |
balloons | thanks nuclearbob_ ! | 19:16 |
* balloons pops up the pressure and rushes to change his passwords to keep his devices from evil Dave | 19:19 | |
davmor2 | pff please like I could be bother to go where it's hot to tat on a phone when I have 4 here | 19:22 |
balloons | davmor2, lol, you know my phone won't let you connect via usb anyway. It's useless to you! | 19:44 |
davmor2 | balloons: not unless I steal your stubby usb lead at the same time then all your data is mine muhahahahahahahaha | 19:45 |
balloons | noes! not my cable. I had to bribe elopio for that! | 19:45 |
elopio | I 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 | ||
ahayzen | balloons, 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 | ||
balloons | ahayzen, :-) | 23:43 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!