brightness.led_brightness¶
Source code: brightness/led_brightness.py
This is a factory test to check the LED brightness.
Description¶
This test is to test LED functionality.
Test Procedure¶
Changes the brightness and color of the specific LED.
Operators decide pass or fail.
Dependency¶
Device API
cros.factory.device.led.SetColor
.
Examples¶
An example:
{
"pytest_name": "brightness.led_brightness",
"args": {
"msg": "Check if the LED color is correct",
"interval_secs": 1,
"led_name": "LEFT",
"levels": [1, 2]
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
msg |
str, dict |
Message HTML |
timeout_secs |
int |
(optional; default: |
levels |
list |
A sequence of brightness levels. |
interval_secs |
int, float |
Time for each brightness level in seconds. |
led_name |
str |
(optional; default: |
color |
str |
(optional; default: |