mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
38ed548903
When the binary gets launched we do not immediately kill the process if the connection to Marionette server cannot be established within the given amount of seconds. Instead "_handle_socket_failure" is getting called because the utility method `raise_for_port` inappropriately uses the `@do_process_check` decorator. By removing the decorator the initial connection attempt can be handled differently. As such the process if handled by Marionette will be immediately killed. Currently we are waiting for the process to quit itself within 120s, which will actually never happen due to no active session. Further `start_session` defaults to a timeout of 60s which itself is problematic for test harnesses using Marionette but controlling the binary themselves. In those cases timeouts can happen often for slow starting browser processes like debug builds. Instead this timeout should default to the `startup_timeout` value. MozReview-Commit-ID: BZvX5KT45mK --HG-- extra : rebase_source : 875807b75f0575a10dc9de3588237002fa6a5821 |
||
---|---|---|
.. | ||
marionette_harness | ||
.flake8 | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
setup.py |
marionette-harness ================== Marionette is an automation driver for Mozilla's Gecko engine. It can remotely control either the UI or the internal JavaScript of a Gecko platform, such as Firefox. It can control both the chrome (i.e. menus and functions) or the content (the webpage loaded inside the browsing context), giving a high level of control and ability to replicate user actions. In addition to performing actions on the browser, Marionette can also read the properties and attributes of the DOM. The marionette_harness package contains the test runner for Marionette, and allows you to run automated tests written in Python for Gecko based applications. Therefore it offers the necessary testcase classes, which are based on the unittest framework. For more information and the repository please checkout: - home and docs: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette Example ------- The following command will run the tests as specified via a manifest file, or test path, or test folder in Firefox: marionette --binary %path_to_firefox% [manifest_file | test_file | test_folder] To get an overview about all possible option run `marionette --help`.