Add ability to specify intent when launching android app
Categories
(Testing :: Raptor, defect, P1)
Tracking
(firefox68 fixed)
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: rwood, Assigned: rwood)
References
Details
Attachments
(1 file)
Currently Raptor launches the android app using the default intent of 'android.intent.action.Main' (mozdevice ADBDevice) [0].
For Fenix we need to use the intent 'android.intent.action.VIEW' instead. Add support to Raptor for an 'intent' command line argument. If that argument is not provided default to 'android.intent.action.Main'. Pass in the intent when launching the app at [1].
Comment 1•7 years ago
|
||
Yeah, this totally makes sense. After Bug 1533385, I want us to steer toward launching without a specific Activity:
am start -W -a android.intent.action.VIEW -d URL $PACKAGE
should work and simplify everybody's lives (if I'm reading the am start documentation correctly).
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Robert Wood [:rwood] from comment #2)
Adds support for '--intent' command line arg. To test locally install the latest raptor-release fenix app, and add this section to raptor/raptor/tests/raptor-tp6m-1.ini:
[raptor-tp6m-google-fenix]
apps = fenix
test_url = https://www.google.com
playback_pageset_manifest = mitmproxy-recordings-raptor-tp6m-google.manifest
playback_recordings = android-google.mp
measure = fnbpaint, fcp, dcf, loadtime
Since activity and intent defaults are provided in raptor/cmdline.py, you can just run:
./mach raptor-test --test raptor-tp6m-google-fenix --app fenix --binary org.mozilla.fenix
Or specify everything:
./mach raptor-test --test raptor-tp6m-google-fenix --app fenix --binary org.mozilla.fenix --activity browser.BrowserPerformanceTestActivity --intent android.intent.action.VIEW
| Assignee | ||
Comment 4•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=44d95a527eae13c7f016879f0c7bff687c0a7f6d
(sanity check Raptor on other platforms, not Fenix)
| Assignee | ||
Comment 5•7 years ago
|
||
Quick try run after post-review update:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=815d7ebc1faf63be909bc5359a9ea8e40aec7541
| Assignee | ||
Comment 6•7 years ago
|
||
Patch failed to autoland, merge conflicts. Rebased, updated phab, pushed to try for quick sanity check:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3780493c245c55b461cee131199730a2348b75b6
| Assignee | ||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
| bugherder | ||
Description
•