=== daz is now known as Guest74681 === Guest74681 is now known as dazza5000 [01:30] anyone able to help me troubleshoot a calendar autopilot test? [01:30] the test fails because it thinks the day on my computer is yesterday [01:31] but the calendar app selects the correct day for today [01:31] and when I run the commands in python outside of the test they give the correct date [01:39] this test [01:39] autopilot3 run calendar_app.tests.test_monthview.TestMonthView.test_monthview_go_to_today_prev_year [01:39] gives this [01:39] testtools.matchers._impl.MismatchError: After 10.0 seconds test failed: 22 != 21 [01:40] datetime.now() gives 2015-03-22 20:40:24.686199 [01:41] but the test is getting 21 as the result somehow === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [16:08] I had to join using the webchat. [16:08] for some reason, I can't connect to freenode with quassel. [16:09] if I don't reply quickly, it's because I have no notifications. === Guest46886 is now known as dazza5000 [16:16] elopio: hi.. So I'm wondering why fake-apps doesn't start on the AP test for shell-rotation. [16:18] elopio: and why we use fixtures to start unity8? Can we use ApplicationLifeCycleTestCase with environments set for the fake-sensor? [16:19] elopio: Currently we copy the code from ApplicationLifeCycleTestCase, but it doesn't work as we expect. [16:26] hello paulliu. brendand, you are taking a look at the fake apps, right? [16:28] elopio, i am [16:28] elopio, right now unity8 doesn't start for some reason [16:29] brendand: 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:30] paulliu: we prefer fixtures over inheritance, because when you inherit test cases things get messy. [16:30] brendand: why it doesn't start? [16:30] composition is clearer. [16:30] elopio: ok.. [16:30] brendand: I mean, why unity8 doesn't start? [16:31] paulliu: 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] paulliu, i don't know yet. it seems to work ok in other tests [16:31] elopio: ok.. just curious why we don't re-use the code. [16:32] paulliu: I wonder, do your life cycle tests work? is it only on the rotation tests that you get errors? [16:32] brendand: hmm. you should adb reboot and it might work again. [16:32] elopio: yes. Life cycle tests works find. It did start the apps. [16:33] elopio: So I'm wondering if we make some weirdness by start unity8 in different ways. [16:33] elopio: Just as brendand said, the unity8 might stop launching after you run the test several times. but adb reboot fixes it. [16:34] elopio: also, the launched unity8 acts weird. If I touch the screen anywhere, it pops the on-screen-keyboard. [16:35] elopio: In other tests, I'm able to interact with unity8 by touching the screen. [16:36] paulliu: brendand: yes, take a look at the launch_unity in the base UnityTestCase. That's different from the LaunchUnityWithSensors fixture. [16:37] ideally, we should turn the launch_unity in UnityTestCase into a fixture LaunchUnity. And use that fixture from LaunchUnityWithSensors. [16:40] paulliu: 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:42] brendand: 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:56] does anyone know how to get an ubuntu phone in the US? [16:58] dazza5000: i don't think you can - not offered yet last I heard [16:58] how about unofficially though? [16:59] dazza5000: there are some places still selling nexus 4. [16:59] where? [16:59] http://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+4 [17:00] are most people using the 4 to test with? [17:01] dazza5000: we test with it and with the bq phone. I'm not sure which one has more testers. [17:09] elopio, the rotation test seems to use process_helpers.restart_unity and other tests use launch_unity from the base class [17:10] elopio, the latter does something with the mir socket, which might make a difference [17:19] sigh [17:20] good afternoon quality channel peoples [18:01] jibel: 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] jibel: what should I do to propose the addition? [18:30] good afternoon elfy [19:30] dazza50002, howdy [19:30] balloons: !!! [19:30] :) [19:30] hey elfy! final beta week, you excitied? [19:31] well ... [19:31] it might be a milestone for you - but down here in the mines - we've already done some :p [19:31] hi all [19:31] elfy, I added you to the mail since you spoke up :-) [19:31] Need to figure out how to login using yaaic [19:32] mail? [19:32] barry: meeting again. [19:32] balloons: oh - see it now :p [19:33] I tend to only post that stuff on xub-dev list specifically for our peeps [19:33] balloons: but ... http://iso.qa.ubuntu.com/qatracker/milestones/336/builds for the general page :) [19:34] mmm.. indeed [20:06] balloons, hi [20:10] Letozaf_, hello hello [20:10] balloons, howzit ? [20:10] excellent, yourself? [20:10] balloons, fine, thanks :) [20:10] 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] balloons, cannot find how to solve it [20:11] balloons, it's about week day [20:11] balloons, on calendar app, can you help or should I ask someone else? [20:13] is there a way in autopilot to do a "wait until object is available, *then* tap it" sort of operation? [20:14] because adding time.sleep() everywhere kind of sucks [20:14] dobey: you can use wait_select_single [20:15] dobey: fyi: http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/api/autopilot.introspection.html#autopilot.introspection.ProxyBase.wait_select_single [20:19] Letozaf_, looking [20:20] balloons, thanks [20:20] veebers: hmm, trying that [20:27] Letozaf_, dare I ask, does this work locally? [20:29] balloons, no :( but this happens only on Sundays today the test passes :) [20:29] Letozaf_, right that was my first thought [20:29] balloons, suppose it has to do with the firs day of the week stuff [20:29] it's a locale thing [20:29] yes I agree [20:29] which we should have accounted for already [20:30] perhaps check the logic in the test? Or it's a bug in the app itself. [20:30] balloons, to me looks like an app bug [20:30] This is definitely week 12, so week 11 would be for the week to start on monday [20:31] balloons, If yesterday I ran now.strftime("%U") in python shell I got 12 [20:33] balloons, In Italy the first day of the week is sunday [20:34] Today is Boomtime, the 9th day of Discord in the YOLD 3181 [20:36] Letozaf_, right. I would file a bug against calendar app and see what mihir says [20:36] balloons, ok thanks I will [20:36] Letozaf_: i'm guessing the locale is not set correctly in the tests perhaps? [20:37] dobey, no Calendar app should display 12 as week number instead it displays 11 [20:38] dobey, the test is right, it's Calendar app that in Italy has got the wrong week number [20:38] it's the ultimate revenge, blame the app and be correct! [20:38] LOL [20:39] if the week start is on monday, and it's the sunday prior, the 11 is correct, in that locale, no? [20:39] dobey, in Italy the first week day is Sunday :) [20:40] in most of the world it is [20:40] dobey, :) [20:42] so, 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:48] doeby, assuming you're waiting for the right thing to be destroyed it shouldn't be in the screenshot [20:48] dobey: did wait_select_single help you out btw? [20:49] dobey: also, feel free to ask these autopilot questions in #ubuntu-autopilot too :-) [20:49] yes i think so [20:50] too many channels already :)