QA/B2G getting started: Difference between revisions
< QA
Jump to navigation
Jump to search
No edit summary |
|||
Line 70: | Line 70: | ||
* to point your phone at different locations for persona push this pref to your phone: | * to point your phone at different locations for persona push this pref to your phone: | ||
** dev: user_pref("toolkit.identity.uri", "https://login.dev.anosrep.org"); | ** dev: user_pref("toolkit.identity.uri", "https://login.dev.anosrep.org"); | ||
** for improved logcat info for persona set this: | |||
toolkit.identity.debug true | |||
==Glossary== | ==Glossary== | ||
* Trusted/Native UI | * Trusted/Native UI | ||
** Phone specific window that hosts a whitelist of URLs/Apps such as marketplace and persona/sign in. | ** Phone specific window that hosts a whitelist of URLs/Apps such as marketplace and persona/sign in. |
Revision as of 18:18, 14 May 2013
Overview
Quick and dirty crash course on using a b2g phone for QA
You should definitely look here also: Tips and Tricks
Releases and Code Names
- tef
- leo
The Build
- Devices
- white ZTE: unagi
- black ZTE: inari
- Builds
- Production
- Eng - to switch, you could build it yourself, but the easiest way is to download a private build. Set adb and fastboot (android utils) in your path, then run ./flash.sh
- Use this to switch channels: Channel-setup
- Update
- You can update over the air (OTA) generally, there's beta, nightly
- Where to log bugs?
- What version am I on:
- Generally use the build SHA in Settings > About phone > advanced
Running Tests
If you're on the eng build, there are unit tests scripts on device
Debugging
ADB
adb is how to tether and connect to your phone
- get it here: http://developer.android.com/sdk/index.html
- get log files
- plug in USB
- on phone goto Settings > About Phone > Advanced turn on USB and BLAH
- on mac run
- adb devices
- if you don't see the device, restart adb with this cmd: ./adb usb
how to get logs:
- run adb logcat > log.txt
- run adb logcat -c to clear
how to push a pref:
- find it here: Jason's Tips and Tricks
Tips and Tricks
- Screenshot
- press home and power button
- Kill process on phone
- long press home, swipe card/app window up
- move app icons: long press - sometimes edge causes drag.
Utils
- ADB - android debug bride the the CLI for all things phone
- get it here: http://developer.android.com/sdk/index.html
- symlink it in your path: ln -sf <path to adb> /usr/local/bin/adb
- symlink fastboot also, if you use flash.sh: ln -sf <path to fastboot> /usr/local/bin/fastboot
Automated Testing - Marionette
- Emulator builds: http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g18/
- repo: https://github.com/mozilla/gaia-ui-tests/
Persona
- to point your phone at different locations for persona push this pref to your phone:
- dev: user_pref("toolkit.identity.uri", "https://login.dev.anosrep.org");
- for improved logcat info for persona set this:
toolkit.identity.debug true
Glossary
- Trusted/Native UI
- Phone specific window that hosts a whitelist of URLs/Apps such as marketplace and persona/sign in.