Граф коммитов

1904 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 1aa1a59ead Bug 1283919 - Move packaging of Marionette from make to the test archiver r=gps
MozReview-Commit-ID: AOQHcA46bCh

--HG--
extra : rebase_source : e313c669ad0ae999ecba954538572d22ae28b120
2016-08-17 13:43:51 +02:00
Henrik Skupin 3db57da9d3 Bug 1296597 - Allow Marionette to quit a running application instance. r=automatedtester
MozReview-Commit-ID: 4RJmGQ1IqHw

--HG--
extra : rebase_source : 12f197c0956a187c45374f9fd85017dc4c8a4d54
2016-08-22 13:20:08 +02:00
Henrik Skupin 2222cce311 Bug 1284457 - Reduce default socket timeout for Marionette to 60s r=ato
MozReview-Commit-ID: DXASYzQD4sA

--HG--
extra : rebase_source : a9fcc3cc93a9bc3b502e4dd5e211e5be89354d34
2016-08-15 16:55:02 +02:00
Henrik Skupin 42a9f616b7 Bug 1295492 - Add support for --binary argument to Marionette mach command. r=maja_zf
MozReview-Commit-ID: 6tru2Ms135j

--HG--
extra : rebase_source : 5286b8e1d5c8d4f9c54fcbdea14fd423dcd9c556
2016-08-30 10:53:07 +02:00
Anjana Vakil 6aa106320d Bug 1291796 - Minor fixes to harness unit tests; r=maja_zf
In test_marionette_runner.py, fix pytest warning raised when
importing TestManifest class directly in global namespace.

In test_marionette_arguments.py, improve readability by
shortening/changing some names and removing unnecessary
comments (not needed as code is self-explanatory).

MozReview-Commit-ID: GDzxlEqb7MB

--HG--
extra : rebase_source : 78927cae7f8ec011d2b398e3a1ce71174d7b028c
2016-08-26 15:52:29 +02:00
Anjana Vakil 6e249bab1e Bug 1291796 - Split Marionette harness tests by class; r=maja_zf
Split the Marionette harness unit tests, all of which were
previously located in the single module test_marionette_runner.py,
into modules that each test a specific class or group of
similar classes. This will make it easier to add and locate
new tests in the future, based on the class they are testing.

The new module structure within tests/harness_unit/ is:

* test_marionette_harness.py - tests for MarionetteHarness and
  the command-line interface

* test_marionette_arguments.py - tests for MarionetteArguments
  (future: BaseMarionetteArguments and RemoteMarionetteArguments)

* test_marionette_runner.py - tests for MarionetteTestRunner
  and BaseMarionetteTestRunner (future: MarionetteTextTestRunner)

* test_marionette_test_result.py - tests for MarionetteTestResult
  (future: MarionetteTest)

* conftest.py - pytest fixtures used in multiple modules
  (fixtures specific to a single module are defined in that module)

MozReview-Commit-ID: CGh6Aa07lfV

--HG--
extra : rebase_source : faa7d27135aa6e4c6c44fa60aab6f2b5d6339961
2016-08-26 15:47:09 +02:00
CuriousLearner 7428b5fd55 Bug 1271330 - Avoid homepage overrides in the default profile; r=davehunt,whimboo
MozReview-Commit-ID: 6vQ5C2x7pEB

--HG--
extra : rebase_source : 13a9cbc8cef2a1ca85a8f709452985dbddf92f7c
2016-08-26 23:03:46 +05:30
Andreas Tolfsen b14cde0605 Bug 1298454 - Use element.makeWebElement instead of manually creating web element; r=automatedtester
MozReview-Commit-ID: 83W3e6mWqYJ

--HG--
extra : rebase_source : ce3ca019ef62573827a790145fe8bb4660b14bc8
2016-08-26 19:02:33 +01:00
Mike Conley b3a5f56c15 Bug 1294456 - Regression test. r=automatedtester
The test is testing the case where Marionette attempts to send a
command to a window handle when the browser has opened and selected
a new tab. See the documentation in the test for more details.

MozReview-Commit-ID: McDqG5kCIj

