Merge lp:~canonical-ci-engineering/ubuntu-test-cases/readme-updates2 into lp:ubuntu-test-cases/touch

Proposed by Francis Ginther
Status: Merged
Approved by: Francis Ginther
Approved revision: 382
Merged at revision: 381
Proposed branch: lp:~canonical-ci-engineering/ubuntu-test-cases/readme-updates2
Merge into: lp:ubuntu-test-cases/touch
Diff against target: 187 lines (+72/-28)
1 file modified
README.rst (+72/-28)
To merge this branch: bzr merge lp:~canonical-ci-engineering/ubuntu-test-cases/readme-updates2
Reviewer Review Type Date Requested Status
Paul Larson Approve
Para Siva (community) Approve
Review via email: mp+253391@code.launchpad.net

Commit message

Incorporate more README review feedback from external reviewers. Add a prerequisite section, some explicit examples, made addition notes on the need for provision.sh and re-arranged some content.

Description of the change

Incorporate more README review feedback from external reviewers. Add a prerequisite section, some explicit examples, made addition notes on the need for provision.sh and re-arranged some content.

Content is now viewable here:
http://ubuntu-test-cases-touch.readthedocs.org/en/latest/

To post a comment you must log in.
Revision history for this message
Para Siva (psivaa) wrote :

+1

review: Approve
Revision history for this message
Paul Larson (pwlars) wrote :

