Autopilot Testcase needed: Check current time

Bug #1188808 reported by Nekhelesh Ramananthan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Medium
Nekhelesh Ramananthan

Bug Description

Autopilot test needed to verify the current local time of the clock.

Howard Chan (smartboyhw)
Changed in ubuntu-clock-app:
status: Triaged → In Progress
assignee: nobody → Howard Chan (smartboyhw)
Changed in ubuntu-clock-app:
milestone: coreapps-13.10-month-3 → coreapps-13.10-month-4
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Howard, I'm removing you as I know your away this month, and not able to complete this work while your gone. If it's still open when you get back feel free to re-assign yourself :-)

Changed in ubuntu-clock-app:
assignee: Howard Chan (smartboyhw) → nobody
status: In Progress → Confirmed
Revision history for this message
Saurabh Sikka (drsaurabhsikka) wrote :

can we do this?

from datetime import datetime
.
.
.

.
self.assertThat(label.text, Eventually(Equals('datetime.now().time()')))

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

Are we wanting to test that we apply the proper locale settings (aka the offset from UTC, or something else?)

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

The autopilot test is to check if the clock app shows the system time correctly. However while trying to implement the test I ran into a blocker. The problem is that we are unable to retrieve the locale setting used by the clock app for the time. So it could be that the clock app shows time in 24 hrs while the autopilot test expects them in Am/Pm format. This uncertainty is the blocker. I tried temporarily setting a specific format in the clock app so that we could test against it using autopilot, however I was told this is not the right way to go by Renato. Hence this bug has been a TODO since then.

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

Just updating status to say this is still blocked, and we need something that sets the timeformat. Follow-up with mailing list.

Changed in ubuntu-clock-app:
milestone: backlog → 1.8
assignee: nobody → Nekhelesh Ramananthan (nik90)
status: Confirmed → Fix Committed
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.