Marionette Fennec fails to get the external files for testing

RESOLVED FIXED in Firefox 51

Status

defect
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: njpark, Assigned: maja_zf)

Tracking

({regression})

unspecified
mozilla51
x86
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox51 fixed)

Details

(Whiteboard: [marionette=1.0])

Attachments

(2 attachments)

Reporter

Description

3 years ago
When running Marionette test on Android simulator, test fails when html file on the server needs to be accessed- the browser says URL cannot be reached.

HG changeset ID: 6cf0089510fad8deb866136f5b92bbced9498447+

STR:
- Build Fennec with ENABLE_MARIONETTE=1, (debug is not enabled) for x86
- run ./mach run to start the simulator and install Fennec
- run ./mach marionette-test --emulator --app='fennec' --address=localhost:2828 to execute test

1:05.95 TEST_START: MainThread test_accessibility.py TestAccessibility.test_click_raises_element_not_accessible
 1:12.07 TEST_END: MainThread ERROR, expected PASS
Traceback (most recent call last):
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/harness/marionette/marionette_test.py", line 344, in run
    testMethod()
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/harness/marionette/tests/unit/test_accessibility.py", line 119, in test_click_raises_element_not_accessible
    self.setup_accessibility()
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/harness/marionette/tests/unit/test_accessibility.py", line 88, in setup_accessibility
    self.marionette.navigate(test_accessibility)
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/client/marionette_driver/marionette.py", line 1444, in navigate
    self._send_message("get", {"url": url})
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/client/marionette_driver/decorators.py", line 42, in _
    return func(*args, **kwargs)
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/client/marionette_driver/marionette.py", line 693, in _send_message
    self._handle_error(err)
  File "/Users/mozilla/hg/mozilla-central/testing/marionette/client/marionette_driver/marionette.py", line 726, in _handle_error
    raise errors.lookup(error)(message, stacktrace=stacktrace)
UnknownException: Reached error page: about:neterror?e=connectionFailure&u=http%3A//127.0.0.1%3A54181/test_accessibility.html&c=UTF-8&f=regular&d=Firefox%20can%27t%20establish%20a%20connection%20to%20the%20server%20at%20127.0.0.1%3A54181.
Reporter

Updated

3 years ago
No longer blocks: 1194860, 1284874, 1284960, 793661
No longer depends on: 787203, 787280, 787545, 791793, 1278590
Reporter

Comment 1

3 years ago
Posted image Simulator Screenshot
Reporter

Updated

3 years ago
Blocks: 1294447
Reporter

Updated

3 years ago
No longer blocks: 1294447
Assignee

Comment 2

3 years ago
Thanks for reporting this! I've found the source of the problem.
Assignee: nobody → mjzffr
Blocks: 1288863
Keywords: regression
Comment hidden (mozreview-request)

Comment 4

3 years ago
mozreview-review
Comment on attachment 8780323 [details]
Bug 1294427 - Fix case in condition on appName in BaseMarionetteTestRunner;

https://reviewboard.mozilla.org/r/71042/#review69560
Attachment #8780323 - Flags: review?(dburns) → review+

Comment 5

3 years ago
Pushed by mjzffr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ac0f73714b99
Fix case in condition on appName in BaseMarionetteTestRunner; r=automatedtester

Comment 6

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/ac0f73714b99
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.