TestEngineering/Performance/Raptor: Difference between revisions

Jump to navigation Jump to search
Line 95: Line 95:
'''Raptor power-use measurement test process when running on Firefox Android browser apps:'''
'''Raptor power-use measurement test process when running on Firefox Android browser apps:'''


* The android app data is cleared, via:
* The Android app data is cleared, via:
   * adb shell pm clear firefox.app.binary.name
   * adb shell pm clear firefox.app.binary.name
* The new browser profile is copied onto the Android device sdcard
* The new browser profile is copied onto the Android device's sdcard
* We set `scenario_time` to '''20 minutes''' (1200000 milliseconds), and `page_timeout` to '''22 minutes''' (1320000 milliseconds)
* We set `scenario_time` to '''20 minutes''' (1200000 milliseconds), and `page_timeout` to '22 minutes' (1320000 milliseconds)
** It's crucial that `page_timeout` exceed `scenario_time`; if not, measurement tests will fail/bail early
** It's crucial that `page_timeout` exceed `scenario_time`; if not, measurement tests will fail/bail early
* The Firefox Android app is started up
* The Firefox Android app is started up
* Post-startup browser settle pause of 30 seconds
* Post-startup browser settle pause of 30 seconds
* On Fennec only, a new browser tab is created (other Firefox apps use the single/existing tab)
* On Fennec only, a new browser tab is created (other Firefox apps use the single/existing tab)
* Via `adb shell dumpsys battery`, power-use/battery-level measurements are taken
* Power-use/battery-level measurements are taken, via:
  * adb shell dumpsys battery
* Raw power-use measurement data is listed in the perfherder-data.json/raptor.json artifacts
* Raw power-use measurement data is listed in the perfherder-data.json/raptor.json artifacts


Confirmed users
9,511

edits

Navigation menu