Merge lp:~cr3/checkbox/touchpad_tests into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1781
Proposed branch: lp:~cr3/checkbox/touchpad_tests
Merge into: lp:checkbox
Diff against target: 171 lines (+49/-28)
4 files modified
debian/changelog (+2/-0)
jobs/input.txt.in (+19/-0)
jobs/touchpad.txt.in (+11/-16)
scripts/touchpad_test (+17/-12)
To merge this branch: bzr merge lp:~cr3/checkbox/touchpad_tests
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+130200@code.launchpad.net

Commit message

Merged improvements to touchpad tests by cr3.

Description of the change

These are the changes resulting from usability testing the touchpad tests. Once this branch is merged, the corresponding one in checkbox-certification should be merged.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Looks good to me, thanks! Merging.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-17 13:44:17 +0000
+++ debian/changelog 2012-10-17 19:28:20 +0000
@@ -25,6 +25,8 @@
25 * setup.py: added support for installing in virtualenv25 * setup.py: added support for installing in virtualenv
26 * setup.py: made build dependency on qt4-make optional26 * setup.py: made build dependency on qt4-make optional
27 * debian/control: Added python3-gi to run checkbox-qt.27 * debian/control: Added python3-gi to run checkbox-qt.
28 * jobs/input.txt.in, jobs/touchpad.txt.in: Added input/pointing tests
29 and simplified horizontal/vertical scrolling tests.
2830
29 [Sean Feole]31 [Sean Feole]
30 * [FEATURE] jobs/optical.txt.in: modified existing automation test32 * [FEATURE] jobs/optical.txt.in: modified existing automation test
3133
=== modified file 'jobs/input.txt.in'
--- jobs/input.txt.in 2012-08-20 13:55:05 +0000
+++ jobs/input.txt.in 2012-10-17 19:28:20 +0000
@@ -1,3 +1,22 @@
1plugin: local
2name: input/pointing
3requires:
4 device.category == 'MOUSE' or device.category == 'TOUCH'
5_description: Pointing device tests.
6command:
7 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=MOUSE" -w "category=TOUCH"'
8 plugin: manual
9 name: input/pointing_`basename $path`
10 requires: device.path == "$path"
11 description:
12 PURPOSE:
13 This will test your $product device
14 STEPS:
15 1. Move the cursor with your $product.
16 VERIFICATION:
17 Did the cursor move?
18 EOF
19
1plugin: manual20plugin: manual
2name: input/mouse21name: input/mouse
3requires: device.category == 'MOUSE' or device.category == 'TOUCH'22requires: device.category == 'MOUSE' or device.category == 'TOUCH'
423
=== modified file 'jobs/touchpad.txt.in'
--- jobs/touchpad.txt.in 2012-09-28 21:57:21 +0000
+++ jobs/touchpad.txt.in 2012-10-17 19:28:20 +0000
@@ -4,41 +4,36 @@
4 PURPOSE:4 PURPOSE:
5 Touchpad verification5 Touchpad verification
6 STEPS:6 STEPS:
7 1. Make sure that touchpad is enabled7 1. Make sure that touchpad is enabled.
8 2. Try to move pointer using touchpad8 2. Move cursor using the touchpad.
9 3. Pointer should move accordingly
10 VERIFICATION:9 VERIFICATION:
11 Did touchpad work as expected?10 Did the cursor move?
1211
13plugin: manual12plugin: manual
14name: touchpad/horizontal13name: touchpad/horizontal
15requires: touchpad_scroll.horizontal_scroll == 'supported'14requires: touchpad_scroll.horizontal_scroll == 'supported'
16depends: touchpad/basic
17command: touchpad_test right left15command: touchpad_test right left
18_description:16_description:
19 PURPOSE:17 PURPOSE:
20 Touchpad verification18 Touchpad horizontal scroll verification
21 STEPS:19 STEPS:
22 1. Make sure that touchpad is enabled20 1. Select "Test" when ready and place your cursor within the borders of the displayed test window.
23 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.21 2. Verify that you can move the horizontal slider by moving your finger right and left in the lower part of the touchpad.
24 3. Verify that you can move the horizontal slider by moving your finger side by side in the lower part of the touchpad
25 VERIFICATION:22 VERIFICATION:
26 Did touchpad work as expected?23 Could you scroll right and left?
2724
28plugin: manual25plugin: manual
29name: touchpad/vertical26name: touchpad/vertical
30requires: touchpad_scroll.vertical_scroll == 'supported'27requires: touchpad_scroll.vertical_scroll == 'supported'
31depends: touchpad/basic
32command: touchpad_test up down28command: touchpad_test up down
33_description:29_description:
34 PURPOSE:30 PURPOSE:
35 Touchpad verification31 Touchpad vertical scroll verification
36 STEPS:32 STEPS:
37 1. Make sure that touchpad is enabled33 1. Select "Test" when ready and place your cursor within the borders of the displayed test window.
38 2. Select "Test" when ready and place your cursor within the borders of the displayed test window.34 2. Verify that you can move the vertical slider by moving your finger up and down in the right part of the touchpad.
39 3. Verify that you can move the vertical slider by moving your finger side by side in the right part of the touchpad
40 VERIFICATION:35 VERIFICATION:
41 Did touchpad work as expected?36 Could you scroll up and down?
4237
43plugin: shell38plugin: shell
44name: touchpad/singletouch-automated39name: touchpad/singletouch-automated
4540
=== modified file 'scripts/touchpad_test'
--- scripts/touchpad_test 2012-06-11 19:14:08 +0000
+++ scripts/touchpad_test 2012-10-17 19:28:20 +0000
@@ -60,8 +60,9 @@
60 self.label = self._add_label(vbox)60 self.label = self._add_label(vbox)
61 button_hbox = self._add_hbox(vbox)61 button_hbox = self._add_hbox(vbox)
62 validation_hbox = self._add_hbox(vbox)62 validation_hbox = self._add_hbox(vbox)
63 exit_button = self._add_button(vbox, Gtk.STOCK_CLOSE)63 self.status = self._add_label(vbox)
64 exit_button.connect("clicked", lambda w: self.quit())64 self.exit_button = self._add_button(vbox, Gtk.STOCK_CLOSE)
65 self.exit_button.connect("clicked", lambda w: self.quit())
6566
66 # Add widgets for each direction.67 # Add widgets for each direction.
67 self.icons = {}68 self.icons = {}
@@ -70,8 +71,10 @@
70 self.icons[direction] = self._add_image(71 self.icons[direction] = self._add_image(
71 validation_hbox, Gtk.STOCK_INDEX)72 validation_hbox, Gtk.STOCK_INDEX)
7273
73 self.show_text(_("Please move the mouse cursor to this window."))74 self.show_text(
74 self.show_text(_("Then scroll in each direction on your touchpad."))75 _("Please move the mouse cursor to this window.") +
76 "\n" +
77 _("Then scroll in each direction on your touchpad."))
7578
76 def _add_button(self, context, stock):79 def _add_button(self, context, stock):
77 button = self.button_factory(stock=stock)80 button = self.button_factory(stock=stock)
@@ -124,9 +127,7 @@
124127
125 Gtk.main()128 Gtk.main()
126129
127 def quit(self, exit_code=EXIT_WITH_FAILURE):130 def quit(self):
128 self.exit_code = exit_code
129
130 # Reset touchpad settings.131 # Reset touchpad settings.
131 touchpad_settings = Gio.Settings.new(self.touchpad_key)132 touchpad_settings = Gio.Settings.new(self.touchpad_key)
132 touchpad_settings.set_boolean(133 touchpad_settings.set_boolean(
@@ -136,8 +137,10 @@
136137
137 Gtk.main_quit()138 Gtk.main_quit()
138139
139 def show_text(self, string):140 def show_text(self, text, widget=None):
140 self.label.set_text(self.label.get_text() + "\n" + string)141 if widget is None:
142 widget = self.label
143 widget.set_text(text)
141144
142 def found_direction(self, direction):145 def found_direction(self, direction):
143 direction.tested = True146 direction.tested = True
@@ -147,8 +150,10 @@
147150
148 def check_directions(self):151 def check_directions(self):
149 if all([direction.tested for direction in self.directions]):152 if all([direction.tested for direction in self.directions]):
150 self.show_text(_("All required directions have been tested!"))153 self.show_text(
151 self.quit(EXIT_WITH_SUCCESS)154 _("All required directions have been tested!"), self.status)
155 self.exit_code = EXIT_WITH_SUCCESS
156 self.exit_button.grab_focus()
152157
153 def on_scroll(self, window, event):158 def on_scroll(self, window, event):
154 for direction in self.directions:159 for direction in self.directions:
@@ -181,7 +186,7 @@
181 try:186 try:
182 scroller.run()187 scroller.run()
183 except KeyboardInterrupt:188 except KeyboardInterrupt:
184 scroller.show_text(_("Test interrupted"))189 scroller.show_text(_("Test interrupted"), self.status)
185 scroller.quit()190 scroller.quit()
186191
187 return scroller.exit_code192 return scroller.exit_code

Subscribers

People subscribed via source and target branches