--HG--
extra : rebase_source : bd085f5116333f7321ef9313147cdcd0dc80ae64
2016-08-25 15:48:44 -04:00
Mike Conley b5e760d22d Bug 1294456 - Stop Marionette from being confused about which tab it currently cares about in each window. r=automatedtester
MozReview-Commit-ID: CW0bWILbIuC

--HG--
extra : rebase_source : ca7a20f7a187dc57857297b59a1a6152cb7f5ad8
2016-08-25 15:06:56 -04:00
Andreas Tolfsen 0f34b42611 Bug 1280947 - Dispatch DOM change event on appending file to input; r=automatedtester
MozReview-Commit-ID: 6SC01AEkuTs

--HG--
extra : rebase_source : ee4ed323e024bf6fdcf9a28ab7f44763c7475c8c
2016-08-25 14:18:04 +01:00
Andreas Tolfsen e213d0d9c5 Bug 1280947 - Correct argument to event.sendEvent; r=automatedtester
Events were not registered when constructed with an object
rather than a string literal.

MozReview-Commit-ID: KhXcDPu70Vm

--HG--
extra : rebase_source : 7ea228e47c89c2775ab5c2c1fab63b5f8fe4db14
2016-08-25 14:16:10 +01:00
Andreas Tolfsen aa96362477 Bug 1280947 - Remove dead File object construction code; r=automatedtester
MozReview-Commit-ID: 2e2tikS8evx

--HG--
extra : rebase_source : 8f016f47ceed470017dc72adbc8a4c0b7e84433b
2016-08-25 14:15:21 +01:00
Andreas Tolfsen 4f54ff4ab4 Bug 1280947 - Support tuples for script arguments; r=automatedtester
Tuples is are most commonly used in the Python standard library
to represent function argument iterables.

This patch changes the Marionette Python client to support both
tuples and lists.

MozReview-Commit-ID: 9c6SGeWEIBL

--HG--
extra : rebase_source : 4defc071dd15ab5117ad43c76840b04dbdf80933
2016-08-25 14:13:59 +01:00
Andreas Tolfsen 4052356fba Bug 1280947 - Improve names of JSON marshaling methods in Marionette client; r=automatedtester
MozReview-Commit-ID: BTEuBYMzu5w

--HG--
extra : rebase_source : 2583fcf1251eb88904afe09942804342d3b665ac
2016-08-25 14:12:40 +01:00
Henrik Skupin ebea3bef90 Bug 1294054 - Use marionette.py instead of runner.py in case of crashes with no active test. r=automatedtester
MozReview-Commit-ID: 8hRFAFTEQ0G

--HG--
extra : rebase_source : 648fc7210e219d11b739e4bec4772e88517f8b7f
2016-08-17 22:22:15 +02:00
Maja Frydrychowicz 579e8d9c0b Bug 1284874 - Skip irrelevant Marionette tests on Fennec; r=automatedtester,dustin,gbrown
MozReview-Commit-ID: K2Wy9ij6dz3

--HG--
extra : rebase_source : 2123d9368c95ec19b51b94afe4e88cd68f1e416e
2016-08-25 11:11:21 -04:00
Maja Frydrychowicz 5aa7bdf380 Bug 1284874 - Update skip decorators and remove dead code in TestScreenOrientation; r=automatedtester
Remove if-blocks that depend on code removed in Bug 1274408

MozReview-Commit-ID: JJHEiMBIm1b

--HG--
extra : rebase_source : e83fdea488fe24c38a81a98ab8a9e800212a167c
2016-08-22 12:28:58 -04:00
Maja Frydrychowicz c7bda84c45 Bug 1284874 - Add Fennec support to Marionette test skip decorators; r=automatedtester
MozReview-Commit-ID: Gz2mJWxkryb

--HG--
extra : rebase_source : e9558e5132dedbbb31dfab2629bdeee1cf4c8519
2016-08-22 12:27:57 -04:00
Maja Frydrychowicz 4b69e312c7 Bug 1284874 - Add 'package' argument to Marionette Test Runner; r=automatedtester
This is useful for overriding the computed Android package name in
automation.

