Closed
Bug 800011
Opened 13 years ago
Closed 13 years ago
[B2G] Need to be able to load entry points of a main app
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: zcampbell, Assigned: jgriffin)
References
Details
The 'launch' method ( https://github.com/jonallengriffin/gaia/blob/bug796200/tests/marionette/gaiatest/gaia_test.py#L55 ) in the GaiaApps B2G Marionette testing framework does not allow you to load apps at their entry points (see manifest: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/manifest.webapp )
jgriffin confirmed that the method needs to be updated to handle this.
Error handling of invalid app names should also be improved.
Comment 1•13 years ago
|
||
This is blocking Zac from writing about 4 Gaia smoketests right now, so appreciate traction on this -- thanks!
| Assignee | ||
Comment 2•13 years ago
|
||
Marionette's Gaia app launching takes place here: https://github.com/mozilla-b2g/gaia/blob/master/tests/marionette/gaiatest/gaia_apps.js#L22
The contacts app is a little different than most as it is an aspect of the communications app, rather than a separate distinct app. The code I linked above needs to be aware of the kind of manifest used by it: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/manifest.webapp
I.e., I imagine it needs to look for entry points in the app and not just the top-level 'name'.
| Assignee | ||
Comment 3•13 years ago
|
||
See also this code which shows how gaia handles this internally:
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/window_manager.js#L1017
| Assignee | ||
Comment 4•13 years ago
|
||
I've just been told that one of the Gaia devs already has a fix for this, so we may not need to do anything here.
Comment 5•13 years ago
|
||
:jgriffin is there a bug for reference? will hold off on this one then. Just for now.
| Assignee | ||
Comment 6•13 years ago
|
||
(In reply to David Burns :automatedtester from comment #5)
> :jgriffin is there a bug for reference? will hold off on this one then. Just
> for now.
Not that I know of. I think this will be handled via a pull request to Gaia; when it happens, I'll cc: it here.
Comment 7•13 years ago
|
||
albertoq and I are working on this for JS tests. We should have a patch up later today, I am not sure what bug to file it under yet but I will reference it here.
Comment 8•13 years ago
|
||
We have a PR up that unifies the atoms between the JS tests & python as well as fixing the dist bug. (So we should be able to publish the gaiatest package now).
Depends on: 803624
Comment 9•13 years ago
|
||
... and that PR also contains a fix (and test) that allows launching of apps that use the entry points.
| Reporter | ||
Comment 10•13 years ago
|
||
How will this work where there could be two apps with the same entry point name?
Comment 11•13 years ago
|
||
I believe (jgriffin correct me if I am wrong) that any apps named the same thing will cause some serious problems when trying to use the gaia_apps.js to launch them.
That is unlikely to be a problem for gaia specific tests but if we where to load the system with third-party apps, conflicts would be likely.
The only way to solve that would be to accept the origin+entrypoint over the name of the application.
Comment 12•13 years ago
|
||
Zac C not sure how you consume this but the new version of gaiatest (0.2) just landed in gaia with these changes. Can you please try them out and let us know if/where you have problems?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 13•13 years ago
|
||
Will give it a go, thanks James.
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•