Merge lp:~allanlesage/ueqa-code-proposals/indicator-datetime into lp:ueqa-code-proposals

Proposed by Allan LeSage
Status: Merged
Approved by: Christopher Lee
Approved revision: 16
Merged at revision: 16
Proposed branch: lp:~allanlesage/ueqa-code-proposals/indicator-datetime
Merge into: lp:ueqa-code-proposals
Diff against target: 90 lines (+22/-33)
2 files modified
index.rst (+1/-0)
proposals/indicator-datetime/index.rst (+21/-33)
To merge this branch: bzr merge lp:~allanlesage/ueqa-code-proposals/indicator-datetime
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Christopher Lee (community) Approve
Review via email: mp+242983@code.launchpad.net

Commit message

Adapt to style review.

Description of the change

Some style revisions per jfunk/thomi.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Lee (veebers) wrote :

Needs TOC otherwise looks good

review: Needs Fixing
15. By Allan LeSage

Add TOC.

16. By Allan LeSage

Merge trunk, resolving conflict.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Christopher Lee (veebers) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'index.rst'
2--- index.rst 2014-11-26 20:54:14 +0000
3+++ index.rst 2014-11-26 23:01:42 +0000
4@@ -12,6 +12,7 @@
5 :maxdepth: 1
6 :glob:
7
8+ proposals/indicator-datetime/index
9 proposals/indicator-messages/index
10 proposals/*
11
12
13=== added directory 'proposals/indicator-datetime'
14=== renamed file 'proposals/indicator_datetime_clock_helper.py' => 'proposals/indicator-datetime/clock_helper.py'
15=== renamed file 'proposals/indicator-datetime.rst' => 'proposals/indicator-datetime/index.rst'
16--- proposals/indicator-datetime.rst 2014-11-24 22:31:40 +0000
17+++ proposals/indicator-datetime/index.rst 2014-11-26 23:01:42 +0000
18@@ -1,10 +1,14 @@
19 Indicator Datetime
20 ==================
21
22+.. contents::
23+
24 Here UEQA offers specification of some needed "helpers" pursuant to an end-to-end test of indicator-datetime.
25
26-End-To-End Test
27----------------
28+.. note:: All the code paths of the test helpers must also be tested on their respective projects.
29+
30+Target Functional/Integration Test
31+----------------------------------
32
33 * Open the clock app
34 * Set an alarm:
35@@ -32,38 +36,22 @@
36 * Swipe open indicator-datetime
37 * No alarm item must appear in the menu
38
39-Component Helpers
40------------------
41+Deliverables
42+------------
43+.. note:: Unless otherwise specified, all python code is to written in Python 3.
44
45-Real Time Clock Helper
46-~~~~~~~~~~~~~~~~~~~~~~
47+Unity APIs: Real Time Clock Helper
48+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49 We need a mock real time clock so that we can manipulate the system time during end-to-end autopilot tests. A sample interface is offered below; this adds only the set_time function as shown in the `systemd timedated interface <http://www.freedesktop.org/wiki/Software/systemd/timedated/>`_.
50
51-.. literalinclude:: indicator_datetime_clock_helper.py
52-
53-UI Elements
54-~~~~~~~~~~~
55-As described in the `Ubuntu developer documentation <http://developer.ubuntu.com/apps/platform/guides/acceptance-testing-using-the-page-object-model>`_, adopt the page-object model and provide UI helpers for elements necessary to the test. See below for a snippet with required helper stubs.
56-
57-.. literalinclude:: indicator_datetime_ui_helpers.py
58-
59-Technology Requirements
60-~~~~~~~~~~~~~~~~~~~~~~~
61-* Written in Python3
62-
63-* Helpers need automated tests
64-
65-Packaging
66----------
67-
68-Component Helpers
69-~~~~~~~~~~~~~~~~~
70-It is suggested dthat the component helper code (i.e. the RTC helper) be packaged as indicator-datetime-autopilot.
71-
72-End-to-End Test
73-~~~~~~~~~~~~~~~
74-The test itself should reside in the existing Unity8 autopilot test suite (i.e. autopilot/unity8/indicators).
75-
76-Clock App Autopilot Packaging
77-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78+.. literalinclude:: clock_helper.py
79+
80+Community: Clock App Autopilot Packaging
81+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82 The ubuntu-clock-app supplies useful helpers, e.g. to `add an alarm <http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/utopic-3.0/view/head:/tests/autopilot/ubuntu_clock_app/emulators.py#L184>`_. These belong in a new ``ubuntu-clock-app-autopilot`` package.
83+
84+Shell: Test Helpers for Datetime Indicator
85+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
86+For the datetime indicator, As described in the `Ubuntu developer documentation <http://developer.ubuntu.com/apps/platform/guides/acceptance-testing-using-the-page-object-model>`_, adopt the page-object model and provide UI helpers for elements necessary to the test. See below for a snippet with required helper stubs.
87+
88+.. literalinclude:: unity_ui.py
89
90=== renamed file 'proposals/indicator_datetime_ui_helpers.py' => 'proposals/indicator-datetime/unity_ui.py'

Subscribers

People subscribed via source and target branches