The source for this document can be gotten from Bazaar:

bzr cat lp:indicator-power/tests/manual

The source is in the standard manual testing format for Ubuntu QA: Testing/TestCaseFormat

Notes on Battery Testing

Mock battery propreties are available for testing purposes.

The testing properties are DBus properties published on busname "com.canonical.indicator.power", object path "/com/canonical/indicator/power/Testing", and interface "com.canonical.indicator.power.Testing". The four properties are "MockBatteryEnabled" (boolean, default false), "MockBatteryLevel" (uint32 [0-100], default 50), "MockBatteryState" (string, default 'discharging'), "MockBatteryMinutesLeft" (minutes remaining to charge/discharge, uint32, default 30).

Example use:

To show the testing properties:

$ gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.GetAll \
             com.canonical.indicator.power.Testing

To enable the mock battery:

$ gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryEnabled \
             "<true>"

To set the mock battery's charge to 10%:

$ gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryLevel \
             "<uint32 10>"

Test Case: indicator-power/unity7-items-check

Procedure

Test Case: indicator-power/unity7-greeter-items-check

Procedure

Test Case: indicator-power/unity8-items-check

Procedure

Test Case: indicator-power/detect-charging-or-discharging

Procedure

Test Case: indicator-power/low-power-notifications

Procedure

Test Case: indicator-power/low-power-icon

Procedure

Test Case: indicator-power/device-brightness-slider

Procedure

Test Case: indicator-power/device-brightness-slider-auto

Procedure

Process/Merges/TestPlan/indicator-power (last edited 2016-01-04 16:56:38 by ip68-12-2-241)