MozReview-Commit-ID: jm283iQB2i

--HG--
extra : rebase_source : d4d1ab8176aa0383b93c8dde0982d22604aabd05
2016-07-25 20:43:57 -04:00
Yura Zenevich e90eb53ff1 Bug 1258960 - use getters in marionette accessibility states structure to avoid Ci.nsIAccessibleStates undefined errors in builds with accessibility disabled. r=whimboo
MozReview-Commit-ID: 2SMM5AS0cVr

--HG--
extra : rebase_source : 5b9db7f8e6b326a981641aa7d21fbfb4c40f44bc
2016-08-24 15:52:20 -04:00
Shane Caraveo 9d48355314 Bug 1289549 fix test driver child counting, r=automatedtester
MozReview-Commit-ID: LU19WfwjoPN
2016-08-23 15:24:06 -07:00
Andrew Halberstadt a757814e36 Bug 1296067 - Add mach test package integration for marionette-test, r=armenzg
This makes it possible to run |mach marionette-test| from a test package (and therefore
also an interactive loaner).

MozReview-Commit-ID: Lxhe8KMQaWq

--HG--
extra : rebase_source : ee2c01a80d863c2044d8d30b0e5116c8a9704253
2016-08-17 12:04:37 -04:00
clui 17a75a8e03 Bug 1287594 - Allow usage of marionette harness options through mach. r=automatedtester
MozReview-Commit-ID: j3bWigyRPG

--HG--
extra : rebase_source : 34c7375905466e9ceef0b309b724bde5e31575d6
2016-07-26 21:52:42 -07:00
Ryan VanderMeulen 7eab76e86d Merge m-c to autoland. a=merge 2016-08-22 09:42:13 -04:00
Henrik Skupin 41ab46cbd5 Bug 1277811 - Fix test_key_actions.py by scrolling element into view before press() is called. r=automatedtester
MozReview-Commit-ID: J4X2TM5LeWF

--HG--
extra : rebase_source : c0439e3e5c002480751f25cedcda015d2b6a8870
2016-08-22 14:07:51 +02:00
Henrik Skupin 82410bbd03 Bug 1296562 - Revert order for crash and socket checks in do_process_check decorator. r=maja_zf
MozReview-Commit-ID: Dd2Pl3FnbUP

--HG--
extra : rebase_source : 9e82925fab0ded5f33c2ada3f156ff6015986ef4
2016-08-19 09:22:32 +02:00
Anjana Vakil b2fffee29d Bug 1284847 - Add tests for _build_kwargs; r=maja_zf
Add tests to test_marionette_runner.py to
verify the functionality of the _build_kwargs method
of BaseMarionetteTestRunner, which is used
to generate the kwargs with which the
driverclass (Marionette) constructor is called.

Test that _build_kwargs generates the right
dictionary based on the values of certain
runner properties (binary, emulator,
address, and workspace).

Add helper fixtures to reduce duplication between
the test_build_kwargs_* tests.

MozReview-Commit-ID: EyyfaE52rzS

--HG--
extra : rebase_source : 2ec977672c46dabb2e9644faada17207fcb51690
2016-08-19 12:09:25 +02:00
Anjana Vakil 55065554ea Bug 1284847 - Test args passed to runner/driver classes; r=maja_zf
Add tests to test_marionette_runner.py to verify that:
- when the MarionetteHarness constructor is called,
  the arguments to that call are passed on to
  the _runner_class constructor
- when run_tests() is called on the runner,
  the output of _build_kwargs is passed on as
  arguments to the call to the driverclass
  constructor

In combination with a test of the runner's _build_kwargs
method, this should ensure that the driver class
constructor is being called with the appropriate arguments
based on the input to the harness class constructor.

MozReview-Commit-ID: 4U3sXxHSIpS

