Commit Graph

1442 Commits

Author SHA1 Message Date
Maja Frydrychowicz
0a0ee8270a Bug 1223517 - Release marionette-client 2.0.0 and marionette-driver 1.1.1; r=automatedtester 2015-11-10 14:51:44 -05:00
Yura Zenevich
3f778f365e Bug 1224339 - making sure a11y and DOM trees are in sync when performing a11y checks with marionette. r=automatedtester 2015-11-13 09:58:08 -05:00
Andreas Tolfsen
154a73ef56 Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns
2015-11-10 15:43:58 +00:00
Maja Frydrychowicz
f40f8f5c15 Bug 1223429 - Return exit code 10 when Marionette harness has failing tests; r=automatedtester 2015-11-10 13:09:13 -05:00
Wes Kocher
6b2c6f8e8b Merge b2ginbound to central, a=merge 2015-11-12 16:10:14 -08:00
Wes Kocher
bede662992 Merge fx-team to central, a=merge 2015-11-12 16:04:09 -08:00
Carsten "Tomcat" Book
867afff5c8 Merge mozilla-central to b2g-inboind 2015-11-12 12:40:40 +01:00
Andrew Halberstadt
dacdff14ad Bug 1223171 - [marionette] add ability to install addons programatically, r=ato
This is needed to install unsigned addons in developer mode. A special pref that
can only be set at runtime will determine whether or not unsigned addons can be
installed. So unsigned addons required for testing will need to be restartless
and installed on the fly. The normal method of dropping the addon in the profile
folder will no longer work.
2015-11-10 08:29:36 -05:00
Edgar Chen
e098e454e2 Bug 1223676 - [Marionette] Remove waiting for homescreen on emulator. r=ahal 2015-11-11 15:23:22 +08:00
Andreas Tolfsen
eac0fa0131 Bug 1223028: Exhaust server-originated commands
The Python client does not currently exhaust all the command
requests originating from the server as pointed out by :bhsu in
https://bugzilla.mozilla.org/show_bug.cgi?id=1211503#c12.

This prevents making multiple calls to runEmulatorCmd and runEmulatorShell
inside executeScript/executeJSScript/executeAsyncScript.  This failure
makes marionette-webapi fail.

We loop through all the commands originating from the server until we
get sent back a response.

r=dburns
2015-11-09 15:54:10 +00:00
Paolo Amadini
af752a027e Bug 1206244 - Fix Marionette test that used the identity icon element to test a framework function. r=ato on a CLOSED TREE 2015-11-12 17:55:01 +00:00
Maja Frydrychowicz
83b19a53c8 Bug 1199588 - Add --workspace option to Marionette runner; r=automatedtester
The default behaviour is unchanged: gecko.log and logcat are saved to the
cwd, a temporary Firefox profile is cloned or created in TMP.

When a path is specified via --workspace, gecko.log, logcat and the Firefox
profile directory are all saved there instead. A profile saved in the
workspace does not get deleted at the end of a session unless it's a clone.
2015-11-02 11:55:29 -05:00
Andreas Tolfsen
8d873652f2 Backed out changeset de2c852c9853 (bug 1217988)
CLOSED TREE
2015-11-10 23:23:47 +00:00
Andreas Tolfsen
ef4ff01a8d Backed out changeset a3f9ac7c8454 (bug 1223028)
CLOSED TREE
2015-11-10 22:47:17 +00:00
Andreas Tolfsen
9e1abdb98c Bug 1223028: Exhaust server-originated commands
The Python client does not currently exhaust all the command
requests originating from the server as pointed out by :bhsu in
https://bugzilla.mozilla.org/show_bug.cgi?id=1211503#c12.

This prevents making multiple calls to runEmulatorCmd and runEmulatorShell
inside executeScript/executeJSScript/executeAsyncScript.  This failure
makes marionette-webapi fail.

We loop through all the commands originating from the server until we
get sent back a response.

r=dburns
2015-11-09 15:54:10 +00:00
Andreas Tolfsen
21db162437 Bug 1217988: Use current system OS for platformName capability
Services.appinfo is populated by the target compile system's OS name,
taken from the OS_TARGET configure variable.

By using Services.sysinfo instead, we are returning the effective current
local system's operating system, which is similar to what is found in
Gecko's UA string.

r=dburns
2015-11-10 15:43:58 +00:00
Andreas Tolfsen
be113be98d Bug 1202381: Remove null check on element id
Corrects type checks on parameters passed to command, indentation level,
and clarifies when the code leaps into content space.

Thanks to Stanislas Daniel Claude Dolcini for doing the first iteration
fix for this.

r=dburns
2015-11-09 17:48:31 +00:00
David Burns
bd3dcb2d49 Bug 1222388: Correct ./mach marionette-test r=ato
There have been a number of improvements to the marionette test runner
unfortunately we missed this regression.
2015-11-09 14:07:52 +00:00
Maja Frydrychowicz
36717f115d Bug 1219397 - Collect Firefox-Desktop-specific prefs in a subclass of GeckoInstance; r=automatedtester 2015-11-05 12:16:32 -05:00
Maja Frydrychowicz
6aa127cbb4 Bug 1217557 - set browser.tabs.remote.autostart to False in GeckoInstance; r=automatedtester 2015-11-02 18:19:58 -05:00
Maja Frydrychowicz
3c914f8c14 Bug 1212608 - Add parts of firefox_ui_harness to Marionette runner; r=automatedtester
* BaseMarionetteRunner: any change to self.bin resets self.marionette and
  self.tests, so you change binaries between calls to run_tests()
* Refactor runtests.py to make it easier to extend/customize the harness
  for different test suites. Add more error handling.
2015-10-23 16:43:40 -04:00
Julien Pagès
192bca4f04 Bug 1173502 - add cmdline options to set prefs (same as in mozprofile). r=dburns 2015-11-02 18:56:15 +01:00
Julien Pagès
15e504b99a Bug 1213026 - Skip a test based on the value of a browser pref. r=dburns 2015-11-02 19:09:18 +01:00
Andreas Tolfsen
fab260249c Bug 1216967: Bump Marionette Python packages
Prepare release of new Python packages for Marionette, with the following
versions:

  marionette-client 1.1.0
  marionette-driver 1.1.0
  marionette-transport 1.0.0

r=dburns
2015-10-21 14:21:27 +01:00
J. Ryan Stinnett
281c27c39b Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
David Burns
615b2f1029 Bug 1206122: Add support for switchToParentFrame r=jgriffin
This allows us from a child frame to go up one level. This is documented
at http://w3c.github.io/webdriver/webdriver-spec.html#switch-to-parent-frame
2015-10-19 21:39:48 +01:00
Andreas Tolfsen
6de2592b1d Bug 1211503: Support for Marionette protocol level 3 in the Python client
Futures-proofs the Marionette Python client to have support for level
3 of the Marionette protocol outlined in bug 1211489.

This patch changes the marionette-transport API most notably by renaming
the MarionetteTransport class to TcpTransport and by splitting the
receive-capabilities of TcpTransport.send into a new function called
request.

Furthermore it introduces a message data structure for dealing with
incoming responses and commands, and for marshaling messages to send in
order to support all three protocol levels.

r=dburns
r=jgriffin
2015-10-09 11:15:24 +01:00
Carsten "Tomcat" Book
631d2babdf merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Ting-Yu Lin
0cfcf834d6 Bug 1199625 - Test focus not being changed by long-pressing on non-selectable. r=mtseng
We already had focus changing tests covered by
_test_focus_obtained_by_long_press(). This patch adds tests for focus
not being changed from an editable element after long-pressing on a
non-selectable element.

These tests will fail after reverting this change.
"Bug 1197739 - Do not change focus too early unless the frame is selectable"
https://hg.mozilla.org/mozilla-central/rev/4f2822bbbdb2
2015-10-13 17:26:29 +08:00
Andreas Tolfsen
e5fc5642df Bug 1213797: Refactor screen capture and SVG document support
Errors thrown by takeScreenshot used to be silently ignored.  When the
command started using the new dispatching technique in bug 1202663,
it was surfaced we do not support taking screen captures of SVG documents.

