/srv/irclogs.ubuntu.com/2015/03/23/#ubuntu-quality.txt

=== daz is now known as Guest74681
=== Guest74681 is now known as dazza5000
dazza5000anyone able to help me troubleshoot a calendar autopilot test?01:30
dazza5000the test fails because it thinks the day on my computer is yesterday01:30
dazza5000but the calendar app selects the correct day for today01:31
dazza5000and when I run the commands in python outside of the test they give the correct date01:31
dazza5000this test01:39
dazza5000autopilot3 run calendar_app.tests.test_monthview.TestMonthView.test_monthview_go_to_today_prev_year01:39
dazza5000gives this01:39
dazza5000testtools.matchers._impl.MismatchError: After 10.0 seconds test failed: 22 != 2101:39
dazza5000datetime.now() gives 2015-03-22 20:40:24.68619901:40
dazza5000but the test is getting 21 as the result somehow01:41
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
elopioI had to join using the webchat.16:08
elopiofor some reason, I can't connect to freenode with quassel.16:08
elopioif I don't reply quickly, it's because I have no notifications.16:09
=== Guest46886 is now known as dazza5000
paulliuelopio: hi.. So I'm wondering why fake-apps doesn't start on the AP test for shell-rotation.16:16
paulliuelopio: and why we use fixtures to start unity8? Can we use ApplicationLifeCycleTestCase with environments set for the fake-sensor?16:18
paulliuelopio: Currently we copy the code from ApplicationLifeCycleTestCase, but it doesn't work as we expect.16:19
elopiohello paulliu. brendand, you are taking a look at the fake apps, right?16:26
brendandelopio, i am16:28
brendandelopio, right now unity8 doesn't start for some reason16:28
elopiobrendand: that's nice, because you and paulliu have more working hours together (I think). It would be great if you two pair to investigate.16:29
elopiopaulliu: we prefer fixtures over inheritance, because when you inherit test cases things get messy.16:30
paulliubrendand: why it doesn't start?16:30
elopiocomposition is clearer.16:30
paulliuelopio: ok..16:30
paulliubrendand: I mean, why unity8 doesn't start?16:30
elopiopaulliu: if there's something useful from a test case setup, you can wrap that in a fixture and share it in both tests.16:31
brendandpaulliu, i don't know yet. it seems to work ok in other tests16:31
paulliuelopio: ok.. just curious why we don't re-use the code.16:31
elopiopaulliu: I wonder, do your life cycle tests work? is it only on the rotation tests that you get errors?16:32
paulliubrendand: hmm. you should adb reboot and it might work again.16:32
paulliuelopio: yes. Life cycle tests works find. It did start the apps.16:32
paulliuelopio: So I'm wondering if we make some weirdness by start unity8 in different ways.16:33
paulliuelopio: Just as brendand said, the unity8 might stop launching after you run the test several times. but adb reboot fixes it.16:33
paulliuelopio: also, the launched unity8 acts weird. If I touch the screen anywhere, it pops the on-screen-keyboard.16:34
paulliuelopio: In other tests, I'm able to interact with unity8 by touching the screen.16:35
elopiopaulliu: brendand: yes, take a look at the launch_unity in the base UnityTestCase. That's different from the LaunchUnityWithSensors fixture.16:36
elopioideally, we should turn the launch_unity in UnityTestCase into a fixture LaunchUnity. And use that fixture from LaunchUnityWithSensors.16:37
elopiopaulliu: the thing with the osk is weird. I can't imagine what might be causing it, but it needs to be fixed too. Unity should be launched as close as possible to a simple initctl start unity8.16:40
elopiobrendand: let me know if you need an extra hand. For now I'll leave you two to it and take a look at the errors I introduced in the new autopilot version :(16:42
dazza5000does anyone know how to get an ubuntu phone in the US?16:56
tewarddazza5000: i don't think you can - not offered yet last I heard16:58
dazza5000how about unofficially though?16:58
elopiodazza5000: there are some places still selling nexus 4.16:59
dazza5000where?16:59
elopiohttp://www.amazon.com/LG-Google-Unlocked-International-Version/dp/B00D94OAPU/ref=sr_1_2?s=wireless&ie=UTF8&qid=1427129945&sr=1-2&keywords=nexus+416:59
dazza5000are most people using the 4 to test with?17:00
elopiodazza5000: we test with it and with the bq phone. I'm not sure which one has more testers.17:01
brendandelopio, the rotation test seems to use process_helpers.restart_unity and other tests use launch_unity from the base class17:09
brendandelopio, the latter does something with the mir socket, which might make a difference17:10
dobeysigh17:19
elfygood afternoon quality channel peoples17:20
elopiojibel: the phonedations team will work on nitz to get the clock hour right from your phone carrier. That sounds like a good addition at the end of the wizard test, check that the clock is right.18:01
elopiojibel: what should I do to propose the addition?18:01
dazza5000good afternoon elfy18:30
balloonsdazza50002, howdy19:30
elfyballoons: !!!19:30
elfy:)19:30
balloonshey elfy! final beta week, you excitied?19:30
elfywell ...19:31
elfyit might be a milestone for you - but down here in the mines - we've already done some :p19:31
dazza50002hi all19:31
balloonselfy, I added you to the mail since you spoke up :-)19:31
dazza50002Need to figure out how to login using yaaic19:31
elfymail?19:32
elopiobarry: meeting again.19:32
elfyballoons: oh - see it now :p19:32
elfyI tend to only post that stuff on xub-dev list specifically for our peeps19:33
elfyballoons: but ... http://iso.qa.ubuntu.com/qatracker/milestones/336/builds for the general page :)19:33
balloonsmmm.. indeed19:34
Letozaf_balloons, hi20:06
balloonsLetozaf_, hello hello20:10
Letozaf_balloons, howzit ?20:10
balloonsexcellent, yourself?20:10
Letozaf_balloons, fine, thanks :)20:10
Letozaf_balloons, I have an issue : http://91.189.93.70:8080/job/generic-mediumtests-utopic/2393/testReport/junit/calendar_app.tests.test_dayview/TestDayView/test_default_view/20:10
Letozaf_balloons, cannot find how to solve it20:10
Letozaf_balloons, it's about week day20:11
Letozaf_balloons, on calendar app, can you help or should I ask someone else?20:11
dobeyis there a way in autopilot to do a "wait until object is available, *then* tap it" sort of operation?20:13
dobeybecause adding time.sleep() everywhere kind of sucks20:14
veebersdobey: you can use wait_select_single20:14
veebersdobey: fyi: http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/api/autopilot.introspection.html#autopilot.introspection.ProxyBase.wait_select_single20:15
balloonsLetozaf_, looking20:19
Letozaf_balloons, thanks20:20
dobeyveebers: hmm, trying that20:20
balloonsLetozaf_, dare I ask, does this work locally?20:27
Letozaf_balloons, no :( but this happens only on Sundays today the test passes :)20:29
balloonsLetozaf_, right that was my first thought20:29
Letozaf_balloons, suppose it has to do with the firs day of the week stuff20:29
balloonsit's a locale thing20:29
balloonsyes I agree20:29
balloonswhich we should have accounted for already20:29
balloonsperhaps check the logic in the test? Or it's a bug in the app itself.20:30
Letozaf_balloons, to me looks like an app bug20:30
balloonsThis is definitely week 12, so week 11 would be for the week to start on monday20:30
Letozaf_balloons, If yesterday I ran now.strftime("%U") in python shell I got 1220:31
Letozaf_balloons, In Italy the first day of the week is sunday20:33
dobeyToday is Boomtime, the 9th day of Discord in the YOLD 318120:34
balloonsLetozaf_, right. I would file a bug against calendar app and see what mihir says20:36
Letozaf_balloons, ok thanks I will20:36
dobeyLetozaf_: i'm guessing the locale is not set correctly in the tests perhaps?20:36
Letozaf_dobey, no Calendar app should display 12 as week number instead it displays 1120:37
Letozaf_dobey, the test is right, it's Calendar app that in Italy has got the wrong week number20:38
balloonsit's the ultimate revenge, blame the app and be correct!20:38
elfyLOL20:38
dobeyif the week start is on monday, and it's the sunday prior, the 11 is correct, in that locale, no?20:39
Letozaf_dobey, in Italy the first week day is Sunday :)20:39
dobeyin most of the world it is20:40
Letozaf_dobey, :)20:40
dobeyso, if i have a dialog in qml, and in the ap test i'm doing dialog.wait_until_destroyed() for that object, and then take a screen shot after it's been destroyed, shouldn't the screen shot *not* have that dialog in it?20:42
veebersdoeby, assuming you're waiting for the right thing to be destroyed it shouldn't be in the screenshot20:48
veebersdobey: did wait_select_single help you out btw?20:48
veebersdobey: also, feel free to ask these autopilot questions in #ubuntu-autopilot too :-)20:49
dobeyyes i think so20:49
dobeytoo many channels already :)20:50

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