--HG--
extra : rebase_source : 3ca439613f13c6064c0dcbfb603c049f75233b71
2016-08-17 18:38:56 +02:00
Ryan VanderMeulen 13e244b915 Merge m-c to autoland. a=merge 2016-08-19 09:58:11 -04:00
Sebastian Hengst ea5a423e4b Backed out changeset 4d00141b4cb9 (bug 1268544) 2016-08-19 10:01:51 +02:00
Henrik Skupin 32877c55c9 Bug 1293982 - TcpTransport.close() has to force a shutdown of the socket. r=ato
When the Marionette client closes the socket connection it currently only calls close() on it.
This will actually decrease the reference counter, and keeps the OS socket around until it gets
garbage collected by the system. This can cause port in use failures for socket connections
created shortly after eg. restarts of the appication. By using shutdown() the client indicates
that the socket has to be closed immediately.

MozReview-Commit-ID: 3jUgaWnujLc

--HG--
extra : rebase_source : 3111d041585a8e50258d2be9bfef55708f80d4b4
2016-08-15 13:55:43 +02:00
Aaron Klotz f615c493d3 Bug 1268544: Temporarily disable test_about_pages.py on Windows e10s due to bustage; r=bustage
MozReview-Commit-ID: IX47RXVjEyI

--HG--
extra : rebase_source : b8601ced1411bf7d1de4b34876d81a6850c23dfc
2016-08-18 16:04:43 -06:00
Wes Kocher 431cc3777c Merge m-c to inbound a=merge 2016-08-19 18:39:52 -07:00
Aaron Klotz 6691c8cfa8 Bug 1268544: Refactor ProxyAccessible and dependencies; r=tbsaunde
MozReview-Commit-ID: EHV0JR6NmKf

--HG--
rename : accessible/ipc/ProxyAccessible.cpp => accessible/ipc/ProxyAccessibleBase.cpp
rename : accessible/ipc/ProxyAccessible.h => accessible/ipc/ProxyAccessibleBase.h
rename : accessible/ipc/ProxyAccessible.cpp => accessible/ipc/other/ProxyAccessible.cpp
rename : accessible/ipc/ProxyAccessible.h => accessible/ipc/other/ProxyAccessible.h
rename : accessible/ipc/ProxyAccessible.cpp => accessible/ipc/win/ProxyAccessible.cpp
rename : accessible/ipc/ProxyAccessible.h => accessible/ipc/win/ProxyAccessible.h
2016-08-19 13:16:42 -06:00
Andreas Tolfsen cf5f3418f9 Bug 1255955 -Run element enabled check before accessibility checks; r=automatedtester
MozReview-Commit-ID: 18OtOKtox3K

--HG--
extra : rebase_source : 2773dbd04f7a728b6b9fcd5db8e57b8abc28abcc
2016-08-13 20:59:14 +02:00
Andreas Tolfsen 50d1d83f2a Bug 1255955 - Simplify element.clickElement complexity; r=automatedtester
MozReview-Commit-ID: IXqgFlS6R6c

--HG--
extra : rebase_source : 77a35e9dcde68ef8c90888bdf6abea470b442296
2016-08-13 20:54:46 +02:00
Andreas Tolfsen 2b8b321b6a Bug 1255955 - Document clickElement and calculateCentreCoords; r=automatedtester
MozReview-Commit-ID: tSC5xRAVAl

--HG--
extra : rebase_source : 2038db7219878edde781a9823a309efcf8d49053
2016-08-13 20:54:15 +02:00
Andreas Tolfsen 010a199980 Bug 1255955 - Add support for interacting with <select> elements; r=automatedtester
This patch introduces support for clicking on <select> and <select
multiple> elements to Marionette.  As <select> elements, especially
<select multiple>, are operating system level concepts usually implemented
with native widget sets, this patch takes the approach of dispatching
generated events.

MozReview-Commit-ID: 9kwOva43AOL

--HG--
extra : rebase_source : dde090ed9487e593bc16f8a7e12365b97ada9735
2016-08-05 18:08:31 +01:00
Andreas Tolfsen cf92f63f85 Bug 1255955 - Add shorthands for generating common DOM events; r=automatedtester
MozReview-Commit-ID: K5p1SyYMofQ

