Commit Graph

1040 Commits

Author SHA1 Message Date
Andreas Tolfsen
01fd550a39 Bug 1205687 - Add Mn test flavour and include tests in build manifests; r=jgraham 2015-09-18 14:53:37 +01:00
David Burns
23b41bad97 Bug 1241067: Handle Invalid Selector values when finding elements r=ato
This allows us to now handle errors and return the appropriate
errors to the clients
2016-01-21 21:07:36 +00:00
Sebastian Hengst
d9f48028b0 Backed out changeset e1480e6b2451 (bug 1241067) for failing Marionette tests. r=test-failure 2016-01-21 19:10:52 +01:00
David Burns
d71e36fe37 Bug 1241067: Handle Invalid Selector values when finding elements r=ato
This allows us to now handle errors and return the appropriate
errors to the clients
2016-01-21 15:49:40 +00:00
Andreas Tolfsen
98d6335f24 Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.
2016-01-18 22:05:30 +00:00
Shruti Jasoria
a79aeb60a3 Bug 1097676 - Create a convenience decorator for marionette.using_context(), r=ato 2016-01-20 11:34:50 -05:00
Wes Kocher
153a7ce5de Backed out changeset f3011bfcf124 (bug 1240576) for b2g xpcshell failures CLOSED TREE 2016-01-19 18:26:54 -08:00
Andreas Tolfsen
fee45f3e02 Bug 1240576 - Use Preferences.jsm throughout Marionette; r=automatedtester
A distinct advantage is that try...catch statements are no longer used
to control the flow of code.
2016-01-18 22:05:30 +00:00
Maja Frydrychowicz
2a4a84fa80 Bug 1238996 - Release marionette-driver 1.2, marionette-transport 1.1, and marionette-client 2.1; r=automatedtester 2016-01-14 10:21:50 -05:00
Andrew Halberstadt
7df0c9686b Bug 1239330 - Support AddonManager.installTemporaryAddon() in marionette_driver.addons, r=ato 2016-01-13 10:37:00 -05:00
Henrik Skupin
6c3729c1bc 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
242277868f Bug 1204504 - Error on invalid selector; r=automatedtester
Thanks to Alexei Barantsev for reporting.
2015-09-17 12:31:39 +01:00
David Burns
ebcb112ee8 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
Yura Zenevich
ad48f4806d Bug 1237698 - adding support for switch to frame inside anonymous content. r=automatedtester 2016-01-12 14:14:05 -05:00
Andreas Tolfsen
ced35ef830 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
7e65a1a09e 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
Maja Frydrychowicz
b0b4cca449 Bug 1150512 - Move Marionette test runner to wptserve; r=automatedtester 2015-12-03 15:48:41 -05:00
Carsten "Tomcat" Book
f607ed0a72 merge mozilla-inbound to mozilla-central a=merge 2015-11-30 13:19:02 +01:00
Mark Banner
2f4f5612ba 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
7e101683a3 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
0f8be01f38 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
2516b84104 Bug 1227918 - Log exception in harness class setup; r=automatedtester 2015-11-26 22:52:17 -05:00
Andreas Tolfsen
d7b6b8448a 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
Andrew Halberstadt
e900916435 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 Lin
cdf85d3b0f Bug 1206545 - Add a marionette test case. r=roc
Test AccessibleCaretEventHub is properly initialized if <html> has
"display: none" initially.
2015-11-16 18:16:43 +08:00
Maja Frydrychowicz
6a2a07a950 Bug 1223517 - Release marionette-client 2.0.0 and marionette-driver 1.1.1; r=automatedtester 2015-11-10 14:51:44 -05:00
Andreas Tolfsen
55fe27a5c6 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
7653ba13db Bug 1223429 - Return exit code 10 when Marionette harness has failing tests; r=automatedtester 2015-11-10 13:09:13 -05:00
Wes Kocher
0f194dd10e Merge b2ginbound to central, a=merge 2015-11-12 16:10:14 -08:00
Wes Kocher
da7eb53fd3 Merge fx-team to central, a=merge 2015-11-12 16:04:09 -08:00
Carsten "Tomcat" Book
9568c76db5 Merge mozilla-central to b2g-inboind 2015-11-12 12:40:40 +01:00
Andrew Halberstadt
9e05609d63 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
dc7bce083f Bug 1223676 - [Marionette] Remove waiting for homescreen on emulator. r=ahal 2015-11-11 15:23:22 +08:00
Andreas Tolfsen
2732ddf842 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
5b52407eba 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
01f5f95436 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
024b1ce808 Backed out changeset de2c852c9853 (bug 1217988)
CLOSED TREE
2015-11-10 23:23:47 +00:00
Andreas Tolfsen
e6dab41a76 Backed out changeset a3f9ac7c8454 (bug 1223028)
CLOSED TREE
2015-11-10 22:47:17 +00:00
Andreas Tolfsen
2917e844c7 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
a4236bceeb 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
David Burns
d6e412af7f 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
5d79eb7fdc 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
b9f4d6d642 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
fb16bd7dd1 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
870653f224 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
David Burns
4c7a59859b 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
43db6ef129 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
8a9d35471d merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Ting-Yu Lin
4ab604a26c 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
e795aed8d1 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