Changes

Jump to: navigation, search

TestEngineering/Performance/Raptor/Mitmproxy

554 bytes removed, 14:38, 6 February 2019
How to Record a Mitmproxy Test Page on Android
Wait for that to finish. The geckoview example app will remain open on the device.
3. On the android device turn on Clear geckoview_example app data and connect Wificache: adb shell pm clear org.mozilla.geckoview_example
4. In your terminal, change into the obj../testing/raptor folder, that is where mitmdump is located, i.e.:
measure = fnbpaint, fcp, dcf, ttfi, loadtime
2. Turn Wifi OFF on the android device. 3. In your terminal change back into the root of your repo i.e. \mozilla-central\ and run the modified tp6m-1 on geckoview with the command:
mozilla-central$ ./mach raptor-test --test raptor-tp6-new-mobile-recording-geckoview --app=geckoview --binary="org.mozilla.geckoview_example"
Watch the test run on the android device and verify that the test page is loaded correctly in the geckoview example app. Wait for Raptor to finish and report the results - verify that all of the measurements were successfully retrieved.
 
Recording behind a login:
 
If you need to make a recording of a page on android that is behind a login, follow the same process as above, except first start recording to a DUMMY.mp file name - with that running browse to the site's home page and login. Let it fully load, dismiss any pop-ups etc, and then stop the dummy recording.
 
Then change to about:blank. Then start recording again, this time to the REAL .mp file name. Browse to the mobile site in geckoview example app, let it fully load (it's already logged into the site) and then stop recording.
Confirm
132
edits

Navigation menu