battery_cycle¶
Source code: battery_cycle.py
This test cycles the battery.
Description¶
It runs for a particular number of cycles or number of hours and records, cycling the battery between a minimum charge (e.g., 5%) and a maximum charge (e.g., 95%). Cycle times are logged to event logs.
Internal references¶
https://chromeos.google.com/partner/dlm/docs/component-qual/index.html. See the “Power” section -> “Battery_Qualification Test Plan” -> “Battery Recharge Cycle Test”.
Test Procedure¶
This is an automatic test that doesn’t need any user interaction.
Dependency¶
Device API
cros.factory.device.power
.
Examples¶
Add this into test list:
{
"pytest_name": "battery_cycle",
"label": "Battery Cycle",
"exclusive_resources": [
"POWER"
],
"related_components": [
"test_tags.TestCategory.BATTERY"
]
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
num_cycles |
int, None |
(optional; default: |
max_duration_hours |
int, float, None |
(optional; default: |
cycle_timeout_secs |
int |
(optional; default: |
minimum_charge_pct |
int, float |
(optional; default: |
maximum_charge_pct |
int, float |
(optional; default: |
charge_threshold_secs |
int |
(optional; default: |
idle_time_secs |
int |
(optional; default: |
log_interval_secs |
int |
(optional; default: |
verify_cutoff |
bool |
(optional; default: |
cutoff_charge_pct |
int, float |
(optional; default: |
fast_discharge |
bool |
(optional; default: |