backlight¶
Source code: backlight.py
Test display backlight.
Description¶
This test check if the backlight of display can be adjusted.
The test randomly change the backlight of display to either lower or higher, and operator should answer the direction of change correctly to pass the test.
Test Procedure¶
The backlight is reset to
reset_level
.Operator press space key to adjust the backlight to lower or higher randomly, and press escape key to reset the backlight.
Operator press ‘H’ key if the backlight is higher when pressing space key, and press ‘L’ key if it is lower.
The test pass if the operator answer correctly two times, and fail if the operator answer incorrectly.
Dependency¶
Device API display.SetBacklightBrightness.
Examples¶
To test display backlight functionality, add this into test list:
{
"pytest_name": "backlight",
"label": "Backlight",
"related_components": [
"test_tags.TestCategory.LCD"
]
}
To test display backlight functionality, and have a smaller change on each space pressed, add this into test list:
{
"pytest_name": "backlight",
"label": "Backlight (Smaller Adjust Level)",
"related_components": [
"test_tags.TestCategory.LCD"
],
"args": {
"adjust_level": 0.02
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
adjust_level |
float |
(optional; default: |
reset_level |
float |
(optional; default: |
min_level |
float |
(optional; default: |