B2G/QA/WebAPI Test Plan/Media Playback

From MozillaWiki
< B2G‎ | QA‎ | WebAPI Test Plan
Jump to: navigation, search

B2g Media Playback Tests

Summary

Lead David Clarke (irc: onecyrenus)
Contributors TBD
Description Get notification when screen orientation changes as well as control which screen orientation a page/app wants.
Developer Edwin Flores Chris Double
Project Page
Media Playback Tracking Bugs
API Status Delivered and ready for test

Scope

This test plan covers functional testing for Media Playback on the B2G platform. Media Types included in this are ogg, webm, mp3, mp4. Media Playback needs to be able to occur from both the web browser and on device apps. Media Playback needs to be able to buffer content in browser in app so there is smooth playback

Strategy

The strategy behind this test plan will be to gain feature parity with the android platform in the playback of audio and video, as well as capture a good aesthetic.

There are three mechanisms for testing media.

  1. 1) In browser
  2. 2) In App
  3. 3) Basic Video / Gallery / Music App Playback

Each testing area will have a set of tests such that are iterable, and verifiable.

Browser

Testing will be separated by audio / video , and then further by formats, and then further by features and capabilities.

Browser testing will require you to point your browser to the following link:

In App

You will need to install the WebAPI Test Suite:

git clone https://github.com/mozilla-b2g/gaia.git
cd gaia/external-apps
mkdir webapitests
cd webapitests
wget http://people.mozilla.com/~dclarke/kofway/manifest.webapp
echo "http://people.mozilla.com/~dclarke/kofway/" >> origin
cd ../../
make
make install-gaia

Basic Video / Gallery / Music App Playback

Basic Video / Gallery / Music App Playback will require for you to install test media onto the device.

Once again you will want to git clone the gaia repo

 cd gaia
 make install-test-media

Browser

Browser Test Suite
Test Case PASS / FAIL Priority Additional Notes Date
MediaTC_001 xxxxx P1

Ogg

  1. Pick an Audio File: b2g.ogg B2G
  2. Play Audio
  3. Pause
  4. Forward Seek
  5. Reverse Seek
  6. Sleep Phone / Wake (Verify Audio continues to play)

Mp3

  1. Pick an Audio File: b2g.ogg B2G
  2. Play Audio
  3. Pause
  4. Forward Seek
  5. Reverse Seek
  6. Sleep Phone / Wake (Verify Audio continues to play)

Capabilities / Features

Streaming

  1. Buffered Playback to reduce jitter
  2. Redirects followed ?
  3. Closing the app stops the playback
    1. Immediately play and close the app several times

Screen Orientation

  1. Change Screen Orientation, verification here is that video orientation changes.
    1. Also verify any onscreen buttons or queues have changed orientation as well

Bluetooth

  1. Ability to switch audio output between bluetooth, speakerphone

Video

Ogg

  1. Pick an Video File: b2g.ogg B2G
  2. Play Video
  3. Pause
  4. Forward Seek
  5. Reverse Seek
  6. Sleep Phone / Wake (Verify Video continues to play)
  7. Ability to FullScreen

Mp4

  1. Pick an Video File: b2g.ogg B2G
  2. Play Video
  3. Pause
  4. Forward Seek
  5. Reverse Seek
  6. Sleep Phone / Wake (Verify Video continues to play)
  7. Ability to FullScreen

WebM

  1. Pick an Video File: b2g.ogg B2G
  2. Play Video
  3. Pause
  4. Forward Seek
  5. Reverse Seek
  6. Sleep Phone / Wake (Verify Video continues to play)
  7. Ability to FullScreen

Capabilities / Features

Streaming

  1. Buffered Playback to reduce jitter
  2. Redirects followed ?
  3. Closing the app stops the playback
    1. Immediately play and close the app several times

Screen Orientation

  1. Change Screen Orientation, verification here is that video orientation changes.
    1. Also verify any onscreen buttons or queues have changed orientation as well

Bluetooth

  1. Ability to switch audio output between bluetooth, speakerphone