touchpad¶
Source code: touchpad.py
A factory test to test the functionality of touchpad.
Description¶
A touchpad test for touching, clicking, and multi-contact.
Test Procedure¶
Take off all your fingers from the touchpad.
Press spacebar to start.
Touch all x_segments * y_segments areas of touchpad with one finger. The corresponding regions in screen will become green once you touch them.
Scroll up and down with two fingers to make all cells in the right side of screen green.
Click left-top, right-top, left-bottom, and right-bottom corner of touchpad with one finger for number_to_quadrant times.
Click anywhere of touchpad with one finger until you have already done that number_to_click times.
Click anywhere of touchpad with two fingers for number_to_click times.
If you don’t pass the test in timeout_secs seconds, the test will fail.
Dependency¶
Based on Linux evdev.
Examples¶
To test touchpad with default parameters, add this in test list:
{
"pytest_name": "touchpad",
"label": "Touchpad",
"related_components": [
"test_tags.TestCategory.TRACKPAD"
]
}
If you want to change the time limit to 100 seconds:
.. test_list::
generic_touchpad_examples:Touchpad100Seconds
Test Arguments¶
Name |
Type |
Description |
---|---|---|
device_filter |
int, str, None |
(optional; default: |
timeout_secs |
int |
(optional; default: |
number_to_click |
int |
(optional; default: |
number_to_quadrant |
int |
(optional; default: |
x_segments |
int |
(optional; default: |
y_segments |
int |
(optional; default: |