Confirmed users
355
edits
Nalexander (talk | contribs) |
|||
| Line 448: | Line 448: | ||
The Robotium / Robocop test suite verifies UI behavior in native Fennec. | The Robotium / Robocop test suite verifies UI behavior in native Fennec. | ||
Build and install native Fennec, then execute the mochitest- | Build and install native Fennec, then execute the <tt>mochitest-robocop</tt> make target. The make target installs the Robocop APK to the device. | ||
make -f client.mk build_and_deploy | make -f client.mk build_and_deploy | ||
MOZ_HOST_BIN="<abspath-to-objdir-desktop>/dist/bin/" make -C $OBJDIR mochitest-robocop | |||
MOZ_HOST_BIN="<abspath-to-objdir-desktop>/dist/bin/" make mochitest- | |||
More info at https://wiki.mozilla.org/Auto-tools/Projects/Robocop. | More info at https://wiki.mozilla.org/Auto-tools/Projects/Robocop and http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/README.rst. | ||
Notes: | Notes: | ||
* If you update mobile/android/base/tests, you need to <tt>make -C $OBJDIR build/mobile/robocop</tt> before running the <tt>mochitest-robocop</tt> target. | |||
* A rooted device is NOT required. | * A rooted device is NOT required. | ||
* SUT and ADB device managers are both supported. | * SUT and ADB device managers are both supported. | ||
* MOZ_HOST_BIN is used to launch xpcshell on the desktop to provide a web server. | * <tt>MOZ_HOST_BIN</tt> is used to launch <tt>xpcshell</tt> on the desktop to provide a web server. | ||
* Use TEST_PATH=<test-name> to run just one test at a time. eg. TEST_PATH=testAwesomebar | * Use <tt>TEST_PATH=<test-name></tt> to run just one test at a time. eg. <tt>TEST_PATH=testAwesomebar</tt> | ||
* Ensure that the device and host machine are on the same network. | * Ensure that the device and host machine are on the same network. | ||
** Are the phone and the desktop both using wifi? (wifi vs ethernet??) | ** Are the phone and the desktop both using wifi? (wifi vs ethernet??) | ||