B2G/QA/WebAPI Test Plan/Media Playback
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) In browser
- 2) In App
- 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
- Pick an Audio File: b2g.ogg B2G
- Play Audio
- Pause
- Forward Seek
- Reverse Seek
- Sleep Phone / Wake (Verify Audio continues to play)
Mp3
- Pick an Audio File: b2g.ogg B2G
- Play Audio
- Pause
- Forward Seek
- Reverse Seek
- Sleep Phone / Wake (Verify Audio continues to play)
Capabilities / Features
Streaming
- Buffered Playback to reduce jitter
- Redirects followed ?
- Closing the app stops the playback
- Immediately play and close the app several times
Screen Orientation
- Change Screen Orientation, verification here is that video orientation changes.
- Also verify any onscreen buttons or queues have changed orientation as well
Bluetooth
- Ability to switch audio output between bluetooth, speakerphone
Video
Ogg
- Pick an Video File: b2g.ogg B2G
- Play Video
- Pause
- Forward Seek
- Reverse Seek
- Sleep Phone / Wake (Verify Video continues to play)
- Ability to FullScreen
Mp4
- Pick an Video File: b2g.ogg B2G
- Play Video
- Pause
- Forward Seek
- Reverse Seek
- Sleep Phone / Wake (Verify Video continues to play)
- Ability to FullScreen
WebM
- Pick an Video File: b2g.ogg B2G
- Play Video
- Pause
- Forward Seek
- Reverse Seek
- Sleep Phone / Wake (Verify Video continues to play)
- Ability to FullScreen
Capabilities / Features
Streaming
- Buffered Playback to reduce jitter
- Redirects followed ?
- Closing the app stops the playback
- Immediately play and close the app several times
Screen Orientation
- Change Screen Orientation, verification here is that video orientation changes.
- Also verify any onscreen buttons or queues have changed orientation as well
Bluetooth
- Ability to switch audio output between bluetooth, speakerphone