QA/B2G getting started: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 1: Line 1:
===Overview===
==Overview==


Quick and dirty crash course on using a b2g phone for QA
Quick and dirty crash course on using a b2g phone for QA
Line 6: Line 6:
[https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks Tips and Tricks]
[https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks Tips and Tricks]


===The Build===
==Releases and Code Names==
* tef
* leo
 
==The Build==
* Devices
* Devices
** white ZTE: unagi
** white ZTE: unagi
Line 19: Line 23:
**Generally use the build SHA in Settings > About phone > advanced
**Generally use the build SHA in Settings > About phone > advanced


===Running Tests===
==Running Tests==


If you're on the eng build, there are unit tests scripts on device
If you're on the eng build, there are unit tests scripts on device


===Debugging===
==Debugging==
====ADB====
===ADB===


adb is how to tether and connect to your phone
adb is how to tether and connect to your phone
Line 33: Line 37:
** on phone goto Settings > About Phone > Advanced turn on USB and BLAH
** on phone goto Settings > About Phone > Advanced turn on USB and BLAH
** on mac run
** on mac run
*** ./adb devices
*** adb devices
*** if you don't see the device, restart adb with this cmd: ./adb usb
*** if you don't see the device, restart adb with this cmd: ./adb usb


how to get logs:
how to get logs:
* run ./adb logcat > log.txt
* run adb logcat > log.txt
* run ./adb logcat -c to clear
* run adb logcat -c to clear


how to push a pref:
how to push a pref:
* ./adb push pref("toolkit.identity.debug", true);
* find it here: [https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks Jason's Tips and Tricks]


===Tips and Tricks===
==Tips and Tricks==
* Screenshot
* Screenshot
** press home and power button
** press home and power button
Line 50: Line 54:
** long press home, swipe card/app window up
** long press home, swipe card/app window up


===Glossary===
==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
 
==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.
Confirmed users
964

edits

Navigation menu