Looks good. Nice changes. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.rst'
2--- README.rst 2015-03-05 20:53:36 +0000
3+++ README.rst 2015-03-18 16:06:23 +0000
4@@ -1,9 +1,9 @@
5 Touch Testing From the CLI
6 ==========================
7
8-The touch testing execution framework was written so that its very easy to
9-run tests from home in the exact same way test are run in the lab. The only
10-things you need are:
11+The CI touch testing execution framework was written so that it's very easy to
12+run tests from home in the exact same way tests are run for the CI dashboard
13+and CI MP testing. The only things you need are:
14
15 * This bzr branch: `lp:ubuntu-test-cases/touch <https://code.launchpad.net/~ubuntu-test-case-dev/ubuntu-test-cases/touch>`_
16 * The phablet-tools_ and ubuntu-device-flash_ packages
17@@ -13,9 +13,9 @@
18 .. _ubuntu-device-flash: http://launchpad.net/goget-ubuntu-touch
19 .. _supported: http://wiki.ubuntu.com/Touch/Devices
20
21-There are two pieces to touch testing, provisioning and test execution. These
22-functions are independent of one another. i.e., if your device already
23-has the proper image/configuration, you can simply use the test-runner.
24+There are two pieces to touch testing, provisioning and test execution.
25+The provisioning step is required, but once provisioned, you can proceed with
26+any of the test methods described in this document.
27
28 .. note::
29 Re-creating test results to match those on http://ci.ubuntu.com/ is not
30@@ -26,16 +26,43 @@
31
32 For best results, it's recommended to always use the most recent image.
33
34+Prerequisites
35+-------------
36+
37+Before proceeding, a network configuration file is required. This is a one time
38+setup and can be used for all future provisioning and testing as long as your
39+wifi network does not change. This file is the same network configuration file
40+used by *phablet-network* and can be found by running *phablet-network* with no
41+options. For example::
42+
43+ $ phablet-network
44+ Network file is /etc/NetworkManager/system-connections/my-network-ssid
45+ Provisioning network on device
46+
47+ Network setup complete
48+ PING launchpad.net (91.189.89.222) 56(84) bytes of data.
49+
50+Once the network configuration file is identified, it can be copied into the
51+default location to be used by the provisioning scripts::
52+
53+ mkdir ~/.ubuntu-ci
54+ sudo cp /etc/NetworkManager/system-connections/my-network-ssid ~/.ubuntu-ci/wifi.conf
55+ sudo chown $USER:$USER ~/.ubuntu-ci/wifi.conf
56+
57 Provisioning
58 ------------
59
60+Provisioning is a required step before performing CI dashboard or MP testing.
61+It is necessary to configure the device into a known state so that the tests
62+can run in a predictible manner.
63+
64 .. warning::
65 This provisioning step will completely erase your device. Be sure to
66 backup any data before proceeding.
67
68 The provisioning script is a simple wrapper to commands from phablet-tools
69-to get a device ready for testing. Provisioning is performed with the
70-scripts/provision.sh command. Running::
71+and some additional device setup to get it ready for testing. Provisioning
72+is performed with the scripts/provision.sh command. Running::
73
74 ./scripts/provision.sh -w
75
76@@ -50,8 +77,9 @@
77 automatically and completely reinstalled - **ALL DATA WILL BE LOST**.
78
79 .. note::
80- provision.sh requires a path to a network-manager wifi connection that
81- can be copied to the target device. By default this is set to
82+ provision.sh requires a path to a network-manager wifi configuration file
83+ that can be copied to the target device as described above in the
84+ Prerequisites section. By default this is set to
85 ${HOME}/.ubuntu-ci/wifi.conf. This can be overridden with the -n parameter.
86
87 Other customizations can be performed during provisioning, for a full list
88@@ -62,12 +90,25 @@
89 Executing Tests
90 ---------------
91
92-The touch testing repository supports both autopilot and UTAH test definitions.
93+The touch testing tools are intended to provide CI Dashboard and CI MP testing
94+for specific applications. The supported applications and test suites are
95+visible in the `CI Dashboard <http://ci.ubuntu.com/>`_. These tests include
96+both autopilot and UTAH test definitions. The following sections describe how
97+to use these tools for testing on a local device.
98
99 .. note::
100 These tools will *only* work on a device that has been provisioned using the
101 methods described above.
102
103+.. note::
104+
105+ Some of the tests generate subunit result files. These subunit result files
106+ provide richer content and potentially more test artifacts over the xml
107+ result files. To view the contents of these files, use the trv_ viewer
108+ application or your favorite subunit viewer.
109+
110+.. _trv: https://launchpad.net/trv
111+
112 Executing Autopilot Tests
113 ~~~~~~~~~~~~~~~~~~~~~~~~~
114
115@@ -90,9 +131,18 @@
116 unity8-autopilot if it is not already installed, to allow the device to
117 be unlocked automatically.
118
119+Examples
120+^^^^^^^^
121+
122 An example testing two applications::
123
124- ./scripts/run-autopilot-tests.sh -a dropping_letters_app -a music_app
125+ ./scripts/provision.sh -w
126+ ./scripts/run-autopilot-tests.sh -a dropping_letters_app -a music_app
127+
128+And an example for running all dashboard autopilot tests::
129+
130+ ./scripts/provision.sh -w
131+ ./scripts/run-autopilot-tests.sh
132
133 Executing UTAH Tests
134 ~~~~~~~~~~~~~~~~~~~~
135@@ -116,11 +166,14 @@
136
137 ./scripts/jenkins.sh -a sdk
138
139-Provisioning and Executing tests for an MP
140-------------------------------------------
141+Provisioning and Executing Autopilot Tests for an MP
142+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
143
144 These scripts are used by jenkins for the testing of MPs that generate Debian
145-packages. To re-create the testing performed by jenkins, set the following
146+packages. The *run-mp.sh* script used below includes provisioning, so for this
147+one case, it is not necessary to call provision.sh separately.
148+
149+To re-create the testing performed by jenkins, set the following
150 environment variables based on the jenkins build parameters::
151
152 export package_archive=<from jenkins build parameter>
153@@ -135,8 +188,8 @@
154
155 ./scripts/run-mp.sh
156
157-Running Tests for a Modified Click Application
158-----------------------------------------------
159+Running Autopilot Tests for a Modified Click Application
160+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161
162 First provision the device with the desired image using the instructions
163 in the "Provisioning" section of this README.
164@@ -173,8 +226,8 @@
165 clientlogs/dropping_letters_app/test_results.subunit
166 clientlogs/dropping_letters_app/test_results.xml
167
168-Running Tests for a Modified Debian Package
169--------------------------------------------
170+Running Autopilot Tests for a Modified Debian Package
171+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
172
173 First provision the device with the desired image using the instructions
174 in the "Provisioning" section of this README.
175@@ -204,12 +257,3 @@
176
177 clientlogs/dialer_app/test_results.subunit
178 clientlogs/dialer_app/test_results.xml
179-
180-Viewing subunit files
181----------------------
182-
183-The subunit result files provide richer content and potentially more test
184-artifacts over the xml result files. To view the contents of these files,
185-use the trv_ viewer application or your favorite subunit viewer.
186-
187-.. _trv: https://launchpad.net/trv

Subscribers

People subscribed via source and target branches