Closed Bug 970620 Opened 10 years ago Closed 10 years ago

Figure out test app installation mechanism for b2g-cert-tests

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgriffin, Assigned: mdas)

References

Details

For B2G certification tests, we'll be using a gaia app + a host-side test server.  We need to determine how we will install the test app on the OEM device.  We won't have the gaia source used to build the gaia or gain-derivative UI that's on the device.

We could potentially host our test app on the marketplace and make testers download and install the app from there, but it would be nicer to make this happen programmatically.

Fabrice, can we install an arbitrary ceritifed app on an arbitrary B2G device, if we have adb access?
Flags: needinfo?(fabrice)
If you have devtools access on the device, you can install a certified app by reusing the webapps actor.
Flags: needinfo?(fabrice)
(In reply to Fabrice Desré [:fabrice] from comment #1)
> If you have devtools access on the device, you can install a certified app
> by reusing the webapps actor.

I'll give this a shot, thanks
Thanks, this worked. I've added the first working draft of the js code here https://github.com/malini/certtest/tree/master/device_setup (it assumes you have a test app called app.zip in /data/local), and I'll update this folder later on with our test app and the script we'll use to push the app, install and verify.

I think it's reasonable to require to have devtools alongside marionette installed, since they're both tools we need for general automation.
The Sprint 1 (March 17) deliverable for this is:

* A method inside https://github.com/mozilla-b2g/fxos-certsuite which can be used to install a certified, privileged, or unprivileged app with a specified set of permissions.
** Should assume that Marionette is available.
Assignee: nobody → mdas
The Sprint 2 goal (due Mar 27) is:

* provide methods that can be used by other tools for installing certified and privileged apps with specific permissions (initially, max permissions or no permissions)
* this is dependent on bug 984559 being resolved
Depends on: 984559
I've pushed the code to https://github.com/malini/fxos-appgen, and it's available on pypi as fxos_appgen.

This allows you to create certified, privileged and web apps of any permissions sets, with any message listeners you want to set up. I have yet to hook this into fxos-certsuite.
It's now hooked up to fxos-certsuite via pypi.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.