[00:07] ahayzen, I'm working on this bug: https://bugs.launchpad.net/ubuntu-weather-app/+bug/1452489 . I encountered something called an OptionSelector in the old tests. what exactly would that be in the reboot [00:07] Launchpad bug 1452489 in Ubuntu Weather App "[reboot] Autopilot Testcase Needed: Switch data providers" [High,Confirmed] [00:08] fazer, http://bazaar.launchpad.net/~ubuntu-weather-dev/ubuntu-weather-app/reboot/view/head:/app/ui/settings/DataProviderPage.qml#L32 [00:08] ExpandableListItem [00:08] ish [00:09] fazer, and that particular one maybe hard to test without the API keys [00:09] ok. cool. [00:10] ahayzen I'll try it without, if it doesn't work then I'll get the keys by following the steps. Shouldn't be too hard. [00:10] ok :-) [00:13] ahayzen, another question, why is the old tests checking to see if the precipitation units selector appears? What does that have to do with the data provider? [00:14] fazer, different providers give different info, i think before TWC only gave precipitation so it needed to be checked that that appeared [00:15] oh ok. Does that still need to be checked? Or do both providers give precipitation now? [00:15] good question :-) [00:15] :D [00:17] fazer, with TWC i get a few extra ones compared to OWM, "Chance of rain" and "UV Index" appear [00:18] ahayzen, So, I have to navigate to the precipitations page and check that those two options appear? Or is it unnecessary? [00:18] fazer, probably best, if you check the change units test, it does a similar thing [00:22] ahayzen, I don't understand. which part? [00:22] fazer, in the new tests, after changing the unit it goes back to the home page to check that the unit has actually changed [00:23] so you'll do similar to that, but check that the extra label appear [00:23] ok. thanks. [16:27] shoutout to all my other DC area people in the blizzard right now [17:40] ahayzen, need some help please. I have the same command in two different places with the only thing different being the object. But, it doesn't work the 2nd time. My branch is here: https://code.launchpad.net/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers [17:41] fazer, which bit doesn't work ? [17:43] ahayzen: http://bazaar.launchpad.net/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers/view/head:/tests/autopilot/ubuntu_weather_app/tests/test_settings_page.py#L53 [17:44] fazer, hmmm adding that there is going to make the other tests fail as well :-/ [17:44] why? [17:45] because the other tests assume that it starts on the unit page, you would then be changing the start point to the provider page :-/ [17:46] ok, let me try putting that before the unit page thing, but I don't think that'll change the fact that that line is not working [17:48] fazer, i would just put that into your test [17:48] ahayzen, I switched the order, so it goes to the provider page first but like I said, the get_data_provider_page isn't working [17:48] as the only reason stuff should really be going into the setpUp is if it is being used multiple times [17:49] it is really incorrect that the units stuff is there tbh, that should be in its own test as well [17:49] ok. but that still won't solve my problem. [17:50] fazer, can you see the provider page becoming visible after the click? [17:50] yes [17:52] it always fails when trying to get the page. [17:52] fazer, try putting visible=True into the query as well [17:53] you're referring to the call in settings page helper right? [17:53] yup where you get the page [17:54] didn't work. [17:55] what is the error? [17:56] state not found: object not found with name'DataProviderPAge' and properties visible: true [17:57] fazer, ah i know why :-) [17:58] care to share, s'il vous plait? [17:58] fazer, add this block of code to the DataProviderPage.qml http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/ui/Albums.qml#L54 [17:58] Line54-57 [17:59] is this necessary in like every single app? [17:59] (replacing "Albums" with "DataProviderPage" and "MusicPage" with "Page" [17:59] I remember doing this for the music app also [17:59] if you read the bug you'll see why, it is an issue with autopilot [17:59] bug 1341671 [18:00] bug 1341671 in Autopilot Qt Support "Versioned QML classes are not recognized by their public type name" [High,Confirmed] https://launchpad.net/bugs/1341671 [18:00] yup, I see it now. [18:03] ahayzen, ok, thanks. It worked. how can I get a key for TWC? [18:03] I got one for OWM [18:04] fazer, not sure if you can get a personal one, and it has been bought by another company so sortof in a transition [18:05] oh.... ok. [18:11] ahayzen, so this is pretty much impossible to test right now...? [18:11] fazer, unless you get a key :-) [18:11] but I can't.. [18:16] ahayzen, Is the weather underground the same as TWC? [18:17] fazer, don't think so was trying to work that out myself [18:17] fazer, the domain that we query is http://wxdata.weather.com/wxdata/ [18:20] ahaayzen, at the bottom og the homepage for the weather underground. There's a copyright by TWC. [18:20] Could it be the same API? [18:20] maybe, but they have a new API making the old one deprecated, so i don't know if it will work [18:24] you don't know if the weather underground api key will work? Or are you talking about something else [18:25] ahayzen ^ [18:27] fazer, pm'd you some info :-) [18:28] yup