Merge lp://qastaging/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers into lp://qastaging/ubuntu-weather-app

Proposed by Vamshi Balanaga
Status: Needs review
Proposed branch: lp://qastaging/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers
Merge into: lp://qastaging/ubuntu-weather-app
Diff against target: 333 lines (+173/-10)
6 files modified
AUTHORS (+2/-1)
app/components/DayDelegateExtraInfo.qml (+2/-0)
app/ui/settings/DataProviderPage.qml (+7/-1)
debian/changelog (+3/-0)
tests/autopilot/ubuntu_weather_app/__init__.py (+48/-2)
tests/autopilot/ubuntu_weather_app/tests/test_settings_page.py (+111/-6)
To merge this branch: bzr merge lp://qastaging/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers
Reviewer Review Type Date Requested Status
Andrew Hayzen Needs Fixing
Jenkins Bot continuous-integration Needs Fixing
Nicholas Skaggs Pending
Review via email: mp+283749@code.qastaging.launchpad.net

Commit message

Added a test that confirms that the app correctly switches data providers.
Keys need to be present while testing for this to work.

Description of the change

Added a test that confirms that the app correctly switches data providers.
Keys need to be present while testing for this to work.

To post a comment you must log in.
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I won't probably be able to review this until tomorrow. However, you are correct in that you need a TWC key. The weather devs can explain it better than I.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Looks good so far, I've added quite a few comments let me know if any don't make sense.

review: Needs Fixing
216. By Vamshi Balanaga <email address hidden>

made requested changes.

Revision history for this message
Vamshi Balanaga (fazerlicourice) wrote :

I'm unable to revert a file. I did bzr revert CMakeLists.txt.user but it didn't work.

217. By Vamshi Balanaga <email address hidden>

merged from ubuntu weather app and fixed conflicts

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Are we happy with this now?

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Not yet, some issues still stand.

@fazer, try passing -r with the revision to go back to with the bzr revert command, or if that doesn't work I can have a look into other ways to revert it.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :

FAILED: Continuous integration, rev:217
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~fazerlicourice/ubuntu-weather-app/add-test-switch-data-providers/+merge/283749/+edit-commit-message

https://core-apps-jenkins.ubuntu.com/job/run-ap-tests-ci/990/
Executed test runs:
    None: https://core-apps-jenkins.ubuntu.com/job/generic-update-mp/537/console

Click here to trigger a rebuild:
https://core-apps-jenkins.ubuntu.com/job/run-ap-tests-ci/990/rebuild

review: Needs Fixing (continuous-integration)
218. By Vamshi Balanaga <email address hidden>

attempted to revert CMake.txt.user file

219. By Vamshi Balanaga <email address hidden>

merged from master

220. By Vamshi Balanaga <email address hidden>

still attempting to revert the CMake file

Revision history for this message
Vamshi Balanaga (fazerlicourice) wrote :

How do I trigger a re-build of Jenkins? Or is that something only you can do?

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

How is this coming along? Do we feel this test is possible using qmltestrunner instead of autopilot?

221. By Vamshi Balanaga <email address hidden>

merged upstream

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Sorry for the very long review time.

This failed with

Traceback (most recent call last):
  File "/tmp/adt-run.7DdPR6/tree/tests/autopilot/ubuntu_weather_app/tests/test_settings_page.py", line 178, in test_switch_service
    self._check_provider("weatherchannel")
  File "/tmp/adt-run.7DdPR6/tree/tests/autopilot/ubuntu_weather_app/tests/test_settings_page.py", line 77, in _check_provider
    self.data_provider_page.click_back()
AttributeError: 'TestSettingsPage' object has no attribute 'data_provider_page'

Seems you either need todo the click_back() before the self._check_provider(service) or pass the data_provider_page as a parameter, although I think the first solution in this case will be the most extensible in the future.

Also you might want to merge with trunk as your other MP landed, so there could be conflicts.

review: Needs Fixing
Revision history for this message
Vamshi Balanaga (fazerlicourice) wrote :

Alright, will get on it as soon as possible, busy time at school.

Revision history for this message
Vamshi Balanaga (fazerlicourice) wrote :

Is there an irc channel for the weather app? If I need to run some stuff by someone else?

Also, I keep gettign an error that says I can't find any of List items in the settings page. I'm using this command:

self.wait_select_single("StandardListItem", title=listitem_title)

listitem_title is a method parameter.( http://bazaar.launchpad.net/~ubuntu-weather-dev/ubuntu-weather-app/reboot/view/head:/tests/autopilot/ubuntu_weather_app/__init__.py#L286 )

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

It looks like they should be a StandardListItem, check in Autopilot Vis to ensure they aren't another type and check that the test is actually on the correct page when trying to find the listitems.

There is an IRC channel for app development in general for Ubuntu, which is #ubuntu-app-devel, I and many others hang around in there :-) Further channels such as #ubuntu-autopilot #ubuntu-quality and #ubuntu-touch can be useful, for a full list refer to [0].

Let me know if you can't figure out the listitem issue.

0 - https://wiki.ubuntu.com/IRC/ChannelList

Unmerged revisions

221. By Vamshi Balanaga <email address hidden>

merged upstream

220. By Vamshi Balanaga <email address hidden>

still attempting to revert the CMake file

219. By Vamshi Balanaga <email address hidden>

merged from master

218. By Vamshi Balanaga <email address hidden>

attempted to revert CMake.txt.user file

217. By Vamshi Balanaga <email address hidden>

merged from ubuntu weather app and fixed conflicts

216. By Vamshi Balanaga <email address hidden>

made requested changes.

215. By Vamshi Balanaga <email address hidden>

fixed pep8

214. By Vamshi Balanaga <email address hidden>

removed stuff

213. By Vamshi Balanaga <email address hidden>

removed code from seperate branch

212. By Vamshi Balanaga <email address hidden>

Added test to switch between data providers and verify that it executed correctly (LP: #1452489)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: