fingerprint_sensor_elan¶
Source code: fingerprint_sensor_elan.py
A factory test for the Elan fingerprint sensor.
Description¶
This pytest is to test the Elan fingerprint test.
The Elan fingerprint test consists of four sub-tests: base test, sensor test, reset test, and WOE test. Only WOE test requires user interactions.
Test Procedure¶
The base, sensor and reset tests are automated. Don’t touch the fingerprint sensor during the test.
The WOE test requires user interaction. Please take the following steps.
Start the test, and wait until the screen tells the user to touch the fingerprint sensor.
Place your finger on the fingerprint sensor and then lift it away.
The UI should show that the WOE test is running. If not, the sensor does not detect your finger. It may be malfunctioning.
The pytest collects required data and analyzes the sensor’s functionality automatically.
Examples¶
Run only base test:
{
"pytest_name": "fingerprint_sensor_elan",
"label": "Elan FPS Base Test",
"run_if": "device.component.has_fingerprint",
"related_components": [
"test_tags.TestCategory.FINGERPRINT_SENSOR"
],
"args": {
"test_case": 1
}
}
Run only non-interactive sub-tests:
{
"pytest_name": "fingerprint_sensor_elan",
"label": "Elan FPS Non-interactive Test",
"run_if": "device.component.has_fingerprint",
"related_components": [
"test_tags.TestCategory.FINGERPRINT_SENSOR"
],
"args": {
"test_case": 7
}
}
Run all sub-tests:
{
"pytest_name": "fingerprint_sensor_elan",
"label": "Elan FPS Complete Test",
"run_if": "device.component.has_fingerprint",
"related_components": [
"test_tags.TestCategory.FINGERPRINT_SENSOR"
],
"args": {
"test_case": 15
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
test_case |
int |
(optional; default: |
min_base_mean |
float |
(optional; default: |
max_base_mean |
float |
(optional; default: |
min_pixel_diff |
int |
(optional; default: |
max_pixel_diff |
int |
(optional; default: |
max_dead_pixel_count |
int |
(optional; default: |
max_consecutive_dead_pixel_count |
int |
(optional; default: |
contrast_threshold |
int |
(optional; default: |
capture_fpmode_timeout_secs |
float |
(optional; default: |
fpmode_retry_count |
int |
(optional; default: |
log_fpframe |
bool |
(optional; default: |