ubuntu-push

ubuntu-push

Test plan for component
Ubuntu Push Notifications client-side daemon
Component checklist

Is the merge from lp:ubuntu-push/automatic?

Trunk URL

lp:ubuntu-push

Ubuntu Package URL (LP)

https://launchpad.net/ubuntu/+source/ubuntu-push

Dependents

None.

Test Plan 1

  • Run the autopilot tests.

Test Plan 2

  • Install packages to be tested
  • Setup a ubuntu one account
  • Install the hello app from the store
  • Start hello app
  • Register with random nickname
  • Slide from the bottom, enable different visual notifications
  • Send message to yourself -> check that it is received

  • Send message from one device/emulator to another, or send to yourself and switch quickly to another app (if app is focused, notifications are not shown)
  • Lock screen, send notification to device with locked screen: sound/vibration should work, popup should not.
  • Regression test for bug #1507510: Make sure Hello App is focused, lock phone and immediately send a notification. sound/vibration and popup should work. Alternatively, you can send a notification to yourself, but you have to lock the phone immediately after sending.

  • From the bottom sliding panel: set the counter to another value, and click the button to set it immediately. Confirm that it changes accordingly.
  • Send a persistent notification, then clear it using the clear persistent notifications button.

Things that are known not to work:

  • Messaging menu only works 2nd time you try
  • Sound and vibrations fail on emulator

(i) If you cannot login using the hello app, please ping ralsina, who is running the hello push server.

Test Plan 3

  • copy /etc/xdg/ubuntu-push-client/config.json to ~/.config/ubuntu-push-client/config.json and change "log_level": "debug"
  • initctl restart ubuntu-push-client
  • turn on flight-mode, the log at .cache/upstart/ubuntu-push-client.log should have at least:
    • … DEBUG control: connected:false … DEBUG control: prevDontPoll:false dontPoll:true wakeupReq:<true/false> holdsWakeLock:<true/false>

  • turn on wifi (flight-mode still on), log should have:
    • … DEBUG control: connected:true … poller.go:226: DEBUG control: prevDontPoll:true dontPoll:false wakeupReq:<true/false> holdsWakeLock:<true/false>

  • turn off cellular data, and forget any close by Wi-Fi networks, log should have:
    • … DEBUG control: connected:false … DEBUG control: prevDontPoll:false dontPoll:true wakeupReq:<true/false> holdsWakeLock:<true/false>

The values for wakeupReq and holdsWakeLock are inconsequential for this particular test.

Process/Merges/TestPlan/ubuntu-push (last edited 2016-10-04 12:50:18 by jonas-drange)