Hi,
I am trying to run the gaia marionette tests on my local environment connected to B2G device. For this, I am following the instructions here:
https://developer.mozilla.org/en-US/docs/Marionette/Running_Tests#From_Gaia
Specifically, here is my setup
1. I have a unagi device, so setup port forwarding like this: adb forward tcp:2828 tcp:2828
2. Next I tried to run gaia tests by going to gaia directory and doing this: 'make marionette' as suggested in the link, but am running into the following errors:
Finished processing dependencies for marionette-client==0.5.35
starting httpd
running webserver on
http://192.168.1.121:54357/
TEST-START browser_a_test_framework.js
TEST-START browser_all_apps.js
TEST-START browser_clock_stopwatch.js
TEST-START browser_clock_timer.js
TEST-START browser_desktop_notifications.js
TEST-START browser_dialer_call_from_contacts.js
TEST-START browser_dialer_contact_intent.js
TEST-START browser_dialer_contacts_edition.js
TEST-START browser_dialer_contacts_search.js
TEST-START browser_dialer_history.js
TEST-START browser_dialer_keypad_and_dial.js
TEST-START browser_dialer_phone_number_sanitizing.js
TEST-START browser_sms_conversation.js
TEST-START browser_sms_new.js
TEST-START test_calculator.py
Traceback (most recent call last):
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 795, in <module>
cli()
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 790, in cli
runner = startTestRunner(runner_class, options, tests)
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 782, in startTestRunner
runner.run_tests(tests)
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 427, in run_tests
self.run_test(test)
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 476, in run_test
self.run_test(filepath)
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/runtests.py", line 530, in run_test
**self.test_kwargs)
File "~/b2g/B2G/gecko/testing/marionette/client/marionette/marionette_test.py", line 286, in add_tests_to_suite
test_mod = imp.load_source(mod_name, filepath)
File "~/source/gaia/tests/python/gaia-ui-tests/gaiatest/tests/test_calculator.py", line 5, in <module>
from gaiatest import GaiaTestCase
ImportError: No module named gaiatest
make: *** [marionette] Error 1
Any ideas, why the gaia tests are failing to run. I have the latest gaia code and I installed gaiatest manually as well.
/usr/local/bin/gaiatest
Next, I ran marionette tests of gecko, doing this: ./test.sh marionette --address=localhost:2828
This at least executes the test suite, there are some failures and some successes.
SUMMARY
-------
passed: 64
failed: 115
todo: 0
Just to see, if I can run the gaia tests from a gecko marionette client directly, I did try to run a gaia calendar test from '~/b2g/B2G/gecko/testing/marionette/client/marionette' directory:
Punams-MacBook-Pro:marionette $ python runtests.py --address localhost:2828 ~/source/gaia/apps/calendar/test/marionette/launch_test.js
starting httpd
running webserver on
http://192.168.1.121:53539/
TEST-START launch_test.js
SUMMARY
-------
passed: 0
failed: 0
todo: 0
But that doesn't seem to help..
Thanks
Punam
_______________________________________________
dev-gaia mailing list
dev-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-gaia