QA/Automation/Projects/WebRTC
Contents
Overview
"WebRTC is a free, open project that enables web browsers with Real-Time Communications (RTC) capabilities via simple Javascript APIs. The WebRTC components have been optimized to best serve this purpose."
To ensure that the code quality of WebRTC in Firefox is in an overall good shape, automated tests have to be written. Those tests will be executed by the Mochitest framework on a per check-in basis.
Name: | WebRTC tests |
Leads: | Nils Ohlmeier |
Contributors: | n/a |
Repository: | http://hg.mozilla.org/mozilla-central/file/default/dom/media/tests |
Tracking Bug: | bug 749522 |
Etherpad: | http://etherpad.mozilla.com:9000/automation-webrtc |
Details
The code of WebRTC is still in an early state as the standards around WebRTC are not finalized yet. The WebRTC code and its tests are part of the official Firefox build since version 22. So all the relevant code can be found in mozilla-central. If you want to develop test cases for WebRTC please follow these steps:
Build Firefox and WebRTC Tests
1. To build your own version of Firefox, setup the build system by following the steps outlined on the MDN page 'Simple Firefox build'.
2. Execute the WebRTC mochitests (after buiding locally):
$ ./mach mochitest-plain dom/media/test/mochitest/
Test Network Setups
To verify that our WebRTC can handle all possible network setups we should have at least all the different network setups described on the [WebRTC Test Networks]
Bug Report Recording Tools
If you experience quality issues with the audio playback or video rendering in Firefox please create a ticket in Bugzilla for it. To avoid lengthy verbals description of the symptoms you experienced it would be really helpful if you could record the problem with one of the tools below and add a link to your Bugzilla ticket for the developer to download and listen or watch your recording.
Linux
We recommend recordMyDesktop which is an free, open source tool to record your desktop content and also allows to make audio recordings. It is available for all major Linux distributions or can be compiled from source code.
Mac OS X
You can simply record your desktop with the QuickTime Player, which should be pre-installed on any recent Mac OS X.
- Start the QuickTime Player
- Open "File" menu
- Click "New Screen Recording"
- Press the red button in the new window
For audio recordings we recommend to install Soundflower that is an open source tool which presents itself as an audio device and allows to redirect the audio to another application. In combination with the above mentioned QuickTime Player it allows to create audio recordings.
Windows
Microsoft offers a ScreenRecorder for Windows 7 on TechNet with instructions how to use it: http://technet.microsoft.com/en-us/magazine/2009.03.utilityspotlight2.aspx