WebDriver/Marionette: Difference between revisions

Jump to navigation Jump to search
Line 38: Line 38:


=== Code ===
=== Code ===
The Marionette code will be hosted [http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq here]. This is a mercurial patch queue which applies on top of the
The Marionette code is hosted [http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq here].  
[http://hg.mozilla.org/users/dcamp_campd.org/remote-debug remote-debug branch] of mozilla-central. Alternatively, you can use the [http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq/file/40334f046841/series-add-rd "series-add-rd"] file as your mq series file on top of the most current mozilla-central build. This will import the minimal set of remote-debugger dependencies into your m-c tree and will apply marionette patches to it.


The marionette patch for remote-debug branch runs as an extension. Install the extension included at the top of the codebase (marionette@mozilla.org), and restart fennec. The patch for m-c bakes marionette into startup of fennec, so all you need to do is rebuild and then start up the newly built fennec. For both means, the server should be running on port 2828 by default.
==== Marionette and Fennec/Firefox ====
This is a mercurial patch queue which applies on top of either the
[http://hg.mozilla.org/users/dcamp_campd.org/remote-debug remote-debug branch] of mozilla-central or mozilla-central itself. I would recommend running it on top of mozilla-central as the remote-debug branch is not always up to date with upstream. In order to apply the patches, first create the patch queue and get the code:
 
    hg qinit
    cd .hg/patches
    hg clone http://hg.mozilla.org/users/mdas_mozilla.com/marionette-pq .
 
To apply marionette to mozilla-central, you have to change your series file to the series-add-rd file:
  cp series-add-rd series
  cd ../../
  hg qpush -a
 
This will import the minimal set of remote-debugger dependencies into your m-c tree and will apply marionette patches to it.
 
To apply marionette to remote-debug branch:
  cd ../../
  hg qpush -a
 
By the end of the quarter, both remote-debugger and marionette should land on m-c so we won't need this patch queue for long.
 
These patches bake marionette into startup of fennec/fireofx, so all you need to do is rebuild and then start up the newly built binary. For both means, the server should be running on port 2828 by default.
 
==== Marionette and B2G ====
 
To use Marionette with B2G, pull this fork of B2G https://github.com/jonallengriffin/B2G. This tree is kept up to date with upstream often, and will be merged into the [https://github.com/andreasgal/B2G standard B2G repo] (very) soon.
 
Marionette is enabled via a pref in gecko/b2g/app/b2g.js. Enable it using the boolean pref "marionette.server.enabled", and set the port it listens to via "marionette.server.port"


==== Running the Tests ====
==== Running the Tests ====
Confirmed users
561

edits

Navigation menu