Merge lp:~nskaggs/ubuntu-weather-app/manual-tests into lp:ubuntu-weather-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 189
Merged at revision: 192
Proposed branch: lp:~nskaggs/ubuntu-weather-app/manual-tests
Merge into: lp:ubuntu-weather-app
Diff against target: 323 lines (+271/-0)
9 files modified
tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-firstrun.pxu (+65/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-forecasts.pxu (+62/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-locations.pxu (+79/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-settings.pxu (+40/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/manage.py (+21/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-firstrun.whitelist (+1/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-forecasts.whitelist (+1/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-locations.whitelist (+1/-0)
tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-settings.whitelist (+1/-0)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-weather-app/manual-tests
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Andrew Hayzen Approve
Victor Thompson Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Pending
Nicholas Skaggs Pending
Review via email: mp+280775@code.launchpad.net

This proposal supersedes a proposal from 2015-09-29.

Commit message

Add manual tests

Description of the change

Adding the checkbox tests that shipped long ago with Pilot. This includes the provider and is a nice drop-in solution. I took the comments from the first merge as well.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote : Posted in a previous version of this proposal

These are fine, but will need a provider and folder layout to make them plug and play. I'll bundle them and try them before providing a diff.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote : Posted in a previous version of this proposal

These work. Some comments

Avoid using dashes for the file name
s/first-run/firstrun/

Prefix the tests file names with 'weather-'

You are missing a colon
s/_description/_description:/g

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote : Posted in a previous version of this proposal

See 1 inline comment.

Also:
1. Please add an entry to the changelog, we're trying to maintain this file as we make fixes/updates.
2. There seem to be a lot of indentation issues. Is that problematic at all? Will it show up in an odd fashion to those running through the tests?

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

Sorry for overlaying your old MP popey; it was very helpful.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

lgtm! Thanks balloons! :)

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

LGTM! lets land it :-)

review: Approve
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'tests/manual'
=== added directory 'tests/manual/2015.com.ubuntu.weather:weather-tests'
=== added directory 'tests/manual/2015.com.ubuntu.weather:weather-tests/jobs'
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-firstrun.pxu'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-firstrun.pxu 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-firstrun.pxu 2015-12-16 21:52:36 +0000
@@ -0,0 +1,65 @@
1plugin: resource
2id: weather-firstrun/system-image
3_summary: [Automated] gather system information
4command: system-image-cli -i
5_description:
6 Gather system info
7
8id: weather-firstrun/check-icon
9plugin: manual
10_summary: Test to check correct icon is used
11estimated_duration: 600
12_description:
13 Test to check correct icon is used
14 1. Install weather reboot
15 Weather icon with a cloud and 12-spiked sun should appear in the dash
16
17id: weather-firstrun/location-check
18plugin: manual
19_summary: Test to confirm location is requested
20estimated_duration: 600
21_description:
22 Test to confirm location is requested
23 1. Launch weather reboot
24 Expect to see 'location acceptance screen'
25
26id: weather-firstrun/location-deny
27plugin: manual
28_summary: Test to confirm effect of denying location access
29estimated_duration: 600
30_description:
31 Test to confirm effect of denying location access
32 1. Launch weather reboot
33 Expect to see 'location acceptance screen'
34 2. Choose 'deny'
35 Expect to see the "Cannot determine your location", "Manually add" screen
36
37id: weather-firstrun/location-allow
38plugin: manual
39_summary: Test to confirm effect of allowing location access
40estimated_duration: 600
41_description:
42 Test to confirm effect of allowing location access
43 1. Close weather app (if already open)
44 2. Launch System Settings
45 3. Choose "Security & Privacy"
46 4. Choose "Location Access"
47 5. Switch location access for weather app on
48 This reverses the location denial from the previous test
49 6. Launch weather reboot
50 Expect to _not_ see 'location acceptance screen'
51 7. Wait for a short while
52 Expect to see weather for your current location
53
54id: weather-firstrun/pull-refresh
55plugin: manual
56_summary: Test to confirm pull to refresh works
57estimated_duration: 600
58_description:
59 Test to confirm pull to refresh works
60 1. Launch weather reboot
61 Expect to see weather details for current location
62 2. Pull down the screen to refresh
63 Expect to see 'Pull down to refresh' then 'Release to refresh'
64 3. Let go of the screen
65 Expect view to refresh - although you may not see any difference if the data recently refreshed
066
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-forecasts.pxu'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-forecasts.pxu 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-forecasts.pxu 2015-12-16 21:52:36 +0000
@@ -0,0 +1,62 @@
1plugin: resource
2id: weather-forecasts/system-image
3_summary: [Automated] gather system information
4command: system-image-cli -i
5_description:
6 Gather system info
7
8id: weather-forecasts/test-daily-forecast
9plugin: manual
10_summary: Test to future day forecast is shown
11estimated_duration: 600
12_description:
13 Test to future day forecast is shown
14 1. Launch weather app
15 Expect to see weather for your current location
16 2. Scroll up
17 Expect to see weather for at least the following 4 days
18
19id: weather-forecasts/test-hourly-forecast-detail
20plugin: manual
21_summary: Test to ensure hourly forecast detail is shown
22estimated_duration: 600
23_description:
24 Test to ensure hourly forecast detail is shown
25 1. Launch weather app
26 Expect to see weather for your current location
27 2. Tap large current weather icon (cloud/sun/rain) in the top half of the display
28 Expect to see weather for the following hours
29 3. Swipe right and left
30 Expect to see further details about the weather on coming hours
31 4. Tap in that area again
32 Expect the previously shown current weather icon to be displayed
33
34id: weather-forecasts/test-daily-forecast-detail
35plugin: manual
36_summary: Test to ensure daily forecast detail is shown
37estimated_duration: 600
38_description:
39 Test to ensure daily forecast detail is shown
40 1. Launch weather app
41 Expect to see weather for your current location
42 2. Scroll up
43 Expect to see weather for at least the following 4 days
44 3. Tap any day in the future
45 Expect to see further details about the weather on that day
46 4. Tap any other day
47 Expect the previously tapped day to shrink, and the newly tapped day to expand
48 5. Tap the same day again
49 Expect the tapped day detail to shrink
50
51id: weather-forecasts/test-final-day
52plugin: manual
53_summary: Test to ensure UI expands properly
54estimated_duration: 600
55_description:
56 Test to ensure UI expands properly
57 1. Launch weather app
58 Expect to see weather for your current location
59 2. Scroll up to the very bottom
60 Expect to see weather for at least the following 4 days
61 3. Tap the final day in the list
62 Expect it to expand, and still be on screen (i.e. not expanded off-screen)
063
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-locations.pxu'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-locations.pxu 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-locations.pxu 2015-12-16 21:52:36 +0000
@@ -0,0 +1,79 @@
1plugin: resource
2id: weather-locations/system-image
3_summary: [Automated] gather system information
4command: system-image-cli -i
5_description:
6 Gather system info
7
8id: weather-locations/show-list-of-locations
9plugin: manual
10_summary: Test to see a list of locations
11estimated_duration: 600
12_description:
13 Test to see a list of locations
14 1. Launch weather app
15 Expect to see weather for your current location
16 2. Swipe up from the bottom of the screen
17 Expect to see a list of locations (only one location on first run, or no locations if gps access denied)
18
19id: weather-locations/add-pre-defined-location
20plugin: manual
21_summary: Test to add a location from a pre-defined list
22estimated_duration: 600
23_description:
24 Test to add a location from a pre-defined list
25 1. Launch weather app
26 Expect to see weather for your current location
27 2. Swipe up from the bottom of the screen
28 Expect to see a list of locations (only one location on first run, or no locations if gps access denied)
29 3. Press "+" icon
30 Expect to see a pre-defined list of city names
31 4. Tap any city on the list
32 Expect to see it added to the list of locations
33 5. Continue to add more cities
34 There is a hard wired limit of 7 locations currently
35
36id: weather-locations/switch-location-by-swipe
37plugin: manual
38_summary: Test to switch locations by swiping
39estimated_duration: 600
40_description:
41 Test to switch locations by swiping
42 1. Launch weather app
43 Expect to see weather for your current location
44 2. Swipe left
45 Expect to switch location
46 3. Swipe right
47 Expect to switch back to previous location
48
49id: weather-locations/switch-location-by-edge
50plugin: manual
51_summary: Test to switch locations using bottom edge
52estimated_duration: 600
53_description:
54 Test to switch locations using bottom edge
55 1. Launch weather app
56 Expect to see weather for your current location
57 2. Swipe up from the bottom of the screen
58 Expect to see a list of locations
59 3. Tap a location
60 Expect to be returned to the main screen, showing weather for selected location
61
62id: weather-locations/delete-location
63plugin: manual
64_summary: Test to remove locations
65estimated_duration: 600
66_description:
67 Test to remove locations
68 1. Launch weather app
69 Expect to see weather for your current location
70 2. Swipe up from the bottom of the screen
71 Expect to see a list of locations
72 3. Swipe a location to the right
73 Expect to see a delete option
74 4. Swipe location left again
75 Expect location NOT to be deleted
76 5. Swipe a location to the right
77 Expect to see a delete option
78 6. Tap delete (trash) button
79 Expect location to be deleted
080
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-settings.pxu'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-settings.pxu 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/jobs/weather-settings.pxu 2015-12-16 21:52:36 +0000
@@ -0,0 +1,40 @@
1plugin: resource
2id: weather-settings/system-image
3_summary: [Automated] gather system information
4command: system-image-cli -i
5_description:
6 Gather system info
7
8id: weather-settings/change-units-temp
9plugin: manual
10_summary: Test to change temperature units
11estimated_duration: 600
12_description:
13 Test to change temperature units
14 1. Launch weather app
15 Expect to see weather for your current location
16 2. Tap settings cog in top right corner
17 Expect to see a list of settings
18 3. Tap "Units"
19 Expect to see 'Units' screen
20 4. Tap "Temperature"
21 Expect to see options unfolded
22 5. Switch to different temperature units and go back to main screen
23 Expect units shown to be different
24
25id: weather-settings/change-units-speed
26plugin: manual
27_summary: Test to change wind speed units
28estimated_duration: 600
29_description:
30 Test to change wind speed units
31 1. Launch weather app
32 Expect to see weather for your current location
33 2. Tap settings cog in top right corner
34 Expect to see a list of settings
35 3. Tap "Units"
36 Expect to see 'Units' screen
37 4. Tap "Wind Speed"
38 Expect to see options unfolded
39 5. Switch to different wind speed units and go back to main screen
40 Expect wind speed units shown to be different
041
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/manage.py'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/manage.py 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/manage.py 2015-12-16 21:52:36 +0000
@@ -0,0 +1,21 @@
1#!/usr/bin/env python3
2from plainbox.provider_manager import setup, N_
3
4# You can inject other stuff here but please don't go overboard.
5#
6# In particular, if you need comprehensive compilation support to get
7# your bin/ populated then please try to discuss that with us in the
8# upstream project IRC channel #checkbox on irc.freenode.net.
9
10# NOTE: one thing that you could do here, that makes a lot of sense,
11# is to compute version somehow. This may vary depending on the
12# context of your provider. Future version of PlainBox will offer git,
13# bzr and mercurial integration using the versiontools library
14# (optional)
15
16setup(
17 name='2015.com.ubuntu.weather:weather-tests',
18 version="1.0",
19 description=N_("The 2015.com.ubuntu.weather:weather-tests provider"),
20 gettext_domain="2015_com_ubuntu_weather_weather-tests",
21)
022
=== added directory 'tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists'
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-firstrun.whitelist'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-firstrun.whitelist 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-firstrun.whitelist 2015-12-16 21:52:36 +0000
@@ -0,0 +1,1 @@
1weather-firstrun/.*
0\ No newline at end of file2\ No newline at end of file
13
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-forecasts.whitelist'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-forecasts.whitelist 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-forecasts.whitelist 2015-12-16 21:52:36 +0000
@@ -0,0 +1,1 @@
1weather-forecasts/.*
0\ No newline at end of file2\ No newline at end of file
13
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-locations.whitelist'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-locations.whitelist 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-locations.whitelist 2015-12-16 21:52:36 +0000
@@ -0,0 +1,1 @@
1weather-locations/.*
0\ No newline at end of file2\ No newline at end of file
13
=== added file 'tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-settings.whitelist'
--- tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-settings.whitelist 1970-01-01 00:00:00 +0000
+++ tests/manual/2015.com.ubuntu.weather:weather-tests/whitelists/weather-settings.whitelist 2015-12-16 21:52:36 +0000
@@ -0,0 +1,1 @@
1weather-settings/.*
0\ No newline at end of file2\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: