Commit Graph
1493 Commits
Author SHA1 Message Date
Nigel Babu fc0ade54cf Backed out 3 changesets (bug 1239373) for xpcshell bustage on emulator
Backed out changeset 308b5e2bb5df (bug 1239373)
Backed out changeset 783077fc10a2 (bug 1239373)
Backed out changeset 32e6e21daeda (bug 1239373)
2016-01-19 13:16:37 +05:30
Andreas Tolfsen 7c6ae319ff Bug 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester 2016-01-18 19:09:31 +00:00
Nigel Babu c9874c48a5 Backed out changeset 8ca79644b089 (bug 1240182) for xpcshell bustage on b2g 2016-01-19 10:49:12 +05:30
Phil Ringnalda 671ad78a10 Back out changeset 084c55b0bd3d (bug 1240550) for test_error.js failures 2016-01-18 17:33:30 -08:00
Andreas Tolfsen 1ccf902492 Bug 1240182 - Use Log.Level.Debug for logging accepted and closed sockets; r=automatedtester 2016-01-18 19:09:31 +00:00
Andreas Tolfsen 4c1388192b Bug 1240550 - Make fnName, file, and line optional arguments; r=automatedtester
Previously fnName and line was tested as the entry requirement for
printing the filename to the trace information.  Testing line here was
premature since it is meant to be an optional argument.

This patch rectifies this behaviour by testing for each of the optional
arguments sequentially.  This means the file argument is required to print
the line, and the fnName argument is required to print any of those two.
2016-01-18 18:55:52 +00:00
Andreas Tolfsen 545cfd346f Bug 1239373 - Tests for testing/marionette/message.js; r=automatedtester 2016-01-18 18:39:21 +00:00
Andreas Tolfsen a58f70a0db Bug 1239373 - Tests for testing/marionette/error.js; r=automatedtester 2016-01-18 18:38:47 +00:00
Andreas Tolfsen ab0bedf816 Bug 1239373 - Infrastructure for Marionette xpcshell unit tests; r=automatedtester 2016-01-18 18:38:08 +00:00
Yura Zenevich 3f207a4300 Bug 1238744 - centralizing interactions into its own file. r=ato 2016-01-17 12:22:22 -05:00
Henrik Skupin d8ec087094 Bug 1237179 - Add mach command to run firefox-ui-tests from the source directory. r=gps 2016-01-15 19:38:31 +01:00
Andreas Tolfsen f22db6c6d8 Bug 1204504 - Error on invalid selector; r=automatedtester
Thanks to Alexei Barantsev for reporting.
2015-09-17 12:31:39 +01:00
Shaif Chowdhury a97c3f61dc Bug 1198797 - Centralise creation of UUIDs in Marionette; r=ato 2016-01-14 14:25:46 +00:00
David Burns d3ac41b8b5 Bug 1239307: Marionette to click on centre first client rect r=ato
Updating Marionette to click on the centre of the first client rect instead of
clicking on the centre of the bounding rect. This allows us to click on multiline
links and other items where where are mutliple DOMRects associated with
an element.
2016-01-13 14:24:48 +00:00
Andreas Tolfsen b35b061603 Bug 1239371 - Consider state of boolean values for marionette.logging pref; r=automatedtester
The patch for bug 1239363 treated the marionette.logging preference as
a defined/undefined state, and didn't look specifically at the state of
the variable itself.

This meant that if it was set to false, logging would still be enabled.
As this was not the original behaviour were adding backwards compatibility
for, this patch corrects this problem by making false equivalent to the
default (Log.Level.Info).
2016-01-13 18:47:58 +00:00
Andreas Tolfsen 26f7735974 Bug 1239363 - Accept non-string types for marionette.logging pref; r=automatedtester
The marionette.logging preference used to have a boolean type.
To maintain backwards compatibility with earlier clients we keep accepting
boolean types as input.

Previously setting it to true meant you wanted all the logs, and this
change respects that.
2016-01-13 17:14:49 +00:00
Yura Zenevich 779619ee79 Bug 1237698 - adding support for switch to frame inside anonymous content. r=automatedtester 2016-01-12 14:14:05 -05:00
Andreas Tolfsen 58fd166600 Bug 1221187: testing/marionette/client: Explicitly define --version flag; r=automatedtester
Passing the version keyword to argparse's constructor implicitly adds
-v and --version flags that conflicts with the -v/--verbose flag that
is added in BaseMarionetteArguments.

This removes -v as an alias to --version, which unbreaks testing on try
because it uses runtests.py.

It's perhaps worth mentioning that try uses runtests.py because it does
not (yet) have a full checkout of the source when it runs the tests.
2016-01-06 16:53:35 +00:00
Andreas Tolfsen 0cd2c86495 Bug 1221187: testing/marionette: Adjust log levels to match new defaults; r=automatedtester 2016-01-03 17:19:59 +00:00
Andreas Tolfsen 45d5ca1def Bug 1221187: testing/marionette/client: Add -v flag for trace logging output; r=automatedtester
Adds -v and --verbose flags to the `./mach marionette-test` command to
increase the verbosity of the Marionette logging output.

A single -v corresponds to Log.Level.Debug and above.  A double -vv
or more corresponds to Log.Level.Trace and above.
2016-01-01 13:56:20 +00:00
Andreas Tolfsen eb3fb47f6c Bug 1221187: testing/marionette: Set log level from preference; r=automatedtester
This change allows the logging level for Marionette to be set using
a preference.  This lets an out-of-process program control Marionette's
logging level.

It also changes the logging defaults to print log messages with the level
Log.Level.Info and above for optimised builds, and Log.Level.Trace
and above for non-optimised/debug builds.

The log level can be set through the marionette.logging preference.
It holds a string value that needs to correspond to a level defined in
toolkit/modules/Log.jsm's Log.Level enum.
2016-01-02 15:08:54 +00:00
Andreas Tolfsen 01afed874e Bug 1231660 - Log raw packet instead of stringified messages in Marionette server; r=automatedtester
Implementors and users find it better if we log the actual sent
and received packets, rather than a stringification of the messages
representing them.
2016-01-08 16:01:07 +00:00
Carsten "Tomcat" Book 7a80930340 merge mozilla-inbound to mozilla-central a=merge 2016-01-12 11:54:38 +01:00
Alessio Placitelli ea8833fe9c Bug 1234526 - Remove unused healthreporter prefs. r=gfritzsche 2016-01-05 06:41:00 +01:00
Shivin 7ccec81d1e Bug 1207273 - Verify MarionetteTransport.send() sends all data, r=jgriffin 2016-01-11 09:54:53 -08:00
Andreas Tolfsen d27a213d1c Bug 1215502: Send wrapped WebDriverError to client r=automatedtester
This fixes serialisation of XPCOM exceptions to the client.
Response.sendError was incorrectly serialising the err input variable
instead of the wrapped WebDriverError, we.

r=dburns
2016-01-07 14:41:11 +00:00
Andreas Tolfsen 6fcd052d21 Bug 1215502: Perform nsIException instance test for XPCOM exceptions r=automatedtester
The current test of the `result' property does not always pass for all
types of XPCOM exceptions.  A safer test is to do an instance check
against Components.interfaces.nsIException.

This fixes hangs such as the one described in bug 1202576.

r=dburns
2016-01-07 14:37:06 +00:00
Maja Frydrychowicz 35e3dfc10e Bug 1229765 - Monitor Marionette browser process for start-up crashes; r=automatedtester 2015-12-17 15:58:34 -05:00
Carsten "Tomcat" Book b9ca13984b merge mozilla-inbound to mozilla-central a=merge 2015-12-11 11:38:17 +01:00
Edgar Chen 0efa98ee34 Bug 1230847 - Use increasing value as id for runEmulatorCmd and runEmulatorShell. r=ato 2015-12-06 16:27:18 -05:00
David Burns 08ffd2f0be Bug 1231556: Remove dead code in Marionette Transport. r=ato 2015-12-09 17:03:46 +00:00
Maja Frydrychowicz 32510525af Bug 1150512 - Move Marionette test runner to wptserve; r=automatedtester 2015-12-03 15:48:41 -05:00
Andreas Tolfsen 010c18b534 Bug 1211489: Provide message sequencing in Marionette
Message sequencing allows Marionette to provide an asynchronous,
parallel pipelining user-facing interface, limit chances of payload
race conditions, and remove stylistic inconsistencies in how commands
and responses are dispatched internally.

Clients that deliver a blocking WebDriver interface are still be expected
to not send further command requests before the response from the last
command has come back, but if they still happen to do so because of
programming error or otherwise, no harm will be done.  This will guard
against bugs such as bug 1207125.

This patch formalises the command and response concepts, and applies
these concepts to emulator callbacks. Through the new message format,
Marionette is able to provide two-way parallel communication.  In other
words, the server will be able to instruct the client to perform a
command in a non ad-hoc way.

runEmulatorCmd and runEmulatorShell are both turned into command
instructions originating from the server.  This resolves a lot of
technical debt in the server code because they are no longer special-cased
to circumvent the dispatching technique used for all other commands;
commands may originate from either the client or the server providing
parallel pipelining enforced through message sequencing:

             client      server
               |            |
    msgid=1    |----------->|
               |  command   |
               |            |
    msgid=2    |<-----------|
               |  command   |
               |            |
    msgid=2    |----------->|
               |  response  |
               |            |
    msgid=1    |<-----------|
               |  response  |
               |            |

The protocol now consists of a "Command" message and the corresponding
"Response" message.  A "Response" message must always be sent in reply
to a "Command" message.

This bumps the Marionette protocol level to 3.

r=dburns
r=jgriffin
2015-09-26 17:12:01 +01:00
Andreas Tolfsen 0f60e0dc04 Bug 1154432: Fix max_length parameter to multiAction command
The Python client sends a `max_length' command parameter to multiAction,
but the Marionette server looks for `max_len'.  This likely a regression
from a refactor.

r=dburns
2015-11-30 15:20:05 +00:00
Carsten "Tomcat" Book 5b7e6446f3 merge mozilla-inbound to mozilla-central a=merge 2015-11-30 13:19:02 +01:00
Mark Banner 2d05a8c056 Bug 1223573 - Part 4. Build system changes for Loop as a system add-on. r=mikedeboer,r=glandium 2015-11-29 17:08:35 +00:00
Phil Ringnalda 74c363e9cf Back out 8 changesets (bug 1223573) for Win7 PGO xperf unexpected access failures
CLOSED TREE

Backed out changeset 19876a153a00 (bug 1223573)
Backed out changeset 14251062e347 (bug 1223573)
Backed out changeset 081b0af71d6e (bug 1223573)
Backed out changeset 21ebe3534e58 (bug 1223573)
Backed out changeset d6754894897c (bug 1223573)
Backed out changeset 1b4d6308002e (bug 1223573)
Backed out changeset a13b3bba5529 (bug 1223573)
Backed out changeset f3ccccf5b6fe (bug 1223573)
2015-11-27 21:39:23 -08:00
Mark Banner 9419fc3589 Bug 1223573 - Part 4. Build system changes for Loop as a system add-on. r=mikedeboer,r=glandium 2015-11-27 18:57:40 +00:00
Maja Frydrychowicz a945e40fa8 Bug 1227918 - Log exception in harness class setup; r=automatedtester 2015-11-26 22:52:17 -05:00
Sebastian Hengst 36b47255ab Backed out changeset c2aa06a2ab49 (bug 1211489) for Gij(39) failures. r=backout 2015-11-26 23:47:34 +01:00
Andreas Tolfsen a3ab09e392 Bug 1211489: Provide message sequencing in Marionette
Message sequencing allows Marionette to provide an asynchronous,
parallel pipelining user-facing interface, limit chances of payload
race conditions, and remove stylistic inconsistencies in how commands
and responses are dispatched internally.

Clients that deliver a blocking WebDriver interface are still be expected
to not send further command requests before the response from the last
command has come back, but if they still happen to do so because of
programming error or otherwise, no harm will be done.  This will guard
against bugs such as bug 1207125.

This patch formalises the command and response concepts, and applies
these concepts to emulator callbacks. Through the new message format,
Marionette is able to provide two-way parallel communication.  In other
words, the server will be able to instruct the client to perform a
command in a non ad-hoc way.

runEmulatorCmd and runEmulatorShell are both turned into command
instructions originating from the server.  This resolves a lot of
technical debt in the server code because they are no longer special-cased
to circumvent the dispatching technique used for all other commands;
commands may originate from either the client or the server providing
parallel pipelining enforced through message sequencing:

             client      server
               |            |
    msgid=1    |----------->|
               |  command   |
               |            |
    msgid=2    |<-----------|
               |  command   |
               |            |
    msgid=2    |----------->|
               |  response  |
               |            |
    msgid=1    |<-----------|
               |  response  |
               |            |

The protocol now consists of a "Command" message and the corresponding
"Response" message.  A "Response" message must always be sent in reply
to a "Command" message.

This bumps the Marionette protocol level to 3.

r=dburns
r=jgriffin
2015-09-26 17:12:01 +01:00
Andreas Tolfsen 8f7c399368 Bug 1223907: Refactor cookies in Marionette
Moves most of the cookie implementation to a new file,
testing/marionette/cookies.js.  The new Cookies class encapsulates all
APIs for manipulating and querying cookies from content space.

It communicates with chrome space, where the cookie manager lives, through
a new SyncContentSender provided by testing/marionette/proxy.js.  This new
interface provides synchronous and transparent communication from content
to chrome, not dissimilar from how the original listener proxy works.

r=dburns
2015-11-13 13:35:22 +00:00
Andreas Tolfsen 661fc95f3e Bug 1201050: Part 4: Pass value directly back to chrome space
r=ato
2015-11-26 14:31:45 +00:00
Andreas Tolfsen 47b8794ca2 Bug 1201050: Part 3: Use dispatcher for listener mutliAction
r=dburns
2015-09-02 14:04:58 +01:00
Andreas Tolfsen 1cc6f3dbb0 Bug 1201050: Part 2: Unbreak test by using correct imports
Do note that this test is disabeld in the manifest.

r=dburns
2015-09-02 14:04:10 +01:00
Andreas Tolfsen 481fdefb3d Bug 1201050: Part 1: Use dispatcher for listener actionChain
r=dburns
2015-09-02 13:36:03 +01:00
Yura Zenevich d2ae88c17a Bug 1227147 - ensuring that switchToShadowRoot does not crash when shadowRoot host element is dead. r=automatedtester 2015-11-26 09:23:30 -05:00
Andrew Halberstadt c2c05fe0c0 Bug 1227252 - [marionette] Don't depend on a potentially stale tab reference in hasRemotenessChange(), r=ato 2015-11-23 14:49:13 -05:00
Andrew Halberstadt 21a1942ba7 Bug 1219442 - Re-write specialpowers as a restartless addon, r=jmaher
In order to meet the addon signing requirement for tests, specialpowers
needs to be installed at gecko runtime. This means it must be restartless.
This patch packages specialpowers as a restartless addon, but it does not
yet install it at runtime.
2015-11-05 10:00:59 -05:00
Ting-Yu Chou b148e9425a Bug 1220012 - Remove mozbrowserclose listener properly to fix memory leaks. r=ato 2015-10-30 14:29:14 +08:00