B2G/QA/WebAPI Test Plan/Battery Status: Difference between revisions
< B2G | QA | WebAPI Test Plan
Jump to navigation
Jump to search
(→API) |
(→Tests) |
||
Line 41: | Line 41: | ||
== Tests == | == Tests == | ||
=== Marionette/JS === | === Marionette/JS === | ||
==== | Tracking: {{bug}} | ||
* | |||
==== Basic Positive Tests ==== | |||
* Battery status change | |||
** Charging -> Full (test implemented) | |||
** Charging -> Discharging | |||
** Charging -> Not Charging | |||
** Charging -> Unknown | |||
** Full -> Charging | |||
** Full -> Discharging | |||
** Full -> Not Charging (test implemented) | |||
** Full -> Unknown | |||
** Not Charging -> Charging | |||
** Not Charging -> Discharging (test implemented) | |||
** Not Charging -> Full | |||
** Not Charging -> Unknown | |||
** Discharging -> Charging (test implemented) | |||
** Discharging -> Full | |||
** Discharging -> Not Charging (unrealistic scenario) | |||
** Discharging -> Unknown | |||
** Unknown -> Charging | |||
** Unknown -> Discharging | |||
** Unknown -> Full | |||
** Unknown -> Not Charging | |||
* Battery level change | |||
** Increase | |||
** Decrease (test implemented) | |||
=== mochitest-plain=== | === mochitest-plain=== | ||
==== | ==== Sanity Tests ==== | ||
* | * 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> |
Revision as of 14:26, 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 | WebBattery |
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 {{{1}}}
Basic Positive Tests
- Battery status change
- Charging -> Full (test implemented)
- Charging -> Discharging
- Charging -> Not Charging
- Charging -> Unknown
- Full -> Charging
- Full -> Discharging
- Full -> Not Charging (test implemented)
- Full -> Unknown
- Not Charging -> Charging
- Not Charging -> Discharging (test implemented)
- Not Charging -> Full
- Not Charging -> Unknown
- Discharging -> Charging (test implemented)
- Discharging -> Full
- Discharging -> Not Charging (unrealistic scenario)
- Discharging -> Unknown
- Unknown -> Charging
- Unknown -> Discharging
- Unknown -> Full
- Unknown -> Not Charging
- Battery level change
- Increase
- Decrease (test implemented)
mochitest-plain
Sanity Tests
- Verify default values when battery is not present
This page is based on the WebAPI Test Plan Template