automating firefox os
DESCRIPTION
By Malini DasTRANSCRIPT
![Page 1: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/1.jpg)
AUTOMATINGFIREFOXOS
ONE SOLUTION TO RULE THEM ALL- By Malini Das
![Page 2: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/2.jpg)
WHAT?Browser-driven phone
All apps (dialer, camera, etc.) are HTML5 & JS
Control the whole device with JS!
![Page 3: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/3.jpg)
NEAT!Now how do we test it?
Lots of new problems...
No existing test frameworks...
We need a new solution
![Page 4: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/4.jpg)
REQUIREMENTSHas to support existing frameworks
Has to support future frameworks
Must have full control of the device
Easy to use
Bonus points: Run in any Gecko environmentThis means Desktop Firefox, Mobile Firefox...
![Page 5: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/5.jpg)
IDEA!Just open up a privileged server socket!
Hmm, too unwieldy
![Page 6: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/6.jpg)
IDEA V2.0Privileged WebDriver! We call this Marionette
Runs in content and privileged space
Provides necessary piping for current and futureframeworks
Familiar to testers
...and...
It can work in any Gecko environment!
![Page 7: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/7.jpg)
LOVELY. WHY SHOULD ICARE?
One Selenium test, many environments for free!
Eventual Mobile Firefox support
Faster than Selenium add-on
Gives you a way to test a FirefoxOS app
![Page 8: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/8.jpg)
LEMME SEE, LEMME SEE!
![Page 9: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/9.jpg)
HOW DO I GET IT?Debug Desktop Firefox builds -
Desktop version of FirefoxOS -
Build it into FirefoxOS from source
Mobile Firefox support is coming!
ftp://ftp.mozilla.org/pub/firefox/
ftp://ftp.mozilla.org/pub/b2g/
![Page 10: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/10.jpg)
QUESTIONS?More info -
More info -
Use a proxy -
FYI, if you just want to play around, I recommend pulling down . It hasmarionette built-in, and emulates the phone resolution/environment on your desktop!
Marionette
Build your own FirefoxOS (aka B2G) emulator or phone
image!
Selenium proxy to talk to Marionette (under
development)Desktop FirefoxOS
![Page 11: Automating Firefox OS](https://reader038.vdocuments.net/reader038/viewer/2022100523/554d1fd8b4c905c5208b4a11/html5/thumbnails/11.jpg)