Closed Bug 1294427 Opened 4 years ago Closed 4 years ago

Marionette Fennec fails to get the external files for testing

Categories

(Testing :: Marionette, defect)

x86
Android
defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: njpark, Assigned: maja_zf)

References

Details

(Keywords: regression, Whiteboard: [marionette=1.0])

Attachments

(2 files)

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.
No longer blocks: 1194860, 1284874, 1284960, 793661
No longer depends on: 787203, 787280, 787545, 791793, 1278590
Attached image Simulator Screenshot
Blocks: 1294447
No longer blocks: 1294447
Thanks for reporting this! I've found the source of the problem.
Assignee: nobody → mjzffr
Blocks: 1288863
Keywords: regression
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+
Pushed by mjzffr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ac0f73714b99
Fix case in condition on appName in BaseMarionetteTestRunner; r=automatedtester
https://hg.mozilla.org/mozilla-central/rev/ac0f73714b99
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.