--HG--
extra : rebase_source : 687d4a15858a6934343c368a8de498afb6be98fc
2016-08-05 18:07:12 +01:00
Andreas Tolfsen 11e8e8c6c2 Bug 1255955 - Add function to dispatch events to event library; r=automatedtester
MozReview-Commit-ID: GBvXy8svoY2

--HG--
extra : rebase_source : a0d4db22becb70f8097198d300bff6f198e9ede4
2016-08-05 18:06:38 +01:00
Andreas Tolfsen 55a23f732e Bug 1255955 - Use correct argument in event.synthesizeMouse; r=automatedtester
MozReview-Commit-ID: AHh99sePoYj

--HG--
extra : rebase_source : 960a54f609e525cab41df5b98d0189648bd490d3
2016-08-05 18:05:45 +01:00
Andreas Tolfsen 6ac6b51209 Bug 1255955 - Fix event.sendMouseEvent to work in privileged space; r=automatedtester
Also fixes assumptions about permitted mouse events.

MozReview-Commit-ID: 33MKL60cKXi

--HG--
extra : rebase_source : 59f838c42a19b3bbedc42fa5a78d84c15ab176a2
2016-08-05 18:05:14 +01:00
Andreas Tolfsen 6cf2139f2d Bug 1255955 - Fix event.parseModifiers_ to not use module argument name; r=automatedtester
MozReview-Commit-ID: v79foxRjUV

--HG--
extra : rebase_source : eeb62400f1e4c1bec69d0b9bfcb5673003e940cc
2016-08-05 18:03:43 +01:00
Andreas Tolfsen a6a86c1771 Bug 1255955 - Rename a11y functions check* to assert*; r=automatedtester
"Check" is a fine word but with functions which primary purpose is to
throw an error internally we should use "assert" to make the reprecussions
of using them crystal clear.

MozReview-Commit-ID: Kef4R8y8fiV

--HG--
extra : rebase_source : eb22beb7a33e593f34b3d24ecdaaa7f99d8e5f87
2016-08-05 11:43:40 +01:00
Andreas Tolfsen a0e56a4788 Bug 1255955 - Perform click checks as part of promise; r=automatedtester
Some of the element interactability- and visibility checks were previously
done when interaction.clickElement was called, and not as part of the
resolution of the returned promise.  This could have caused a potential
race condition.

MozReview-Commit-ID: 691V86B4k5w

--HG--
extra : rebase_source : 7a6951d9c29aa5fa3eb3852d3d6d33e65f7d72c4
2016-08-05 11:38:23 +01:00
Andreas Tolfsen 1eec7ff342 Bug 1255955 - Recalculate visibility after scrolling; r=automatedtester
We want to redo the element interactability calculation after scrolling.
Determining if an element is not visible by the old location would
be wrong.

MozReview-Commit-ID: KGaPVmgcqSX

--HG--
extra : rebase_source : 12ac51e5c9947da1082351c4e382cfc95ea8f843
2016-08-05 11:00:19 +01:00
Andreas Tolfsen 26c6e26783 Bug 1255955 - Scroll element into view when not visible; r=automatedtester
The if-condition in the specification compatible interactability check
for interaction.clickElement is wrong.  It should scroll an element into
view when it is _not_ visible.  If it is visible it does not matter.

MozReview-Commit-ID: 2n34QddDkQv

--HG--
extra : rebase_source : efe079de9a1fa930ea2f3d9d8fff59fc9a4e269b
2016-08-05 10:53:06 +01:00
Andreas Tolfsen 38a5c89fb8 Bug 1255955 - Rename checkbox test to not conflict with select tests; r=automatedtester
MozReview-Commit-ID: 3SIFP3mUPhT

--HG--
rename : testing/marionette/harness/marionette/tests/unit/test_selected_chrome.py => testing/marionette/harness/marionette/tests/unit/test_checkbox_chrome.py
extra : rebase_source : 1db1e6816b9bf8efeffa64e77771d1f102b1a234
2016-08-05 10:52:07 +01:00
Wes Kocher a177bd0ff1 Merge m-c to inbound a=merge 2016-08-17 17:24:02 -07:00