QA/Automation/Projects/WebAPI: Difference between revisions

m
 
(10 intermediate revisions by 2 users not shown)
Line 20: Line 20:
  | http://mxr.mozilla.org/mozilla-central/source/dom/
  | http://mxr.mozilla.org/mozilla-central/source/dom/
  |- valign="top"
  |- valign="top"
  | '''Tracking Bug:'''
  | '''API specs:'''
  | n/a
  | https://wiki.mozilla.org/WebAPI#APIs
  |- valign="top"
  |- valign="top"
  | '''Etherpad:'''
  | '''Etherpad:'''
Line 29: Line 29:
==Sub Projects==
==Sub Projects==
{| class="fullwidth-table" |
{| class="fullwidth-table" |
  | style="background:#EFEFEF; width: 25%" | Sub Project
  | style="background:#EFEFEF; width: 10%" | Priority
  | style="background:#EFEFEF; width: 15%" | Status
| style="background:#EFEFEF; width: 20%" | Feature
  | style="background:#EFEFEF; width: 40%" | Description
| style="background:#EFEFEF; width: 10%" | Status
  | style="background:#EFEFEF; width: 15%" | Owner
  | style="background:#EFEFEF; width: 45%" | QA testplan
  |- valign="top"
  |- valign="top"
  | [[Auto-tools/Automation_Development/Projects/WebAPI/APITests|APITests]]  
| P1
  | [[WebAPI/WebTelephony|WebTelephony]]
  | Active
  | Active
  | Suite of tests to verify WebAPI V1 on B2G device emulator
  | Rob Wood
| [[B2G/QA/WebAPI_Test_Plan/WebTelephony]]
|- valign="top"
| P1
| [[WebAPI/WebSMS|WebSMS]]
| Active
| Rob Wood
| [[B2G/QA/WebAPI_Test_Plan/WebSMS]]
|- valign="top"
| P1
| [[WebAPI/ScreenOrientation|Screen Orientation]]
| Active
| Henrik Skupin
| [[B2G/QA/WebAPI_Test_Plan/Screen_Orientation]]
|- valign="top"
| P1
| [http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html Battery Status]
| No started
| TBD
| [[B2G/QA/WebAPI_Test_Plan/Battery_Status]]
|}
|}
==Tasks==
For each of the WebAPIs that are testable on the B2G device emulator:
* Review the implementation details
* Review existing tests
* Identify new test cases to be developed, in order to ensure full API test coverage
* When reviewing existing mochitests, determine if additional test coverage can be achieved by adding marionette tests that access emulator features
* Develop new tests using the appropriate automation framework:
** Default to using mochitest; unless:
** If direct access to the B2G device emulator 'hardware' commands is required, use the marionette framework.


==Details==
==Details==
Line 44: Line 76:
General Firefox OS announcement: http://www.mozilla.org/en-US/firefoxos/
General Firefox OS announcement: http://www.mozilla.org/en-US/firefoxos/


Main MDN Firefox OS page: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS
Firefox OS on MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS


B2G Wiki: https://wiki.mozilla.org/B2G
B2G Wiki: https://wiki.mozilla.org/B2G
B2G architecture overview:
https://wiki.mozilla.org/B2G/Architecture


Details and specifications for the WebAPIs planned for B2G V1:
Details and specifications for the WebAPIs planned for B2G V1:
https://wiki.mozilla.org/Webapi
https://wiki.mozilla.org/Webapi
B2G architecture overview:
https://wiki.mozilla.org/B2G/Architecture


=== Building B2G ===
=== Building B2G ===
Line 76: Line 108:
Running B2G Marionette tests:
Running B2G Marionette tests:
https://developer.mozilla.org/en-US/docs/Marionette/Running_Tests
https://developer.mozilla.org/en-US/docs/Marionette/Running_Tests
==== Marionette Command Line ====
You may want to create a shell script to quickly launch your WebAPI Marionette test right from your workspace folder.  Create a new shell script and copy/paste the line of code below, and put the script in your path. Then with the emulator already running, you can use the script to easily execute your WebAPI test.
python $B2G_HOME/gecko/testing/marionette/client/marionette/runtests.py --emulator arm --address localhost:2828 --homedir $B2G_HOME $1
=== Emulator (Android Console) Commands ===
Emulator commands:
http://developer.android.com/tools/devices/emulator.html
General emulator info:
http://developer.android.com/tools/help/emulator.html
canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,714

edits