B2G/QA/WebAPI Test Plan/Battery Status: Difference between revisions
< B2G | QA | WebAPI Test Plan
Jump to navigation
Jump to search
(→Tests) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
|- | |- | ||
| '''API Project Page''' | | '''API Project Page''' | ||
| [[WebAPI/ | | [[WebAPI/BatteryAPI|BatteryAPI]] | ||
|- | |- | ||
| '''API Tracking Bugs''' | | '''API Tracking Bugs''' | ||
Line 41: | Line 41: | ||
== Tests == | == Tests == | ||
=== Marionette/JS === | === Marionette/JS === | ||
Tracking: {{bug}} | Tracking: {{bug|805435}} | ||
==== Basic Positive Tests ==== | ==== Basic Positive Tests ==== | ||
* Battery status change | * Battery status change | ||
** Charging -> Full | ** {{done|}}Charging -> Full | ||
** Charging -> Discharging | ** Charging -> Discharging | ||
** Charging -> Not Charging | ** Charging -> Not Charging | ||
Line 51: | Line 51: | ||
** Full -> Charging | ** Full -> Charging | ||
** Full -> Discharging | ** Full -> Discharging | ||
** Full -> Not Charging | ** {{done|}}Full -> Not Charging | ||
** Full -> Unknown | ** Full -> Unknown | ||
** Not Charging -> Charging | ** Not Charging -> Charging | ||
** Not Charging -> Discharging | ** {{done|}}Not Charging -> Discharging | ||
** Not Charging -> Full | ** Not Charging -> Full | ||
** Not Charging -> Unknown | ** Not Charging -> Unknown | ||
** Discharging -> Charging | ** {{done|}}Discharging -> Charging | ||
** Discharging -> Full | ** Discharging -> Full | ||
** Discharging -> Not Charging (unrealistic scenario) | ** Discharging -> Not Charging (unrealistic scenario) | ||
Line 67: | Line 67: | ||
* Battery level change | * Battery level change | ||
** Increase | ** Increase | ||
** Decrease | ** {{done|}}Decrease | ||
=== mochitest-plain=== | === mochitest-plain=== | ||
==== Sanity Tests ==== | ==== Sanity Tests ==== | ||
* Verify default values when battery is not present | * {{done|}}Verify default values when battery is not present | ||
---- | ---- | ||
<small>This page is based on the [[B2G/QA/WebAPI Test Plan/Template|WebAPI Test Plan Template]]</small> | <small>This page is based on the [[B2G/QA/WebAPI Test Plan/Template|WebAPI Test Plan Template]]</small> |
Latest revision as of 15:11, 25 October 2012
B2G Battery API Test Plan
Summary
Lead | TBD |
Contributors | Dave Hunt (irc: davehunt) |
API Description | Get details of the battery charging state and level, as well as listen for change of state or level. |
API Developer | Mounir Lamouri |
API Project Page | BatteryAPI |
API Tracking Bugs | bug 678694 |
API Status | Delivered and ready for test |
Scope
This test plan covers functional testing of the Battery API as delivered for Boot2Gecko. It does not attempt to cover performance, security, or other kinds of testing at this time.
Strategy
The Battery API can be tested most effectively by manipulating the battery status and level of an emulated device, so primary testing will be via Marionette/JS through CI.
Some basic sanity tests can be added to Mochitest for default values where hardware emulation is not possible.
API
Tests
Marionette/JS
Tracking: bug 805435
Basic Positive Tests
- Battery status change
- [DONE] Charging -> Full
- Charging -> Discharging
- Charging -> Not Charging
- Charging -> Unknown
- Full -> Charging
- Full -> Discharging
- [DONE] Full -> Not Charging
- Full -> Unknown
- Not Charging -> Charging
- [DONE] Not Charging -> Discharging
- Not Charging -> Full
- Not Charging -> Unknown
- [DONE] Discharging -> Charging
- Discharging -> Full
- Discharging -> Not Charging (unrealistic scenario)
- Discharging -> Unknown
- Unknown -> Charging
- Unknown -> Discharging
- Unknown -> Full
- Unknown -> Not Charging
- Battery level change
- Increase
- [DONE] Decrease
mochitest-plain
Sanity Tests
- [DONE] Verify default values when battery is not present
This page is based on the WebAPI Test Plan Template