Since this is a requirement for Web Platform Tests, this patch corrects
the wrong assumptions about document body and document element.

This patch also significantly refactors the screen capture code, but
only uses the new implementation in contnent space, since some further
modifications are required to use it in chrome.

r=dburns
r=jgriffin
2015-10-13 16:52:26 +01:00
Andreas Tolfsen
13cb60ff83 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns
r=jgriffin
2015-10-09 12:02:42 +01:00
Andreas Tolfsen
ae78d2358e Bug 1213800: More exhaustive Marionette screen capture tests
The screen capture tests were not testing that the screenshots are of
what they're meant to be of.  In order to confidently fix bug 1202663,
these new tests will ensure we do not have any regressions.

r=jgriffin
r=dburns
2015-10-13 16:58:40 +01:00
Wes Kocher
9cbb7c2380 Backed out changeset 2d50cf0f2117 (bug 1213800) for Win8 Marionette failures 2015-10-12 12:09:49 -07:00
Maja Frydrychowicz
d86017a3a6 Bug 1040742 - Only ignore expected exceptions; r=automatedtester 2015-10-05 18:31:57 -04:00
Andreas Tolfsen
b9bfc543d4 Bug 1213800: More exhaustive Marionette screen capture tests
The screen capture tests were not testing that the screenshots are of
what they're meant to be of.  In order to confidently fix bug 1202663,
these new tests will ensure we do not have any regressions.

r=jgriffin
2015-10-12 16:16:39 +01:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
cd93f441eb Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
David Burns
7b3a8ed1c4 Bug 977899: Have Marionette navigate the top frame on desktop when navigate()
is called. r=ato

This means that we are now doing step 7 in

http://w3c.github.io/webdriver/webdriver-spec.html#get
2015-10-06 16:47:09 +01:00
Carsten "Tomcat" Book
b9e5717f50 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
b5f316de44 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
f0cdd04e91 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher
f7ae20086b Backed out changeset 443dc9a9c21c (bug 1202663) for hidden-2 Wr bustage CLOSED TREE 2015-10-05 10:36:54 -07:00
Andreas Tolfsen
230bdf71a6 Bug 1202663: Use dispatcher for screen capture command in listener
r=dburns
2015-09-08 15:26:19 +01:00
Yura Zenevich
a1378e0006 Bug 1210022 - adding missing actionable roles to marionette a11y checks. r=automatedtester 2015-10-02 09:31:40 -04:00
Ting-Yu Lin
c8af804850 Bug 1209841 - Improve move_caret_by_offset() in selection.py. r=automatedtester
* Incorporate the for-loop in python into javascript so that we only
  need to call execute_script() once.
* Add documentation for parameters.
2015-09-30 18:29:34 +08:00
David Burns
29a27b2e98 Bug 1209698: Bump version numbers for Marionette packages; r=jgriffin
The version numbers have been moved to be major.minor.patch to allow
better versioning moving forward.
2015-09-30 13:23:50 +01:00
Ting-Yu Lin
ffd6342317 Bug 1164124 - Add using_prefs context manager. r=jgriffin
Add get_pref(), set_pref(), set_prefs() to make manipulate preferences
easier.

enforce_gecko_prefs() did the similar job as set_prefs(), but it will
restart the browser if a preference to be set are different from what is
already set in the system. Not all gecko preferences require a restart
to work. Using set_prefs() should make testing faster. See bug 1048554.
2015-09-30 16:26:58 +08:00
Carsten "Tomcat" Book
b2d49ad0f0 Merge mozilla-central to fx-team 2015-09-29 12:41:12 +02:00
Alexandre Poirot
6fb31ae078 Bug 1208018 - Improve marionette stack info and dump it when executeJSScript throws. r=jgriffin 2015-09-29 03:02:48 -07:00
David Burns
d54f8dc4e3 Bug 1201036: Bump marionette client and marionette driver for releases; r=jgriffin 2015-09-28 21:20:29 +01:00